Here's the first example, the rest are pretty much the same- mergefiles 
corresponds to zipgroupfileset, and addfiles corresponds to zipfileset.

<jlink compress="false" outfile="out.jar">
   <mergefiles>
     <pathelement path="${build.dir}/mergefoo.jar"/>
     <pathelement path="${build.dir}/mergebar.jar"/>
   </mergefiles>
   <addfiles>
     <pathelement path="${build.dir}/mac.jar"/>
     <pathelement path="${build.dir}/pc.zip"/>
   </addfiles>
</jlink>

<jar compress="false" destfile="out.jar">
  <zipgroupfileset dir="${build.dir}" includes="mergefoo.jar,mergebar.jar"/>
  <zipfileset dir="${build.dir}" includes="mac.jar,pc.jar" />
</jar>

(It'd be nice at some point to override zipfileset/zipgroupfileset with 
jarfilesset/jargroupfileset, something I don't think has been done.)  -Brian

> -----Original Message-----
> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 17, 2002 2:28 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Time to deprecate <jlink>?
> 
> 
> On Thu, 16 May 2002, Brian Deitte <[EMAIL PROTECTED]> wrote:
> 
> > I did mark jlink as deprecated in the documentation when I submitted
> > the zipgroupfileset pieces.
> 
> Brian, as you are the one who probably knows best, could you provide
> some quick ref for people switching from <jlink> to <jar>?  Something
> like translating the examples in the <jlink> documentation to their
> equivalent would probably help tremendously.
> 
> Stefan
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to