You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/05/14 21:07:31 UTC

DO NOT REPLY [Bug 28987] New: - FTP task cannot get files containing spaces in their name

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28987>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28987

FTP task cannot get files containing spaces in their name

           Summary: FTP task cannot get files containing spaces in their
                    name
           Product: Ant
           Version: 1.6.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: jknight@esri.com


FTP Server is running Windows 2000 Server using IIS with UNIX Directory Style
Listings.

Tested clients are Windows XP Professional (Service Pack 1) and Red Hat
Enterprise Linux ES 3.0.

Here is a copy of the FTP task.

<ftp server="${ftp.server}" userid="${ftp.user.name}"
password="${ftp.user.password}" remotedir="${data.dir.remote}" action="get"
depends="yes" ignoreNoncriticalErrors="yes" skipFailedTransfers="yes"
preservelastmodified="yes">
 <fileset dir="${data.dir.local}">
  <include name="Raster/ComponentTest/TestData/Format/**"/>
 </fileset>
</ftp>

Below is a copy of the Build Exception output (using JBuilder 8 and the Ant
1.6.1 libraries).

BUILD FAILED
\\Tashi\twebunix1\scripts\updateFromQALab_Server.xml:13: could not date test
remote file: 550 Raster/ComponentTest/TestData/Format/image2/Copy: The system
cannot find the file specified. 
	at org.apache.tools.ant.taskdefs.optional.net.FTP.isUpToDate(FTP.java:1580)
	at org.apache.tools.ant.taskdefs.optional.net.FTP.getFile(FTP.java:1782)
	at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java:1339)
	at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java:1388)
	at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2016)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:301)
	at org.apache.tools.ant.Target.performTasks(Target.java:328)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
	at org.apache.tools.ant.Main.runBuild(Main.java:632)
	at org.apache.tools.ant.Main.startAnt(Main.java:183)
	at org.apache.tools.ant.Main.start(Main.java:147)
	at org.apache.tools.ant.Main.main(Main.java:230)

Below is a copy of the output using built-in ftp clients.

ftp> ls -l
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
-r-xr-xr-x   1 owner    group            8245 May 14  3:08 Band_1.xml
-r-xr-xr-x   1 owner    group            8192 Oct 25  2002 Copy of
tif1_1n_ui_landcgi.tif.xml
226 Transfer complete.
ftp: 6152 bytes received in 0.00Seconds 6152000.00Kbytes/sec.

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