Author: bodewig
Date: Tue Aug 18 03:54:41 2009
New Revision: 805270

URL: http://svn.apache.org/viewvc?rev=805270&view=rev
Log:
some extra verbose diagnostics

Modified:
    
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsLastModified.java

Modified: 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsLastModified.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsLastModified.java?rev=805270&r1=805269&r2=805270&view=diff
==============================================================================
--- 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsLastModified.java
 (original)
+++ 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/IsLastModified.java
 Tue Aug 18 03:54:41 2009
@@ -21,8 +21,10 @@
 import java.text.DateFormat;
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
+import java.util.Date;
 
 import org.apache.tools.ant.BuildException;
+import org.apache.tools.ant.Project;
 import org.apache.tools.ant.ProjectComponent;
 import org.apache.tools.ant.taskdefs.Touch;
 import org.apache.tools.ant.types.EnumeratedAttribute;
@@ -147,6 +149,9 @@
         validate();
         long expected = getMillis();
         long actual = resource.getLastModified();
+        log("expected timestamp: " + expected + " (" + new Date(expected) + ")"
+            + ", actual timestamp: " + actual + " (" + new Date(actual) + ")" ,
+            Project.MSG_VERBOSE);
         if (CompareMode.EQUALS_TEXT.equals(mode.getValue())) {
             return expected == actual;
         }


Reply via email to