FAQ
I downloaded the required jarfile from ant site for ftp task . I get the
following error.



C:\antscripts>ant -verbose -f generalftp.xml

Apache Ant version 1.6.2 compiled on August 5 2004

Buildfile: generalftp.xml

Detected Java version: 1.5 in: C:\bea9\JROCKI~1\jre

Detected OS: Windows XP

parsing buildfile C:\antscripts\generalftp.xml with URI =
file:///C:/antscripts/

generalftp.xml

Project base dir set to: C:\antscripts

Build sequence for target `ftp' is [ftp]

Complete build sequence is [ftp, ]



ftp:

[ftp] Opening FTP connection to 10.187.218.183



BUILD FAILED

C:\antscripts\generalftp.xml:7: error during FTP transfer:
java.net.ConnectExcep

tion: Connection refused

at
org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2014)



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)





My build file is



<project name="ftpuse" default="ftp">

<target name="ftp">

<ftp server="10.187.218.183"

remotedir="c:\uploads"

depends="yes"

userid="sparthasarthy12"

password="srinivasa27">

<fileset dir="c:\sshkeys"/>

</ftp>

<echo message="ftp successful"/>

</target>

</project>



what is wrong.......

Search Discussions

  • Ivan Ivanov at Dec 14, 2005 at 11:14 pm
    Hello,

    Are you aure you have ftp server up and running on
    10.187.218.183? Can you access the ftp server using
    ordinary command line client like
    C:\> ftp 10.187.218.183

    Regards
    Ivan

    --- [email protected] wrote:
    I downloaded the required jarfile from ant site for
    ftp task . I get the
    following error.



    C:\antscripts>ant -verbose -f generalftp.xml

    Apache Ant version 1.6.2 compiled on August 5 2004

    Buildfile: generalftp.xml

    Detected Java version: 1.5 in: C:\bea9\JROCKI~1\jre

    Detected OS: Windows XP

    parsing buildfile C:\antscripts\generalftp.xml with
    URI =
    file:///C:/antscripts/

    generalftp.xml

    Project base dir set to: C:\antscripts

    Build sequence for target `ftp' is [ftp]

    Complete build sequence is [ftp, ]



    ftp:

    [ftp] Opening FTP connection to 10.187.218.183



    BUILD FAILED

    C:\antscripts\generalftp.xml:7: error during FTP
    transfer:
    java.net.ConnectExcep

    tion: Connection refused

    at
    org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2014)


    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)




    My build file is



    <project name="ftpuse" default="ftp">

    <target name="ftp">

    <ftp server="10.187.218.183"

    remotedir="c:\uploads"

    depends="yes"

    userid="sparthasarthy12"

    password="srinivasa27">

    <fileset dir="c:\sshkeys"/>

    </ftp>

    <echo message="ftp successful"/>

    </target>

    </project>



    what is wrong.......

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • Srikrishna_parthasarathy at Dec 14, 2005 at 11:18 pm
    I am trying from my laptop to my desktop. Eventually I have to move
    files from one windows box to multiple windows boxes.

    -----Original Message-----
    From: Ivan Ivanov
    Sent: Wednesday, December 14, 2005 6:14 PM
    To: Ant Users List
    Subject: Re: Urgent help with FTP task.....please help

    Hello,

    Are you aure you have ftp server up and running on
    10.187.218.183? Can you access the ftp server using
    ordinary command line client like
    C:\> ftp 10.187.218.183

    Regards
    Ivan

    --- [email protected] wrote:
    I downloaded the required jarfile from ant site for
    ftp task . I get the
    following error.



    C:\antscripts>ant -verbose -f generalftp.xml

    Apache Ant version 1.6.2 compiled on August 5 2004

    Buildfile: generalftp.xml

    Detected Java version: 1.5 in: C:\bea9\JROCKI~1\jre

    Detected OS: Windows XP

    parsing buildfile C:\antscripts\generalftp.xml with
    URI =
    file:///C:/antscripts/

    generalftp.xml

    Project base dir set to: C:\antscripts

    Build sequence for target `ftp' is [ftp]

    Complete build sequence is [ftp, ]



    ftp:

    [ftp] Opening FTP connection to 10.187.218.183



    BUILD FAILED

    C:\antscripts\generalftp.xml:7: error during FTP
    transfer:
    java.net.ConnectExcep

    tion: Connection refused

    at
    org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2014)


    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)




    My build file is



    <project name="ftpuse" default="ftp">

    <target name="ftp">

    <ftp server="10.187.218.183"

    remotedir="c:\uploads"

    depends="yes"

    userid="sparthasarthy12"

    password="srinivasa27">

    <fileset dir="c:\sshkeys"/>

    </ftp>

    <echo message="ftp successful"/>

    </target>

    </project>



    what is wrong.......

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • Ivan Ivanov at Dec 14, 2005 at 11:22 pm
    Hello

    --- [email protected] wrote:
    I am trying from my laptop to my desktop.
    Fine, but is there a running ftp server on your
    desktop?

    Regards
    Ivan
    -----Original Message-----
    From: Ivan Ivanov

    Sent: Wednesday, December 14, 2005 6:14 PM
    To: Ant Users List
    Subject: Re: Urgent help with FTP task.....please
    help

    Hello,

    Are you aure you have ftp server up and running on
    10.187.218.183? Can you access the ftp server using
    ordinary command line client like
    C:\> ftp 10.187.218.183

    Regards
    Ivan

    --- [email protected] wrote:
    I downloaded the required jarfile from ant site for
    ftp task . I get the
    following error.



    C:\antscripts>ant -verbose -f generalftp.xml

    Apache Ant version 1.6.2 compiled on August 5 2004

    Buildfile: generalftp.xml

    Detected Java version: 1.5 in:
    C:\bea9\JROCKI~1\jre
    Detected OS: Windows XP

    parsing buildfile C:\antscripts\generalftp.xml with
    URI =
    file:///C:/antscripts/

    generalftp.xml

    Project base dir set to: C:\antscripts

    Build sequence for target `ftp' is [ftp]

    Complete build sequence is [ftp, ]



    ftp:

    [ftp] Opening FTP connection to
    10.187.218.183


    BUILD FAILED

    C:\antscripts\generalftp.xml:7: error during FTP
    transfer:
    java.net.ConnectExcep

    tion: Connection refused

    at
    org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2014)


    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)




    My build file is



    <project name="ftpuse" default="ftp">

    <target name="ftp">

    <ftp server="10.187.218.183"

    remotedir="c:\uploads"

    depends="yes"

    userid="sparthasarthy12"

    password="srinivasa27">

    <fileset dir="c:\sshkeys"/>

    </ftp>

    <echo message="ftp successful"/>

    </target>

    </project>



    what is wrong.......

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam
    protection around
    http://mail.yahoo.com

    ---------------------------------------------------------------------
    To unsubscribe, e-mail:
    [email protected]
    For additional commands, e-mail:
    [email protected]


    ---------------------------------------------------------------------
    To unsubscribe, e-mail:
    [email protected]
    For additional commands, e-mail:
    [email protected]

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • Alexey N. Solofnenko at Dec 14, 2005 at 11:26 pm
    Why not to use <copy> with UNC paths?

    - Alexey.


    [email protected] wrote:
    I am trying from my laptop to my desktop. Eventually I have to move
    files from one windows box to multiple windows boxes.

    -----Original Message-----
    From: Ivan Ivanov
    Sent: Wednesday, December 14, 2005 6:14 PM
    To: Ant Users List
    Subject: Re: Urgent help with FTP task.....please help

    Hello,

    Are you aure you have ftp server up and running on
    10.187.218.183? Can you access the ftp server using
    ordinary command line client like
    C:\> ftp 10.187.218.183

    Regards
    Ivan

    --- [email protected] wrote:

    I downloaded the required jarfile from ant site for
    ftp task . I get the
    following error.



    C:\antscripts>ant -verbose -f generalftp.xml

    Apache Ant version 1.6.2 compiled on August 5 2004

    Buildfile: generalftp.xml

    Detected Java version: 1.5 in: C:\bea9\JROCKI~1\jre

    Detected OS: Windows XP

    parsing buildfile C:\antscripts\generalftp.xml with
    URI =
    file:///C:/antscripts/

    generalftp.xml

    Project base dir set to: C:\antscripts

    Build sequence for target `ftp' is [ftp]

    Complete build sequence is [ftp, ]



    ftp:

    [ftp] Opening FTP connection to 10.187.218.183



    BUILD FAILED

    C:\antscripts\generalftp.xml:7: error during FTP
    transfer:
    java.net.ConnectExcep

    tion: Connection refused

    at

    org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2014)

    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)



    My build file is



    <project name="ftpuse" default="ftp">

    <target name="ftp">

    <ftp server="10.187.218.183"

    remotedir="c:\uploads"

    depends="yes"

    userid="sparthasarthy12"

    password="srinivasa27">

    <fileset dir="c:\sshkeys"/>

    </ftp>

    <echo message="ftp successful"/>

    </target>

    </project>



    what is wrong.......


    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • Srikrishna_parthasarathy at Dec 14, 2005 at 11:24 pm
    I am not a windows guy ...How to check if the ftp server is running or
    how to start it ? I did from my laptop the following

    C:\antscripts>ftp 10.187.218.183
    ftp: connect :Unknown error number
    ftp> exit
    Invalid command.
    ftp> quit
    I am using windows xp sp1
    Thanks
    srikrishna

    -----Original Message-----
    From: Ivan Ivanov
    Sent: Wednesday, December 14, 2005 6:22 PM
    To: Ant Users List
    Subject: RE: Urgent help with FTP task.....please help

    Hello

    --- [email protected] wrote:
    I am trying from my laptop to my desktop.
    Fine, but is there a running ftp server on your
    desktop?

    Regards
    Ivan
    -----Original Message-----
    From: Ivan Ivanov

    Sent: Wednesday, December 14, 2005 6:14 PM
    To: Ant Users List
    Subject: Re: Urgent help with FTP task.....please
    help

    Hello,

    Are you aure you have ftp server up and running on
    10.187.218.183? Can you access the ftp server using
    ordinary command line client like
    C:\> ftp 10.187.218.183

    Regards
    Ivan

    --- [email protected] wrote:
    I downloaded the required jarfile from ant site for
    ftp task . I get the
    following error.



    C:\antscripts>ant -verbose -f generalftp.xml

    Apache Ant version 1.6.2 compiled on August 5 2004

    Buildfile: generalftp.xml

    Detected Java version: 1.5 in:
    C:\bea9\JROCKI~1\jre
    Detected OS: Windows XP

    parsing buildfile C:\antscripts\generalftp.xml with
    URI =
    file:///C:/antscripts/

    generalftp.xml

    Project base dir set to: C:\antscripts

    Build sequence for target `ftp' is [ftp]

    Complete build sequence is [ftp, ]



    ftp:

    [ftp] Opening FTP connection to
    10.187.218.183


    BUILD FAILED

    C:\antscripts\generalftp.xml:7: error during FTP
    transfer:
    java.net.ConnectExcep

    tion: Connection refused

    at
    org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2014)


    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)




    My build file is



    <project name="ftpuse" default="ftp">

    <target name="ftp">

    <ftp server="10.187.218.183"

    remotedir="c:\uploads"

    depends="yes"

    userid="sparthasarthy12"

    password="srinivasa27">

    <fileset dir="c:\sshkeys"/>

    </ftp>

    <echo message="ftp successful"/>

    </target>

    </project>



    what is wrong.......

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam
    protection around
    http://mail.yahoo.com

    ---------------------------------------------------------------------
    To unsubscribe, e-mail:
    [email protected]
    For additional commands, e-mail:
    [email protected]


    ---------------------------------------------------------------------
    To unsubscribe, e-mail:
    [email protected]
    For additional commands, e-mail:
    [email protected]

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • Ivan Ivanov at Dec 14, 2005 at 11:51 pm

    --- [email protected] wrote:

    I am not a windows guy ...How to check if the ftp
    server is running or
    how to start it ? I did from my laptop the following

    C:\antscripts>ftp 10.187.218.183
    ftp: connect :Unknown error number
    Seems that there is no ftp daeamon running on your
    desktop. You have to install one first.

    Regards
    Ivan
    ftp> exit
    Invalid command.
    ftp> quit
    I am using windows xp sp1
    Thanks
    srikrishna

    -----Original Message-----
    From: Ivan Ivanov

    Sent: Wednesday, December 14, 2005 6:22 PM
    To: Ant Users List
    Subject: RE: Urgent help with FTP task.....please
    help

    Hello

    --- [email protected] wrote:
    I am trying from my laptop to my desktop.
    Fine, but is there a running ftp server on your
    desktop?

    Regards
    Ivan
    -----Original Message-----
    From: Ivan Ivanov

    Sent: Wednesday, December 14, 2005 6:14 PM
    To: Ant Users List
    Subject: Re: Urgent help with FTP task.....please
    help

    Hello,

    Are you aure you have ftp server up and running on
    10.187.218.183? Can you access the ftp server using
    ordinary command line client like
    C:\> ftp 10.187.218.183

    Regards
    Ivan

    --- [email protected] wrote:
    I downloaded the required jarfile from ant site for
    ftp task . I get the
    following error.



    C:\antscripts>ant -verbose -f generalftp.xml

    Apache Ant version 1.6.2 compiled on August 5
    2004
    Buildfile: generalftp.xml

    Detected Java version: 1.5 in:
    C:\bea9\JROCKI~1\jre
    Detected OS: Windows XP

    parsing buildfile C:\antscripts\generalftp.xml with
    URI =
    file:///C:/antscripts/

    generalftp.xml

    Project base dir set to: C:\antscripts

    Build sequence for target `ftp' is [ftp]

    Complete build sequence is [ftp, ]



    ftp:

    [ftp] Opening FTP connection to
    10.187.218.183


    BUILD FAILED

    C:\antscripts\generalftp.xml:7: error during FTP
    transfer:
    java.net.ConnectExcep

    tion: Connection refused

    at
    org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2014)


    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)




    My build file is



    <project name="ftpuse" default="ftp">

    <target name="ftp">

    <ftp server="10.187.218.183"

    remotedir="c:\uploads"

    depends="yes"

    userid="sparthasarthy12"

    password="srinivasa27">

    <fileset dir="c:\sshkeys"/>

    </ftp>

    <echo message="ftp successful"/>

    </target>

    </project>



    what is wrong.......

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam
    protection around
    http://mail.yahoo.com
    === message truncated ===


    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • Ivan Ivanov at Dec 14, 2005 at 11:59 pm
    No offlist emails, please.

    See google for ftp servers on windows [1].

    Microsoft FTP server is part of their IIS. Also they
    say WS_FTP is a nice ftp server.

    Regards
    Ivan

    [1]http://www.google.com/search?hl=en&lr=&q=%22ftp+sever%22+windows&btnG=Search

    --- [email protected] wrote:
    Do you know on how to install it ?

    -----Original Message-----
    From: Ivan Ivanov

    Sent: Wednesday, December 14, 2005 6:51 PM
    To: Ant Users List
    Subject: RE: Urgent help with FTP task.....please
    help



    --- [email protected] wrote:
    I am not a windows guy ...How to check if the ftp
    server is running or
    how to start it ? I did from my laptop the following
    C:\antscripts>ftp 10.187.218.183
    ftp: connect :Unknown error number
    Seems that there is no ftp daeamon running on your
    desktop. You have to install one first.

    Regards
    Ivan
    ftp> exit
    Invalid command.
    ftp> quit
    I am using windows xp sp1
    Thanks
    srikrishna

    -----Original Message-----
    From: Ivan Ivanov

    Sent: Wednesday, December 14, 2005 6:22 PM
    To: Ant Users List
    Subject: RE: Urgent help with FTP task.....please
    help

    Hello

    --- [email protected] wrote:
    I am trying from my laptop to my desktop.
    Fine, but is there a running ftp server on your
    desktop?

    Regards
    Ivan
    -----Original Message-----
    From: Ivan Ivanov

    Sent: Wednesday, December 14, 2005 6:14 PM
    To: Ant Users List
    Subject: Re: Urgent help with FTP
    task.....please
    help

    Hello,

    Are you aure you have ftp server up and running
    on
    10.187.218.183? Can you access the ftp server using
    ordinary command line client like
    C:\> ftp 10.187.218.183

    Regards
    Ivan

    --- [email protected] wrote:
    I downloaded the required jarfile from ant
    site
    for
    ftp task . I get the
    following error.



    C:\antscripts>ant -verbose -f generalftp.xml

    Apache Ant version 1.6.2 compiled on August 5
    2004
    Buildfile: generalftp.xml

    Detected Java version: 1.5 in:
    C:\bea9\JROCKI~1\jre
    Detected OS: Windows XP

    parsing buildfile C:\antscripts\generalftp.xml with
    URI =
    file:///C:/antscripts/

    generalftp.xml

    Project base dir set to: C:\antscripts

    Build sequence for target `ftp' is [ftp]

    Complete build sequence is [ftp, ]



    ftp:

    [ftp] Opening FTP connection to
    10.187.218.183


    BUILD FAILED

    C:\antscripts\generalftp.xml:7: error during
    FTP
    transfer:
    java.net.ConnectExcep

    tion: Connection refused

    at
    org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2014)


    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)




    My build file is



    <project name="ftpuse" default="ftp">

    <target name="ftp">
    === message truncated ===


    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • Srikrishna_parthasarathy at Dec 15, 2005 at 12:10 am
    Thanks for your email

    I am using ant 1.6.5 . For ftp what jar file you have to download and
    put in ant lib directory? It used to be netcommons.jar...I don't see
    that now.

    -----Original Message-----
    From: Ivan Ivanov
    Sent: Wednesday, December 14, 2005 6:59 PM
    To: [email protected]
    Subject: RE: Urgent help with FTP task.....please help

    No offlist emails, please.

    See google for ftp servers on windows [1].

    Microsoft FTP server is part of their IIS. Also they
    say WS_FTP is a nice ftp server.

    Regards
    Ivan

    [1]http://www.google.com/search?hl=en&lr=&q=%22ftp+sever%22+windows&btnG
    =Search

    --- [email protected] wrote:
    Do you know on how to install it ?

    -----Original Message-----
    From: Ivan Ivanov

    Sent: Wednesday, December 14, 2005 6:51 PM
    To: Ant Users List
    Subject: RE: Urgent help with FTP task.....please
    help



    --- [email protected] wrote:
    I am not a windows guy ...How to check if the ftp
    server is running or
    how to start it ? I did from my laptop the following
    C:\antscripts>ftp 10.187.218.183
    ftp: connect :Unknown error number
    Seems that there is no ftp daeamon running on your
    desktop. You have to install one first.

    Regards
    Ivan
    ftp> exit
    Invalid command.
    ftp> quit
    I am using windows xp sp1
    Thanks
    srikrishna

    -----Original Message-----
    From: Ivan Ivanov

    Sent: Wednesday, December 14, 2005 6:22 PM
    To: Ant Users List
    Subject: RE: Urgent help with FTP task.....please
    help

    Hello

    --- [email protected] wrote:
    I am trying from my laptop to my desktop.
    Fine, but is there a running ftp server on your
    desktop?

    Regards
    Ivan
    -----Original Message-----
    From: Ivan Ivanov

    Sent: Wednesday, December 14, 2005 6:14 PM
    To: Ant Users List
    Subject: Re: Urgent help with FTP
    task.....please
    help

    Hello,

    Are you aure you have ftp server up and running
    on
    10.187.218.183? Can you access the ftp server using
    ordinary command line client like
    C:\> ftp 10.187.218.183

    Regards
    Ivan

    --- [email protected] wrote:
    I downloaded the required jarfile from ant
    site
    for
    ftp task . I get the
    following error.



    C:\antscripts>ant -verbose -f generalftp.xml

    Apache Ant version 1.6.2 compiled on August 5
    2004
    Buildfile: generalftp.xml

    Detected Java version: 1.5 in:
    C:\bea9\JROCKI~1\jre
    Detected OS: Windows XP

    parsing buildfile C:\antscripts\generalftp.xml with
    URI =
    file:///C:/antscripts/

    generalftp.xml

    Project base dir set to: C:\antscripts

    Build sequence for target `ftp' is [ftp]

    Complete build sequence is [ftp, ]



    ftp:

    [ftp] Opening FTP connection to
    10.187.218.183


    BUILD FAILED

    C:\antscripts\generalftp.xml:7: error during
    FTP
    transfer:
    java.net.ConnectExcep

    tion: Connection refused

    at
    org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2014)


    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)




    My build file is



    <project name="ftpuse" default="ftp">

    <target name="ftp">
    === message truncated ===


    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • Ivan Ivanov at Dec 15, 2005 at 12:20 am
    Hello

    --- [email protected] wrote:
    Thanks for your email

    I am using ant 1.6.5.
    I am not sure you are using ant 1.6.5. From your first
    message I see:
    C:\antscripts>ant -verbose -f generalftp.xml

    Apache Ant version 1.6.2 compiled on August 5 2004
    ^^^^^^
    Here it says something else.
    For ftp what jar file you have to download and
    put in ant lib directory?
    Everything regarding ftp task is described in the fine
    manual. See [1].

    Regards
    Ivan

    [1]http://ant.apache.org/manual/install.html#librarydependencies

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • Srikrishna_parthasarathy at Dec 15, 2005 at 1:06 am
    Hello Ivan

    It is working now from laptop to unix box .I needed two jar files.
    Jakar-oro file and commons-net file . I would install ftp server on my
    desktop as per your suggestion and make that also work.

    Thanks
    srikrishna

    -----Original Message-----
    From: Ivan Ivanov
    Sent: Wednesday, December 14, 2005 7:20 PM
    To: Ant Users List
    Subject: RE: Urgent help with FTP task.....please help

    Hello

    --- [email protected] wrote:
    Thanks for your email

    I am using ant 1.6.5.
    I am not sure you are using ant 1.6.5. From your first
    message I see:
    C:\antscripts>ant -verbose -f generalftp.xml

    Apache Ant version 1.6.2 compiled on August 5 2004
    ^^^^^^
    Here it says something else.
    For ftp what jar file you have to download and
    put in ant lib directory?
    Everything regarding ftp task is described in the fine
    manual. See [1].

    Regards
    Ivan

    [1]http://ant.apache.org/manual/install.html#librarydependencies

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • Srikrishna_parthasarathy at Dec 15, 2005 at 4:20 pm
    There is an issue of password being in clear text while using the ftp
    task. Is there a way around it .

    project name="ftpuse" default="ftp">
    <target name="ftp">

    <ftp server="10.187.218.183"

    remotedir="c:\uploads"

    depends="yes"

    userid="sparthasarthy12"

    password="srinivasa27">

    <fileset dir="c:\sshkeys"/>

    </ftp>

    <echo message="ftp successful"/>

    </target>

    </project>
    -----Original Message-----
    From: Ivan Ivanov
    Sent: Wednesday, December 14, 2005 7:20 PM
    To: Ant Users List
    Subject: RE: Urgent help with FTP task.....please help

    Hello

    --- [email protected] wrote:
    Thanks for your email

    I am using ant 1.6.5.
    I am not sure you are using ant 1.6.5. From your first
    message I see:
    C:\antscripts>ant -verbose -f generalftp.xml

    Apache Ant version 1.6.2 compiled on August 5 2004
    ^^^^^^
    Here it says something else.
    For ftp what jar file you have to download and
    put in ant lib directory?
    Everything regarding ftp task is described in the fine
    manual. See [1].

    Regards
    Ivan

    [1]http://ant.apache.org/manual/install.html#librarydependencies

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • Ivan Ivanov at Dec 15, 2005 at 4:30 pm
    Hello,

    You can store the password in a properties file and
    keep the properties file out of version control
    system with read permissions only for the OS user that
    is running the script.

    There is a way for propmting the user for the password
    and masking it while it is typed. I wrote a document
    describing how it is done and you can find it [1]. It
    is called "Extending Ant Input Abilities". However,
    prompting the user with <input> breaks the automated
    running of the scripts so I do not encourage you to
    use it.

    Regards
    Ivan

    [1]http://ant.apache.org/resources.html

    --- [email protected] wrote:
    There is an issue of password being in clear text
    while using the ftp
    task. Is there a way around it .

    project name="ftpuse" default="ftp">
    <target name="ftp">

    <ftp server="10.187.218.183"

    remotedir="c:\uploads"

    depends="yes"

    userid="sparthasarthy12"

    password="srinivasa27">

    <fileset dir="c:\sshkeys"/>

    </ftp>

    <echo message="ftp successful"/>

    </target>

    </project>
    -----Original Message-----
    From: Ivan Ivanov

    Sent: Wednesday, December 14, 2005 7:20 PM
    To: Ant Users List
    Subject: RE: Urgent help with FTP task.....please
    help

    Hello

    --- [email protected] wrote:
    Thanks for your email

    I am using ant 1.6.5.
    I am not sure you are using ant 1.6.5. From your
    first
    message I see:
    C:\antscripts>ant -verbose -f generalftp.xml

    Apache Ant version 1.6.2 compiled on August 5 2004
    ^^^^^^
    Here it says something else.
    For ftp what jar file you have to download and
    put in ant lib directory?
    Everything regarding ftp task is described in the
    fine
    manual. See [1].

    Regards
    Ivan

    [1]http://ant.apache.org/manual/install.html#librarydependencies
    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam
    protection around
    http://mail.yahoo.com

    ---------------------------------------------------------------------
    To unsubscribe, e-mail:
    [email protected]
    For additional commands, e-mail:
    [email protected]


    ---------------------------------------------------------------------
    To unsubscribe, e-mail:
    [email protected]
    For additional commands, e-mail:
    [email protected]

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • Jakob Fix at Dec 15, 2005 at 4:35 pm

    On 15/12/05, [email protected] wrote:
    There is an issue of password being in clear text while using the ftp
    task. Is there a way around it .
    http://ant.apache.org/manual/OptionalTasks/scp.html ?

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriesant
postedDec 14, '05 at 11:01p
activeDec 15, '05 at 4:35p
posts14
users4
websiteant.apache.org

People

Translate

site design / logo © 2023 Grokbase