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 27437] New: - FTP "get" and "list" tasks fail
Date Thu, 04 Mar 2004 14:56:47 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=27437>.
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=27437

FTP "get" and "list" tasks fail

           Summary: FTP "get" and "list" tasks fail
           Product: Ant
           Version: 1.6.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: mark.ravenscroft@ingdirect.co.uk


When attempting to get or list files via FTP, ANT returns the filenames 
corrupted.

Running Ant 1.6.1 under MS Windows 2000, client is Unix on AIX RS6000.
 
To reproduce:
-------------------------------------------------------------------------
<?xml version='1.0'?>
<project name='INGDirect' basedir='.' default='FTPList'> 
	
	<description>
			Use FTP to list files on Unix box
	</description>
	
    <property name='libhome' location='D:\apache-ant-1.6.1\lib' />
    <property name='java.classpath' location='${libhome}\ant-starteam-1.6.jar;
{libhome}\commons-net.jar;{libhome}\jakarta-oro.jar'/>
	<taskdef name="ftp" 
classname="org.apache.tools.ant.taskdefs.optional.net.FTP" />

	<target name='FTPList'>       
	
   	<ftp action="list"
		       server="abcd"
		       userid="****"
		       password="****" 
		       remotedir="mirtest"
		       listing='tmp.list'
		       verbose="yes">
		  <fileset>
		  	<include name="**.m"/>
		  </fileset>
		</ftp>


	</target>

</project>

-------------------------------------------------------------
Output is:


D:\ant-scripts\source>set PATH=D:\apache-ant-1.6.1\bin;\\rdgswas1
\StarGate_Lib;C:\WINNT\System32;D:\apache-ant-1.6.1\lib 

D:\ant-scripts\source>set CLASSPATH=\\rdgswas1\StarGate_Lib\starteam54.jar 

D:\ant-scripts\source>ANT -d   
Apache Ant version 1.6.1 compiled on February 12 2004
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.4 in: C:\j2sdk1.4.1_01\jre
Detected OS: Windows 2000
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.1 compiled 
on February 12 2004
Setting ro project property: ant.file -> D:\ant-scripts\source\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile D:\ant-scripts\source\build.xml with URI = file:///D:/ant-
scripts/source/build.xml
Setting ro project property: ant.project.name -> INGDirect
Adding reference: INGDirect
Setting ro project property: ant.file.INGDirect -> D:\ant-
scripts\source\build.xml
Project base dir set to: D:\ant-scripts\source
 +Target: 
 +Target: FTPList
Setting project property: libhome -> D:\apache-ant-1.6.1\lib
Setting project property: java.classpath -> D:\apache-ant-1.6.1\lib\ant-
starteam-1.6.jar;{libhome}\commons-net.jar;{libhome}\jakarta-oro.jar
  [taskdef] dropping rdgswas1\StarGate_Lib\starteam54.jar from path as it 
doesn't exist
Class org.apache.tools.ant.taskdefs.optional.net.FTP loaded from parent loader 
(parentFirst)
Build sequence for target `FTPList' is [FTPList]
Complete build sequence is [FTPList, ]

FTPList:
      [ftp] Opening FTP connection to dbos
      [ftp] connected
      [ftp] logging in to FTP server
      [ftp] login succeeded
      [ftp] changing the remote directory
      [ftp] listing files
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) 
for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for 
type cvsversion
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load a dependent class (junit/framework/TestListener) for type junit
fileset: Setup scanner in dir null with patternSet{ includes: [**.m] excludes: 
[] }
      [ftp] listing ar 16:27 ZMIR2.m
      [ftp] listing ar 16:27 ZMIR69.m
      [ftp] listing ar 16:27 ZMIRNEW.m
      [ftp] listing ar 16:27 ZMRPC03A.m
      [ftp] listing ar 16:27 ZMRPC03B.m
      [ftp] listing ar 16:27 ZMRPC61A.m
      [ftp] listing ar 16:27 ZMRPC800.m
      [ftp] listing ar 16:27 ZMRPC801.m
      [ftp] listing ar 16:27 ZMRPC802.m
      [ftp] listing ar 16:27 ZMRPC803.m
      [ftp] listing ar 16:27 ZMRPC804.m
      [ftp] listing ar 16:27 ZMRPC805.m
      [ftp] listing ar 16:27 ZMRPC806.m
      [ftp] listing ar 16:27 ZMRPC808.m
      [ftp] listing ar 16:27 ZMRPC809.m
      [ftp] listing ar 16:27 ZMRPC810.m
      [ftp] listing ar 16:27 ZMRPC812.m
      [ftp] listing ar 16:27 ZMRPC901.m
      [ftp] listing ar 16:27 ZMRPC902.m
      [ftp] listing ar 16:27 ZMRPC903.m
      [ftp] listing ar 16:27 ZMRPC904.m
      [ftp] listing ar 16:27 ZMRPC905.m
      [ftp] listing ar 16:27 ZMRPC906.m
      [ftp] listing ar 16:27 ZMRPC907.m
      [ftp] listing ar 16:27 ZMRPC908.m
      [ftp] listing ar 16:27 ZMRPC909.m
      [ftp] listing ar 16:27 ZMRPC910.m
      [ftp] listing ar 16:27 ZMRPC913.m
      [ftp] listing ar 16:27 ZMRPC914.m
      [ftp] listing ar 16:27 ZMRPC921.m
      [ftp] listing ar 16:27 ZMRPC925.m
      [ftp] listing ar 16:27 ZMRPC926.m
      [ftp] listing ar 16:27 ZMRPC927.m
      [ftp] listing ar 16:27 ZMRPC929.m
      [ftp] listing ar 16:27 ZMRPC930.m
      [ftp] listing ar 16:27 ZMRPC935.m
      [ftp] listing ar 16:27 ZMRPC938.m
      [ftp] listing ar 16:27 ZMRPC940.m
      [ftp] listing ar 16:27 ZMRPC941.m
      [ftp] listing ar 16:27 ZMRPC942.m
      [ftp] listing ar 16:27 ZMRPC961.m
      [ftp] listing ar 16:27 ZMRPC962.m
      [ftp] listing ar 16:27 ZMRPC963.m
      [ftp] listing ar 16:27 ZMRPC964.m
      [ftp] listing ar 16:27 ZMRPC979.m
      [ftp] listing ar 16:27 ZMRPC991.m
      [ftp] listing ar 16:27 ZMRPCP29.m
      [ftp] listing ar 16:27 ZMRPCUTL.m
      [ftp] 48 files listed
      [ftp] disconnecting

BUILD SUCCESSFUL
Total time: 2 seconds
---------------------------------------------------------------------------
Contents of "listing" file


-rw-r-----   1 ravensm  sca          814 02 Mar 16:27 ZMIR2.m
-rw-r-----   1 ravensm  sca          780 02 Mar 16:27 ZMIR69.m
-rw-r-----   1 ravensm  sca         2120 02 Mar 16:27 ZMIRNEW.m
-rw-r-----   1 ravensm  sca        15347 02 Mar 16:27 ZMRPC03A.m
-rw-r-----   1 ravensm  sca        12172 02 Mar 16:27 ZMRPC03B.m
-rw-r-----   1 ravensm  sca         6242 02 Mar 16:27 ZMRPC61A.m
-rw-r-----   1 ravensm  sca         3259 02 Mar 16:27 ZMRPC800.m
-rw-r-----   1 ravensm  sca         3264 02 Mar 16:27 ZMRPC801.m
-rw-r-----   1 ravensm  sca         5145 02 Mar 16:27 ZMRPC802.m
-rw-r-----   1 ravensm  sca         5071 02 Mar 16:27 ZMRPC803.m
-rw-r-----   1 ravensm  sca         5096 02 Mar 16:27 ZMRPC804.m
-rw-r-----   1 ravensm  sca         4683 02 Mar 16:27 ZMRPC805.m
-rw-r-----   1 ravensm  sca         5009 02 Mar 16:27 ZMRPC806.m
-rw-r-----   1 ravensm  sca         2425 02 Mar 16:27 ZMRPC808.m
-rw-r-----   1 ravensm  sca         9150 02 Mar 16:27 ZMRPC809.m
-rw-r-----   1 ravensm  sca        18007 02 Mar 16:27 ZMRPC810.m
-rw-r-----   1 ravensm  sca         3923 02 Mar 16:27 ZMRPC812.m
-rw-r-----   1 ravensm  sca         7023 02 Mar 16:27 ZMRPC901.m
-rw-r-----   1 ravensm  sca        15221 02 Mar 16:27 ZMRPC902.m
-rw-r-----   1 ravensm  sca        16943 02 Mar 16:27 ZMRPC903.m
-rw-r-----   1 ravensm  sca        11454 02 Mar 16:27 ZMRPC904.m
-rw-r-----   1 ravensm  sca         5926 02 Mar 16:27 ZMRPC905.m
-rw-r-----   1 ravensm  sca        14167 02 Mar 16:27 ZMRPC906.m
-rw-r-----   1 ravensm  sca        31350 02 Mar 16:27 ZMRPC907.m
-rw-r-----   1 ravensm  sca        26765 02 Mar 16:27 ZMRPC908.m
-rw-r-----   1 ravensm  sca        40841 02 Mar 16:27 ZMRPC909.m
-rw-r-----   1 ravensm  sca         3493 02 Mar 16:27 ZMRPC910.m
-rw-r-----   1 ravensm  sca         4636 02 Mar 16:27 ZMRPC913.m
-rw-r-----   1 ravensm  sca         5633 02 Mar 16:27 ZMRPC914.m
-rw-r-----   1 ravensm  sca        12887 02 Mar 16:27 ZMRPC921.m
-rw-r-----   1 ravensm  sca         8606 02 Mar 16:27 ZMRPC925.m
-rw-r-----   1 ravensm  sca         9463 02 Mar 16:27 ZMRPC926.m
-rw-r-----   1 ravensm  sca         5786 02 Mar 16:27 ZMRPC927.m
-rw-r-----   1 ravensm  sca        12513 02 Mar 16:27 ZMRPC929.m
-rw-r-----   1 ravensm  sca         6603 02 Mar 16:27 ZMRPC930.m
-rw-r-----   1 ravensm  sca         4194 02 Mar 16:27 ZMRPC935.m
-rw-r-----   1 ravensm  sca         7216 02 Mar 16:27 ZMRPC938.m
-rw-r-----   1 ravensm  sca         4466 02 Mar 16:27 ZMRPC940.m
-rw-r-----   1 ravensm  sca        23840 02 Mar 16:27 ZMRPC941.m
-rw-r-----   1 ravensm  sca         3964 02 Mar 16:27 ZMRPC942.m
-rw-r-----   1 ravensm  sca         6405 02 Mar 16:27 ZMRPC961.m
-rw-r-----   1 ravensm  sca        41925 02 Mar 16:27 ZMRPC962.m
-rw-r-----   1 ravensm  sca         9280 02 Mar 16:27 ZMRPC963.m
-rw-r-----   1 ravensm  sca        10757 02 Mar 16:27 ZMRPC964.m
-rw-r-----   1 ravensm  sca         3907 02 Mar 16:27 ZMRPC979.m
-rw-r-----   1 ravensm  sca         3592 02 Mar 16:27 ZMRPC991.m
-rw-r-----   1 ravensm  sca        44899 02 Mar 16:27 ZMRPCP29.m
-rw-r-----   1 ravensm  sca        21039 02 Mar 16:27 ZMRPCUTL.m

----------------------------------------------------------------------

i.e. The FTP command is corrupting the incoming filenames. A similar example 
using FTP "get" results in a DOS file being created named "ar 16".

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


Mime
View raw message