DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23327>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23327 Timestamp of the files in WAR file created by war task is different by 2 sec. Summary: Timestamp of the files in WAR file created by war task is different by 2 sec. Product: Ant Version: 1.5.4 Platform: PC URL: http://cvs.apache.org/viewcvs/ant/src/main/org/apache/to ols/ant/taskdefs/Zip.java OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I found out, that ant since 1.5.x (1.5 is OK) war/jar/zip tasks change time stamps of the files in archive. The files became "older" compare to originals (which are not in archive). We are using Weblogic Application Server. It does not verify the timestamps for source jsp and corresponding *.class (compiled jsp) direct, but using it own method. Files in war look 2 sec. older and web logic server starts to recompile the sources! public boolean _isStale() { StaleChecker stalechecker = (StaleChecker)getServletConfig ().getServletContext(); Object obj = null; long l = 0L; return stalechecker.isResourceStale("/adminloginform.jsp", 0xf766bf9c0bL, //THIS IS A TIMESTAMP OF ORIGINAL JSP "7.0.1.0"); } http://cvs.apache.org/viewcvs/ant/src/main/org/apache/tools/ant/taskdefs/Zip.jav a protected void zipFile(File file, ZipOutputStream zOut, String vPath, int mode) throws IOException { if (file.equals(zipFile)) { throw new BuildException("A zip file cannot include itself", getLocation ()); } FileInputStream fIn = new FileInputStream(file); try { // ZIPs store time with a granularity of 2 seconds, round up zipFile(fIn, zOut, vPath, file.lastModified() + 1999, null, mode); } finally { fIn.close(); } } Thank you in advance Roman --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]