You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Kenneth Lee <ke...@netvigator.com> on 2003/01/14 11:16:16 UTC

ExpandProperties task

I used this task to try to expand the ${...} in my build.properties, but it
doesn't seem to work:

build.properties:

...
lib=./lib
classpath_a=...
classpath_b=${lib}/...;${lib}/...
classpath=${classpath_a};${classpath_b};...
...

build.xml:

...
<loadproperties srcFile="build.properties">
  <filterchain><expandproperties/></filterchain>
</loadproperties>
...

After that the variables still have the ${...} not expanded. It works if
I split the file into two, load the one that do not need expansions first,
and then load one that need, but I do not want to maintain two separate
properties files.

Any help would be appreciated.

Thanks,
Kenneth







--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>