ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: ftp put x as y
Date Wed, 27 Jun 2007 05:54:56 GMT
 
Hi,

-----Original Message-----
From: Chris Velevitch [mailto:chris.velevitch@gmail.com] 
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message