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:[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]>
