ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Beil <>
Subject The new archives task
Date Mon, 01 Mar 2010 19:35:22 GMT

this seems to be a common question which has been asked and answered 
many times.
For example here:

But I still don't know how to do it.
And since the new archives task 
( somehow 
seems to be the answer, I though I'd ask.

How do I package my application together with its dependencies in a 
single jar file (flattening the dependency jars)?
Somehow like this:
<jar jarfile="${jar.file}">
    <fileset dir="${classes.dir}"/>
    <fileset file="UnicodeCharacters.ini"/>
    <zipgroupfileset dir="${lib.dir}"/>

But what if I want to filter the files in the dependency jars somehow, 
and not the jar files themself.
I thought I could use <archives> and <zips>, but they don't seem to be 
supported as sub-tasks of <jar>.
Am I missing something?
Can someone please shed some light on this?


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

View raw message