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 Copy.java
Date Mon, 14 Oct 2002 10:22:45 GMT
bodewig     2002/10/14 03:22:44

  Modified:    src/main/org/apache/tools/ant/taskdefs Copy.java
  Log:
  explicitly check whether destFile exists in <copy file="..."/>
  
  Revision  Changes    Path
  1.48      +2 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Copy.java
  
  Index: Copy.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Copy.java,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- Copy.java	25 Jul 2002 15:21:04 -0000	1.47
  +++ Copy.java	14 Oct 2002 10:22:44 -0000	1.48
  @@ -329,6 +329,7 @@
                       }
   
                       if (forceOverwrite ||
  +                        !destFile.exists() ||
                           (file.lastModified() > destFile.lastModified())) {
                           fileCopyMap.put(file.getAbsolutePath(),
                                           destFile.getAbsolutePath());
  
  
  

--
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