ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carol Enderlin <carol.ender...@gmail.com>
Subject Re: Updating jar fails
Date Sun, 04 Sep 2005 04:08:28 GMT
I tried it out and it worked with added basedir (removed dest from the
includes line):

<target name="packAWT" >
  <copy file="src/applet.jar" todir="dest"/>
   <sleep seconds="5"/>
   <touch file="dest/e3/e30.class"/>
  <jar destfile="dest/applet.jar" basedir="dest"
        update="true"
      includes="e3/e30.class" />
</target>

Try adding -v to your ant command to get more details about what it is doing. 

part of the verbose output I got:

packAWT:
     [copy] C:\tools\code\antstuff\updatejar\src\applet.jar omitted as
C:\tools\code\antstuff\updatejar\dest\applet.jar is up to date.
    [sleep] sleeping for 5000 milliseconds
      [jar] e3\e30.class added as e3/e30.class is outdated.
      [jar] Updating jar: C:\tools\code\antstuff\updatejar\dest\applet.jar
      [jar] adding directory META-INF/
      [jar] adding entry META-INF/MANIFEST.MF
      [jar] adding directory e3/
      [jar] adding entry e3/e30.class

On 9/1/05, Gad Abraham <gad@e1c.net> wrote:
> Gad Abraham wrote:
> > Stefan Bodewig wrote:
> >
> >>On Fri, 19 Aug 2005, Gad Abraham <gad@e1c.net> wrote:
> >>
> >>
> >>
> >>><target name="packAWT" depends="compileAWT, init">
> >>>  <copy file="src/applet.jar" todir="dest"/>
> >>>  <sleep seconds="5"/>
> >>>  <touch file="dest/e3/e30.class"/>
> >>>  <jar destfile="dest/applet.jar"
> >>>       update="true"
> >>>     includes="dest/e3/e30.class" />
> >>></target>
> >>
> >>
> >>I don't see a basedir attribute on the jar task, where does it point
> >>to?
> >
> >
> > I've tried both with and without a <basedir="dest">, but the results are
> > the same - the build succeeds, but nothing happens. I don't want to
> > create a new jar, just update an existing one.
> 
> Anyone?
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
>

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


Mime
View raw message