ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r289482 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/CopyPath.java
Date Fri, 16 Sep 2005 10:36:50 GMT
Author: stevel
Date: Fri Sep 16 03:36:44 2005
New Revision: 289482

URL: http://svn.apache.org/viewcvs?rev=289482&view=rev
Log:
in copypath, we skip directories although there is on other choice -bulk copy. Maybe a switch
could determine policy here.

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/CopyPath.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/CopyPath.java?rev=289482&r1=289481&r2=289482&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/CopyPath.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/CopyPath.java Fri Sep 16 03:36:44
2005
@@ -160,6 +160,10 @@
                             Project.MSG_VERBOSE);
                     continue;
                 }
+                if(sourceFile.isDirectory()) {
+                    log("Skipping directory " + sourceFileName);
+                    continue;
+                }
                 try {
                     log("Copying " + sourceFile + " to " + destFile,
                             Project.MSG_VERBOSE);



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


Mime
View raw message