Hi,

-----Original Message-----
From: Chris Velevitch [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 5:59 AM
To: Ant Users List
Subject: ftp put x as y

/*
How to I ftp a file so that it gets a different name on the server?
*/


1.Simply rename them (with move) before ftp ?

maybe
2.the ftp task can take mappers, i.e.

<ftp server=...
       remotedir="c:\uploads"
       userid="coder"
       password="java1"
       separator="\"
       verbose="yes"
  >
 <fileset dir="htdocs/manual">
   <include name="**/*.html"/>
 </fileset>
<regexpmapper from="(\w+)_(\w+)_(.+[ear|idx])"
       to="${projname}_${lum}_\2_\3"
 />
</ftp>

i never used/tried ftp with mappers, but as it takes
filesets the chances it accepts mappers are high,
just try it.


Regards, Gilbert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to