Why don't you delete the jar file in the build before the jar?
i.e.
<target name="jar" >
<delete file="myjarfile.jar"/>
<jar jarfile="myjarfile.jar" basedir="${build.dir}"/>
</target>
-----Original Message-----
From: Lisa Knee [mailto:[EMAIL PROTECTED]]
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" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]]
> > 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:[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]>
>
>
--
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]>