ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r676595 - in /ant/core/trunk: WHATSNEW src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
Date Mon, 14 Jul 2008 14:07:08 GMT
Author: bodewig
Date: Mon Jul 14 07:07:07 2008
New Revision: 676595

URL: http://svn.apache.org/viewvc?rev=676595&view=rev
Log:
log where directories get created

Modified:
    ant/core/trunk/WHATSNEW
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java

Modified: ant/core/trunk/WHATSNEW
URL: http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?rev=676595&r1=676594&r2=676595&view=diff
==============================================================================
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Mon Jul 14 07:07:07 2008
@@ -160,7 +160,7 @@
    Bugzilla report 35627.
 
  * <ftp>'s logging has been improved.
-   Bugzilla report 30932.
+   Bugzilla reports 30932, 31743.
 
 Changes from Ant 1.7.0 TO Ant 1.7.1
 =============================================

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java?rev=676595&r1=676594&r2=676595&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java Mon Jul 14
07:07:07 2008
@@ -2205,7 +2205,11 @@
          throws IOException, BuildException {
         String workingDirectory = ftp.printWorkingDirectory();
         if (verbose) {
-            log("Creating directory: " + dir);
+            if (dir.indexOf("/") == 0 || workingDirectory == null) {
+                log("Creating directory: " + dir + " in /");
+            } else {
+                log("Creating directory: " + dir + " in " + workingDirectory);
+            }
         }
         if (dir.indexOf("/") == 0) {
             ftp.changeWorkingDirectory("/");



Mime
View raw message