Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
JAR task problems

JAR task problems

2005-06-23       - By Frank W. Zammetti

Hi all... I've been fighting with this for a couple of days now and it's
 killing me... I have the following task:

<target name="update_jar">
  <sleep seconds="5" />
  <echo message="my.tld" />
  <jar destfile="${src}/my.jar" basedir="${src}/META-INF" update="true"
includes="my.tld" />
  <echo message="my-other.tld" />
  <jar destfile="${src}/my.jar" basedir="${src}/META-INF" update="true"
includes="my-other.tld" />
</target>

I added the sleep because I read about the 2-second thing as far as
determing if a file has been updated.  It didn't help... what's
happening is simply that the two DTDs are not being added to the JAR.

I have verified that the TLDs are where they should be, and so is the
JAR, and the JAR isn't read-only or anything.  The strange thing is that
I don't seem to be getting any output from the JAR tasks, even with the
-v option...

update_jar:
     [echo] Updating JAR...
    [sleep] sleeping for 5000 milliseconds
     [echo] my.tld
     [echo] my-other.tld
     [echo] Done

build:

BUILD SUCCESSFUL
Total time: 6 seconds

I would expect to see SOMETHING from them, no?  So what am I missing?  TIA!

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.