You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Misha Koshelev <mi...@gmail.com> on 2010/06/01 19:55:09 UTC
Web example does not work
http://ant.apache.org/manual/Tasks/jar.html
<jar destfile="build/main/checksites.jar">
<fileset dir="build/main/classes"/>
<zipfileset includes="**/*.class">
<fileset dir="lib/main" includes="**/*.jar"/>
</zipfileset>
<manifest>
<attribute name="Main-Class"
value="com.acme.checksites.Main"/>
</manifest>
</jar>
FYI. Had to use zipgroupfileset.
Thank you
Misha
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Web example does not work
Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello Misha,
this is interesting. I would have thought that this example would work,
and I did not even remember that zipgroupfileset exists.
I have now seen that zipgroupfileset is documented as a nested element
element of the zip task.
Which version of ant are you using ?
Regards,
Antoine
Misha Koshelev wrote:
> http://ant.apache.org/manual/Tasks/jar.html
>
> <jar destfile="build/main/checksites.jar">
> <fileset dir="build/main/classes"/>
> <zipfileset includes="**/*.class">
> <fileset dir="lib/main" includes="**/*.jar"/>
> </zipfileset>
> <manifest>
> <attribute name="Main-Class"
> value="com.acme.checksites.Main"/>
> </manifest>
> </jar>
>
> FYI. Had to use zipgroupfileset.
>
> Thank you
> Misha
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org