ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Touch.java
Date Mon, 10 Dec 2001 16:05:08 GMT
bodewig     01/12/10 08:05:08

  Modified:    src/main/org/apache/tools/ant/taskdefs Touch.java
  Log:
  repair the broken logic of my last patch (my fault not the original
  submitter's).
  
  Revision  Changes    Path
  1.13      +9 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Touch.java
  
  Index: Touch.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Touch.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Touch.java	2001/12/10 15:54:26	1.12
  +++ Touch.java	2001/12/10 16:05:08	1.13
  @@ -180,7 +180,11 @@
               log("modification time of files cannot be set in JDK 1.1",
                   Project.MSG_WARN);
               return;
  -        } else {
  +        } 
  +
  +        boolean resetMillis = false;
  +        if (millis < 0) {
  +            resetMillis = true;
               millis = System.currentTimeMillis();
           }
   
  @@ -204,6 +208,10 @@
               for(int j=0; j < srcDirs.length ; j++) {
                   touch(new File(fromDir, srcDirs[j]));
               }
  +        }
  +
  +        if (resetMillis) {
  +            millis = -1;
           }
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message