ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: combining contents of multiple jar files (and directories)
Date Fri, 02 Nov 2001 21:24:25 GMT
On Sat, 3 Nov 2001 08:18, Fyodor Golos wrote:
> Is it possible to create one jar file containing contents of mutiple
> other jar files? I can currently achieve such behavior with optional
> task jlink. However, jlink has multiple limitations and annoyances.
>
> First of all, it does not check whether only a subset of files needs to
> be updated. It goes through the whole process every single time. Zip
> task, for example, can save me a huge amount of time by not executing
> anything at all if nothing has changed.
>
> Secondly, I would love to use filesets to provide a list of jar files to
> combine. For example:
>
> <jar jarfile="dist/combined.jar">
>     <fileset dir="lib" includes="test/*.jar"/>
>     <fileset dir="classes"/>
> </jar>

what you want is jar task with a zipfileset. The zipfileset can include files 
from another zip/jar file ;)

-- 
Cheers,

Pete

----------------------------------------------
Money is how people with no talent keep score.
----------------------------------------------

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message