ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Dougherty <MDoughe...@XIFIN.Com>
Subject RE: updating jar files with each build
Date Wed, 16 Oct 2002 23:53:54 GMT
I use the <delete> task to remove the file when it should be overwritten. Although, I
do think it would be nice if <jar> had and overwrite="yes" attribute.

<delete file="classes.jar" />
<jar destfile="classes.jar">
...
</jar>

Hope that helps,
/mike


> -----Original Message-----
> From: Lisa Knee [mailto:lisa.knee@clarussystems.com]
> Sent: Wednesday, October 16, 2002 4:35 PM
> To: Ant Users List
> Subject: Re: updating jar files with each build
> 
> 
> Actually, it doesn't rewrite anything, unless I delete the 
> jar file each
> time - painfully, manually.  Thus my inquiry as to a better way, which
> doesn't seem to exist  ...  so thanks anyways!
> 
> lisa
> 
> ----- Original Message -----
> From: "Peter" <kaffiene@xtra.co.nz>
> To: "'Ant Users List'" <ant-user@jakarta.apache.org>
> Sent: Wednesday, October 16, 2002 4:18 PM
> Subject: RE: updating jar files with each build
> 
> 
> > As I recall, update=true means that the files in the 
> jar/zip file are
> > updated rather than the whole file being rewritten.
> >
> > So you probably don't want to used update=true
> >
> > > -----Original Message-----
> > > From: Lisa Knee [mailto:lisa.knee@clarussystems.com]
> > > Sent: Thursday, 17 October 2002 11:54 a.m.
> > > To: Ant Users List
> > > Subject: updating jar files with each build
> > >
> > > I'm new to Ant and loving it but have one simple 
> question:  if a jar
> > file
> > > is
> > > being created and you want it to overwrite the old one 
> with each new
> > > compile, how do you set up your build.xml file for that?  I tried
> > > update="true" in the <jar> tag, but to no avail.
> > >
> > > thanks!
> > >
> > > lisa
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:ant-user-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <mailto:ant-user-help@jakarta.apache.org>
> >
> >
> > --
> > To unsubscribe, e-mail:   
<mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message