ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13156] New: - FTP Task has problems when depends="yes" and filename has commas
Date Mon, 30 Sep 2002 21:08:08 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13156>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13156

FTP Task has problems when depends="yes" and filename has commas

           Summary: FTP Task has problems when depends="yes" and filename
                    has commas
           Product: Ant
           Version: 1.5
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: bsholland@msn.com


Using the following target definition:
  <target name="ftp_test">
    <ftp server="<myserver>"
         action="get"
         remotedir="<my_source_dir>"
	 depends="yes"
	 userid="<user>"
	 password="<pw>">
	 <fileset dir="<my_dest_dir>">
	   <include name="**"/>
	 </fileset>
    </ftp>
  </target>

if you have a file named: "a, b,", the dependency checking will fail with
the following output:

      [ftp] Opening FTP connection to <your server>
      [ftp] connected
      [ftp] logging in to FTP server
      [ftp] login succeeded
      [ftp] changing the remote directory
      [ftp] getting files
      [ftp] checking date for a, b,
      [ftp] disconnecting

BUILD FAILED
file:build.xml:20: could not date test remote file: 226 Binary Transfer 
complete.

        at org.apache.tools.ant.taskdefs.optional.net.FTP.isUpToDate
(FTP.java:651)
        at org.apache.tools.ant.taskdefs.optional.net.FTP.getFile(FTP.java:795)
        at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles
(FTP.java:517)
        at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles
(FTP.java:573)
        at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:977)
        at org.apache.tools.ant.Task.perform(Task.java:317)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:334)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 3 seconds

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


Mime
View raw message