ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: Jar problem
Date Wed, 03 Jan 2001 01:37:16 GMT
You could just do:
<jar jarfile="c:/somedir/somejar.jar"
     manifest="/meta-inf/manifest.mf"
     includes="com/**/*.class
               com/**/*.xml
               com/**/*.gif"
/>

If you're not in the directory that contains the com subdir, include the
"basedir" attribute as well.

Diane

--- Doug Oldfield <DougO@STCG.net> wrote:
> 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>
> 


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

Mime
View raw message