ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From supareno <reno.rkc...@free.fr>
Subject Re: Copy arbitrary files into jar (generation)
Date Fri, 14 Aug 2009 20:24:59 GMT
lobesquare,

why the sources files in the jar
why don't you try to do a zip ou tar.gz file with the sources files and 
the jar ?
it could be easier...

> Hello,
>
> 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">
>             <manifest>
>                 <attribute name="Main-Class" value="ec.main"/>
>                 <attribute name="Class-Path" value="."/>
>             </manifest>
>             <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"/>
>              </fileset>
>
> Unfortunately this fails (no folder "javasources" is created in the
> resulting jar).
>
> Any hints would be great! :)
>
> Greetings,
>
>    lobequadrat
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message