ant-user mailing list archives

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

this seems to be a common question which has been asked and answered 
many times.
For example here: http://marc.info/?l=ant-user&m=121240932031764&w=2

But I still don't know how to do it.
And since the new archives task 
(http://ant.apache.org/manual/CoreTypes/resources.html#archives) 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}"/>
    <manifest>
        ...
    </manifest>
</jar>

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?

Regards,
Christian




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


Mime
View raw message