You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Scott Carlson <sc...@yahoo.com> on 2000/08/26 15:29:34 UTC

[PATCH] (sort-of) FTP Task

I also wrote an FTP task.  I wasn't getting the mailing list until recently,
and didn't know that I was re-inventing the wheel.  Oh well, spilled milk...

I am attaching my code.  NetComponents from ORO is a requirement. I think
mine has an advantage in that the ftp task only makes the connection.  The
actions are handled by the inner task.  Allowing many different things
to happen all within a single connection.

for example...
<ftp passive="true" userid="user" password="pass" server="machine">
<send type="ascii" srcDirectory="${dir1}" includes="*"
excludes="vssver.scc" tgtDirectory="${remoteDir}"/>
<send type="binary" srcDirectory="${dir2}" includes="**/*.java"
excludes="vssver.scc" tgtDirectory="${remoteDir2}"/>
</ftp>


Do with it as you wish...


__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/