ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gad Abraham <...@e1c.net>
Subject Updating jar fails
Date Fri, 19 Aug 2005 07:51:48 GMT
Hi,

I've seen this problem before on this list but no answers were given.

I'm trying to add a class file to an existing jar, but it fails silently
(does nothing whatsoever). I even try to sleep for 5 seconds so the
class file gets a newer timestamp than the jar (they end up having a
very close timestamp nonetheless).

<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>

Running ant with -debug shows nothing. Ant version is 1.6.5 on Java
1.4.2_08b for Linux.

Any ideas?

Thanks,
Gad

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


Mime
View raw message