ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Genter" <>
Subject RE: Merging jar files?
Date Tue, 24 Aug 2004 12:17:11 GMT
Thanks, but I need to merge the content of an existing jar into the
destination jar. I just found <zipfileset>, though, which I think will
do what I want. Thanks anyway. 

Rick Genter
Sr. Software Engineer
Silverlink Communications
(781) 272-3080 x242

-----Original Message-----
From: Vladimit [] 
Sent: Tuesday, August 24, 2004 8:23 AM
To: Ant Users List
Subject: Re: Merging jar files?

Try this
        <jar destfile="archive.jar" update="true">
            <fileset dir="resources">
                <include name="new.classes"/>

Rick Genter wrote:

>Is there a simple way to merge one jar file into another in ant?
>Specifically, I have a hierarchy of .class files and a .jar file, and 
>I'd like to build a new .jar file that contains both the classes from 
>the .class files and the classes from the first .jar file.
>Thanks in advance.
>Rick Genter
>Sr. Software Engineer
>Silverlink Communications
>(781) 272-3080 x242
>To unsubscribe, e-mail: For additional 
>commands, e-mail:

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

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

View raw message