ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ondrej Lhotak <>
Subject Adding absolute filenames to a jar
Date Wed, 01 Oct 2003 15:09:24 GMT
I'm using the <jar> task to create a jar file. The absolute pathnames
of the files to be included in the jar are in separate properties. How
can I get the <jar> task to include them? <fileset> requires a dir and a
relative filename, and I have absolute names.

For example:
<property name="file1" location="/home/olhotak/foo.txt"/>
<property name="file2" location="/tmp/bar.txt"/>
<jar destfile="goo.jar">
    <!-- How to include ${file1} and ${file2} in the jar? -->


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message