ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Broderick, Kevin" <kevin.broder...@iona.com>
Subject RE: ftp task
Date Wed, 23 Jan 2002 11:26:09 GMT
Try changing the name of the jakarta-ant-1.4.1-optional.jar
to just optional.jar, as far as I remember thats what I've
done and I've copied examples from the docs and it works.
Cheers.

-----Original Message-----
From: Stephen Charles Huey [mailto:sirstevo@owlnet.rice.edu]
Sent: 23 January 2002 06:58
To: ant-user@jakarta.apache.org
Subject: ftp task


I tried posting the following question to ant-dev last weekend, but I
never got a response, and it seems like it should be a pretty easy
question to answer if you have any experience with it.  Please help me
if
you know the answer, because I'm supposed to meet my boss about it in
the
afternoon.  Thanks!

Okay, I downloaded the Netcomponents JAR and stuck that in my lib
directory.  I also downloaded jakarta-ant-1.4.1-optional and stuck that
JAR in my lib directory.

I've successfully built a couple of java files into class files, and
wanted to try to ftp them from my Windows machine onto my school UNIX
account.  I've never used command-line ftp stuff before (only SSH and
WS_FTP), so I wasn't sure about all the settings.

Anyway, in my simple build file that successfully compiled a couple of
Java files, I added an ftp tag that I found on a webpage, and filled it
in as best I could.  It looks like this (except that I took out my
password, of course):

---------------------------
  <ftp server="jungle.owlnet.rice.edu"
       userid="sirstevo"
       password="*************">
    <fileset dir="classes"/>
  </ftp>


</project>
-----------------------------

I got the following error message from ANT, b/c I obviously don't know
how
to use the ftp task:

--------------
BUILD FAILED

c:\antfiles\buildfile.xml:21: Unexpected element "ftp"
--------------

Can you please help me learn how to implement ftp with Ant?  Thanks!




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


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


Mime
View raw message