this is a known problem in Ant 1.5. it never updates the zip file content even if the corresponding zipEntry doesnt exist. you can use <touch file="zipfile.zip" millis="0" /> to get around this limitation.
detlef -----Original Message----- From: Jay Wright [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 7:05 PM To: 'Ant Users List' Subject: jar update problem I am using ant 1.5.1 on windows2000 and have noticed some peculiar behavior. In the target below, the first operation is a <copy> which copies a jar file to the dist directory where it will then be upated. IF there is a new jar file in the base directory, it is copied to the dist directory, but the update does NOT happen. IF there is no new jar file in the base directory, then the copy does not take place and the update does happen. I tried to stick a <sleep seconds="10"/> between the two statements to see if there was a problem with timing, but that didn't help. Why is it that the update will NOT work if the jar file has just been copied into the directory? <target name="server" > <copy file="${basedir}\wildcatEJB.jar" todir="${dist.dir}"/> <jar jarfile="${dist.dir}\wildcatEJB.jar" update="true"> <fileset dir="${build.dir}"> <include name="*.class"/> </fileset> <fileset dir="${conf.dir}"> <include name="META-INF\ejb-jar.xml"/> <include name="META-INF\jboss.xml"/> </fileset> </jar> <ear earfile="${dist.dir}/clientA.ear" appxml="${conf.dir}/META-INF/application.xml"> <fileset dir="${dist.dir}" includes="wildcatEJB.jar"/> </ear> </target> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>