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 <[EMAIL PROTECTED]> wrote:
> Gad Abraham wrote:
> > Stefan Bodewig wrote:
> >
> >>On Fri, 19 Aug 2005, Gad Abraham <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]