ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r594011 - /ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
Date Mon, 12 Nov 2007 02:43:18 GMT
Author: kevj
Date: Sun Nov 11 18:43:17 2007
New Revision: 594011

URL: http://svn.apache.org/viewvc?rev=594011&view=rev
Log:
-backport/merge FileUtils.createTempFile changes as required

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

Modified: ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
URL: http://svn.apache.org/viewvc/ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java?rev=594011&r1=594010&r2=594011&view=diff
==============================================================================
--- ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
(original)
+++ ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
Sun Nov 11 18:43:17 2007
@@ -1827,8 +1827,9 @@
         FTPFile [] theFiles = null;
         final int maxIterations = 1000;
         for (int counter = 1; counter < maxIterations; counter++) {
-            File localFile = FILE_UTILS.createTempFile("ant" + Integer.toString(counter),
".tmp",
-                null);
+            File localFile = FILE_UTILS.createTempFileName(
+            	"ant" + Integer.toString(counter), ".tmp",
+                null, false);
             String fileName = localFile.getName();
             boolean found = false;
             try {



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


Mime
View raw message