ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r446969 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java
Date Sat, 16 Sep 2006 23:03:36 GMT
Author: peterreilly
Date: Sat Sep 16 16:03:36 2006
New Revision: 446969

URL: http://svn.apache.org/viewvc?view=rev&rev=446969
Log:
bugzilla 28826: make log level messsage for failing to copy consistent

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java?view=diff&rev=446969&r1=446968&r2=446969
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java Sat Sep 16 16:03:36 2006
@@ -413,7 +413,7 @@
                     String message = "Warning: Could not find file "
                         + file.getAbsolutePath() + " to copy.";
                     if (!failonerror) {
-                        log(message);
+                        log(message, Project.MSG_ERR);
                     } else {
                         throw new BuildException(message);
                     }
@@ -454,7 +454,7 @@
                             || !getMessage(e).endsWith(" not found.")) {
                             throw e;
                         } else {
-                            log("Warning: " + getMessage(e));
+                            log("Warning: " + getMessage(e), Project.MSG_ERR);
                             continue;
                         }
                     }



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


Mime
View raw message