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 2002/06/06 19:54:45 UTC
DO NOT REPLY [Bug 9670] New: -
doesnt work properly if the FTP server is hosted on Win2k
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=9670>.
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=9670
<ftp action="get" .....> doesnt work properly if the FTP server is hosted on Win2k
Summary: <ftp action="get" .....> doesnt work properly if the
FTP server is hosted on Win2k
Product: Ant
Version: 1.4.1
Platform: PC
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Optional Tasks
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: milindacharya_2000@yahoo.com
The following piece of code throws null pointer exception.
XML Code:
=========
<target name="get">
<ftp action="get"
server="localhost"
userid="anonymous"
password="password"
binary="yes">
<fileset dir="c:/temp/classes">
<patternset>
<include name="**"/>
</patternset>
</fileset>
</ftp>
</target>
Details:
=========
--Ftp Server is hosted on Windows 2000
--All files except the ones with .jar and .zip extention cannot be downloaded.
Exceptions:
===============
[ftp] File C:\temp\classes\cvs.xml copied from localhost
[ftp] File C:\temp\classes\cvs.xml.bak copied from localhost
[ftp] File C:\temp\classes\Edit3 copied from localhost
BUILD FAILED
C:\Temp\build.xml:58: could not transfer file: 550 jakarta-ant-1.4.1-bin.zip:
Access is denied.
at org.apache.tools.ant.taskdefs.optional.net.FTP.getFile(FTP.java:673)
at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles
(FTP.java:419)
at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles
(FTP.java:467)
at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:789)
at org.apache.tools.ant.Task.perform(Task.java:217)
at org.apache.tools.ant.Target.execute(Target.java:184)
at org.apache.tools.ant.Target.performTasks(Target.java:202)
at org.apache.tools.ant.Project.executeTarget(Project.java:601)
at org.apache.tools.ant.Project.executeTargets(Project.java:560)
at org.apache.tools.ant.Main.runBuild(Main.java:454)
at org.apache.tools.ant.Main.start(Main.java:153)
at org.apache.tools.ant.Main.main(Main.java:176)
Total time: 1 second
Work Around:
=============
Since Access Denied gives the hint that file doesnt have permissions.
Right click on the affected file, go to properties >> Security >> Add..
Select Everyone and add to the list.
The file can now be downloaded by the client.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>