Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

The new archives task

Christian Beil

2010-03-01

Replies: Find Java Web Hosting

Author LoginPost Reply
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@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.