ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Oldfield <Do...@STCG.net>
Subject Jar problem
Date Wed, 03 Jan 2001 00:53:19 GMT
All,

I'm using Ant 1.2 and jdk 1.3. I have a target for making a jar file. I'd
like the entries in the file to retain their directory information, such as:

com/blah/blah.class

But, the com is not being left off and I'm just getting:

blah/blah.class

Below is the target and a patternset that it uses. Anyone know how to get
the dirs I want?

Thanks,
Doug Oldfield


<patternset id="jarComponents">
	<include name="**/*.class" />
	<include name="**/*.xml" />
	<include name="**/*.gif" />
</patternset>

<target name="makeJar">

<jar
		jarfile="c:/somedir/somejar.jar"
		manifest="/meta-inf/manifest.mf"
	>

	<fileset dir="/com" >
		<patternset refid="jarComponents" />
	</fileset>
	</jar>

</target>

Mime
View raw message