conor 2003/07/06 08:33:27 Modified: src/main/org/apache/tools/ant/util ResourceUtils.java Log: Ignore directories in checking for out of date elements in a Zip/Jar task. Directories can't really be out of date since they have no content. PR: 21245 Revision Changes Path 1.3 +10 -10 ant/src/main/org/apache/tools/ant/util/ResourceUtils.java Index: ResourceUtils.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/util/ResourceUtils.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -u -r1.2 -r1.3 --- ResourceUtils.java 4 Apr 2003 13:51:12 -0000 1.2 +++ ResourceUtils.java 6 Jul 2003 15:33:27 -0000 1.3 @@ -130,7 +130,7 @@ + " doesn\'t exist.", Project.MSG_VERBOSE); vresult.addElement(source[counter]); added = true; - } else if (atarget.getLastModified() + } else if (!atarget.isDirectory() && atarget.getLastModified() < source[counter].getLastModified()) { logTo.log(source[counter].getName() + " added as " + atarget.getName()
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]