ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ajack" <aj...@openbiz.biz>
Subject RE: Combining JARs into one JAR
Date Thu, 13 Jun 2002 13:42:18 GMT
	> I know the real problem is probably elsewhere, but is there 
	> any simple way (via Ant) to bundle these JARs back into one big 
	> JAR?

Sorry to carry a thread on by myself, but just for the archives...

Doing some searching for zipfileset I came accross it in the ZIP
documentation, and zipgroupfileset:

I guess the more elegant way requires no temporary expansion directory:

    	<jar 	jarfile="${bundle}/openbiz-bundle.jar"
		filesetmanifest="merge">
    		<zipgroupfileset dir="${dist}">
	        		<include name="**/*.jar"/>
        			<exclude name="**/*-source.jar"/>
        			<exclude name="**/*-javadoc.jar"/>
    		</zipgroupfileset>
	</jar>

regards

Adam

Mime
View raw message