ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frederich, Eric P21322" <eric.freder...@siemens.com>
Subject RE: zipfileset help
Date Wed, 14 Nov 2007 14:19:40 GMT
Wouldn't that just include .jar files within examples.zip?
It wouldn't actually unjar them and then include their contents into a
new jar.
My .jar files aren't in a big zip, they're in a directory called "lib". 

> -----Original Message-----
> From: Bizard Nicolas (KIRO 41) 
> [mailto:nicolas.bizard@credit-suisse.com] 
> Sent: Wednesday, November 14, 2007 3:28 AM
> To: Ant Users List
> Subject: RE: zipfileset help
> 
> Hi, code example from the ant apache online manual :
> 
> <zipfileset src="examples.zip" includes="**/*.jar" />
>  
> Hope that fits your need.
> 
> Nicolas
> 
> 
> -----Original Message-----
> From: Frederich, Eric P21322 [mailto:eric.frederich@siemens.com] 
> Sent: Tuesday, November 13, 2007 7:06 PM
> To: user@ant.apache.org
> Subject: zipfileset help
> 
> Hello.
> 
> Is it possible to include all of the contents of all jar 
> files inside of
> a directory like "lib" into a new jar?
> I can specify all jar files for a classpath while compiling like so...
> 
>         <javac srcdir="${src}" destdir="${build}" debug="on" 
> target="5">
>             <classpath>
>               <fileset dir="lib">
>                 <include name="**/*.jar"/>
>               </fileset>
>             </classpath>
>         </javac>
> 
> The following gets done what I need it to do, I just don't like how I
> have to list all of the .jar files explicitly
> 
>         <jar jarfile="${dist}/SVGViewer-${DSTAMP}.jar"
> basedir="${build}">
> 
>             <zipfileset src="lib/batik-anim.jar" />
>             <zipfileset src="lib/batik-awt-util.jar" />
>             <zipfileset src="lib/batik-bridge.jar" />
>             <zipfileset src="lib/batik-codec.jar" />
>             <zipfileset src="lib/batik-css.jar" />
>             <zipfileset src="lib/batik-dom.jar" />
>             <zipfileset src="lib/batik-extension.jar" />
>             <zipfileset src="lib/batik-ext.jar" />
>             <zipfileset src="lib/batik-gui-util.jar" />
>             <zipfileset src="lib/batik-gvt.jar" />
>             <zipfileset src="lib/batik-parser.jar" />
>             <zipfileset src="lib/batik-script.jar" />
>             <zipfileset src="lib/batik-svg-dom.jar" />
>             <zipfileset src="lib/batik-svggen.jar" />
>             <zipfileset src="lib/batik-swing.jar" />
>             <zipfileset src="lib/batik-transcoder.jar" />
>             <zipfileset src="lib/batik-util.jar" />
>             <zipfileset src="lib/batik-xml.jar" />
>             <zipfileset src="lib/js.jar" />
>             <zipfileset src="lib/pdf-transcoder.jar" />
>             <zipfileset src="lib/xalan-2.6.0.jar" />
>             <zipfileset src="lib/xerces_2_5_0.jar" />
>             <zipfileset src="lib/xml-apis-ext.jar" />
>             <zipfileset src="lib/xml-apis.jar" />
>             <manifest>
>                 <attribute name="Main-Class"
> value="com.siemens.pg.svgviewer.MainClass" />
>             </manifest>
>         </jar>
> 
> Thanks in advance,
> ~Eric
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 

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


Mime
View raw message