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 Thu, 03 May 2001 11:18:46 GMT
bodewig     01/05/03 04:18:46

  Modified:    src/main/org/apache/tools/ant/taskdefs Copy.java
  Log:
  Make <copy> throw an exception if the file to copy doesn't exist.
  
  PR: 1547
  Submitted by:	Alan Gates <alang@radik.com>
  
  Revision  Changes    Path
  1.16      +4 -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.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Copy.java	2001/04/27 11:58:50	1.15
  +++ Copy.java	2001/05/03 11:18:44	1.16
  @@ -204,7 +204,10 @@
                           Project.MSG_VERBOSE);
                   }
               } else {
  -                log("Could not find file " + file.getAbsolutePath() + " to copy.");
  +                String message = "Could not find file " 
  +                                 + file.getAbsolutePath() + " to copy.";
  +                log(message);
  +                throw new BuildException(message);
               }
           }
   
  
  
  

Mime
View raw message