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 <[EMAIL PROTECTED]>
  
  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);
               }
           }
   
  
  
  

Reply via email to