ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Riffe, Melvin" <>
Subject Ant 1.5; Using the 'update' attribute of 'zip' task
Date Tue, 23 Jul 2002 15:41:38 GMT
Hi all

I was hoping someone has run into the issue I'm having with the 'zip' task
(actually I'm using the 'war' task but since it extends the 'zip'

In our build process we are building three war files.  Two are exactly the
same, save for their file name.  The remaining war file contains the
contents of the other two (same class files, one lib jar file) plus some
static web content.

I was able to refactor my 'war' task using pattensets to get the correct
class and jar files for each war file.  My problem is trying to add the
static web content to the /special/ war file.

Here's a snippet of the solution I though would work:
<war destfile="${dist.war}/${}"
   <zipfileset dir="${source.config}"
fullpath="WEB-INF/weblogic.xml" />
   <classes dir="${}">
      <patternset refid="${}.war.class.files" />
      <patternset refid="common.war.class.files" />
   <lib dir="${dist.jar}">
      <patternset refid="${}.war.jar.files"/>
<condition property="deploying.cmos">
   <equals arg1="cmos" arg2="${}" />
<antcall target="package.cmos.war" inheritAll="true" inheritRefs="true" />


<target name="package.cmos.war" if="deploying.cmos">
   <war destfile="${dist.war}/${}" update="true">
      <zipfileset dir="${source.images}" prefix="images">
         <patternset refid="image.files" />
      <zipfileset dir="${source.static.html}" />

However, after running with -debug and -verbose, it appears my war file is
not updated because the files already in it are up to date.  I don't
understand how it can be up to date when the files I want to add aren't even
in the war file.

Does anyone have experience with the 'update' attribute?  Does anyone have
any suggestions?


Mel Riffe
The information transmitted herewith is sensitive information intended only
for use by the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message