ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <>
Subject Re: subsitution in file names
Date Tue, 04 Jul 2000 12:23:11 GMT
At 03:09  4/7/00 +0400, you wrote:
><property name="sources" value=",">
><javac srcdir="."
>       destdir="classes"
>       includes="${sources}"/>
><jar jarfile="project.jar"
>     basedir="classes"
>     includes="${sources,.java=.class}"/>

Well as a point Ant doesn't want to be as complex as make and this adds a
lot of complexity. Also property substitution will go away in a future
version of ant. 

>Is this possible in ant? What is the workaround for today? 

Well some similar functionality may be available with the path tags that
are in progress of being integrated into ant. As to the workaround ? Use
standard directories and let jar work with whole directory. If you need to
compile from one source tree and place in multiple jars different parts
then you will have to compile to multiple different directories and then
jar thos directories.


<property name="sources1" value=",">
<property name="sources2" value=",">
<javac srcdir="."
<javac srcdir="."
<jar jarfile="sources1.jar"
     basedir="classes/sources1" />

<jar jarfile="sources2.jar"

>this point was already discussed (sorry, I could not find archives of
>this list)? Please comment

It is mentioned in the email you got when you subscribed.



| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |

View raw message