Converting a reference to a property (in build.xml for ant)

Discussion in 'Java' started by ion, Apr 28, 2005.

  1. ion

    ion Guest

    So, OK. I have this tool which generates some code, and I call it like
    this:

    <exec dir="${lib}" executable="cmd">
    <arg line="/c codeGenerator.bat" />
    <env key="CLASSPATH" path="${jars}/library.jar;"/>
    </exec>

    Now, I'm converting my build.xml file to use inherited references. So,
    I want to define a folder somewhere else, and have it resolve to jars
    here. Something like

    <property name="jars">
    <path refid="lib"/>
    </property>

    or somehow to get this CLASSPATH environment variable to point to the
    folder referenced by 'lib'.
    How do I do this?
     
    ion, Apr 28, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Parker Thompson

    modifying ant <property> during build

    Parker Thompson, Aug 8, 2003, in forum: Java
    Replies:
    1
    Views:
    451
  2. jaba the hut
    Replies:
    0
    Views:
    752
    jaba the hut
    Feb 21, 2004
  3. davout
    Replies:
    5
    Views:
    739
    Bryce
    Aug 17, 2004
  4. Ion Chalmers Freeman

    Schema for build.xml in Ant: Is there one?

    Ion Chalmers Freeman, Oct 2, 2004, in forum: Java
    Replies:
    3
    Views:
    15,162
  5. kevin  cline
    Replies:
    2
    Views:
    2,401
    Gilbert Rebhan
    Jul 26, 2008
Loading...

Share This Page