ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sukhdev.si...@flextronicssoftware.com
Subject problem when using FTP task on win 2000
Date Mon, 09 May 2005 09:45:10 GMT

Hi,
         i am facing a problem in FTP task on win 2000.I am trying to 
create a folderon a remote machine(windows 2000) by
                    <ftp  action="mkdir"
                        server="10.203.137.52"
                 userid="suksingh"
                 password="abc"
                remotedir="D:\abc\xyz" >
          </ftp> 

parent folder D:\abc does not exist.it gives an error "access denied".when 


D:\abc exist on the remote machine it creates folder xyz in D:\abc.
But  if i replaced "\" with "/" say D:/abc/xyz it works perfactly.
if remote machine is UNIX it works perfactly weather parent folder exist 
or not.
              <ftp  action="mkdir"
                        server="10.203.137.24"
                 userid="suksingh"
                 password="abc"
                remotedir="/abc/xyz" >
             </ftp> 

second problem is,when i tried to delete the a directory(D:\abc\xyz) by
 <ftp action="delete"
         server="10.203.137.128"
         userid="suksingh"
         password="abc"
         remotedir="D:\abc"
                >
         <fileset>
              <include name="**"/>
         </fileset>
   </ftp>

   <ftp  action="rmdir"
         server="10.203.137.128"
         userid="suksingh"
         password="abc"
         remotedir="D:\abc"
                >
          <fileset>
             <include name="**"/>
          </fileset>
   </ftp> 

it gives the exception-
BUILD FAILED
D:\Programs\Ant\bin\build.xml:14: 
org.apache.commons.net.ftp.parser.ParserInitia
lizationException: Error initializing parser
        at org.apache.tools.ant.Task.perform(Task.java:373)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at org.apache.tools.ant.Main.runBuild(Main.java:673)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: 
org.apache.commons.net.ftp.parser.ParserInitializationException: Erro
r initializing parser
        at 
org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.cr
eateFileEntryParser(DefaultFTPFileEntryParserFactory.java:115)
        at 
org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.ja
va:2306)
        at 
org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2055)
        at 
org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2106)
        at 
org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2146)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.li
stFiles(FTP.java:501)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.sc
andir(FTP.java:329)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.ch
eckIncludePatterns(FTP.java:233)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.sc
an(FTP.java:197)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java
:1287)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java
:1382)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2010)

        at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        ... 8 more
--- Nested Exception ---
org.apache.commons.net.ftp.parser.ParserInitializationException: Error 
initializ
ing parser
        at 
org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.cr
eateFileEntryParser(DefaultFTPFileEntryParserFactory.java:115)
        at 
org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.ja
va:2306)
        at 
org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2055)
        at 
org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2106)
        at 
org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2146)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.li
stFiles(FTP.java:501)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.sc
andir(FTP.java:329)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.ch
eckIncludePatterns(FTP.java:233)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.sc
an(FTP.java:197)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java
:1287)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java
:1382)
        at 
org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2010)

        at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at org.apache.tools.ant.Main.runBuild(Main.java:673)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

please resolve the problem.Thanx in advance.



Thanks & Regards,

Sukhdev Singh


***********************  FSS-Unclassified   ***********************

"DISCLAIMER: This message is proprietary to Flextronics Software 
Systems Limited (FSS) and is intended solely for the use of the  
individual to whom it is addressed. It may contain  privileged or 
confidential information and should not be circulated or used for 
any purpose other than for what it is intended. If you have received 
this message in  error, please notify the originator immediately. 
If you are not the intended recipient, you are notified that you are
strictly  prohibited  from  using, copying, altering, or disclosing
the contents of this message.  FSS  accepts no  responsibility  for
loss or damage arising from the use of  the information transmitted
by this email including damage from virus."
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message