ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lobesquare <>
Subject Copy arbitrary files into jar (generation)
Date Fri, 14 Aug 2009 18:48:03 GMT


i am quite new to ant and would like to modify a generated ant file from
eclipse in that way that certain files are copied into the created jar. Here
is what I tried

<target name="create_run_jar">
        <jar destfile="/dv/ws/my.jar" filesetmanifest="mergewithoutmain">
                <attribute name="Main-Class" value="ec.main"/>
                <attribute name="Class-Path" value="."/>
            <fileset dir="/dv/ws/bin"/>

The previous part is generated ... now I try to copy a source folder into
the jar ...

            <fileset dir="/dv/ws/javasources"> 
        	<include name="**/*.java"/>

Unfortunately this fails (no folder "javasources" is created in the
resulting jar).

Any hints would be great! :)


View this message in context:
Sent from the Ant - Users mailing list archive at

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

View raw message