[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: Buildin JARs in Eclipse

Kruno wrote:
> Hi,
> 
> I have one question about creating jar file export of an project in Eclipse.
> How can I include all library jar files (on which my project depends) in my
> exported project jar, but so that all the library jars are included in
> unjared form ?
> 
> I tried all sort of things, but ended with solution that I have to manually
> unjar all library and include it as external project files to my project.
> 
> 
> 
> Kruno
> 
> 
This is the way i do that in Ant if that's a help:



<jar destfile="gbook.jar" compress="true">
	<manifest>
		<attribute name="Main-Class" value="httpclient.code.X1"/>
	</manifest>
	<!-- Put the source in as well -->
	<fileset dir="." includes="httpclient/code/X1.java"/>			
	<fileset dir="." includes="httpclient/code/X1.class"/>
	<fileset dir="." includes="log4j.properties"/>			
	<!--<zipfileset src="${ext.dir}/commons-codec.jar"
includes="**/*.class" />-->
	<zipfileset src="${ext.dir}/commons-httpclient.jar"
includes="**/*.class" />
	<zipfileset src="${ext.dir}/commons-logging.jar" includes="**/*.class" />
	<zipfileset src="${ext.dir}/log4j.jar" includes="**/*.class" />
	<zipfileset src="${extra-jars}/proteanit-bin.jar"
includes="net/proteanit/io/IOCopy.class"></zipfileset>
	<zipfileset src="${extra-jars}/proteanit-bin.jar"
includes="net/proteanit/logging/*.class"></zipfileset>
</jar>