ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Holger Rauch <>
Subject flatten mapper for scp task?
Date Wed, 13 Oct 2004 12:23:50 GMT

I'm using the scp task of Ant 1.6.2 in order to copy some SQL scripts
which are stored in various directories on the source system to
a target system. On the target system, I want all .sql files to
appear below a single directory. How can I achieve this if scp
doesn't support neither

<flattenmapper />


<mapper type="flatten" /> ?

Here's what I tried:

<target name="ssh-multi-flat">
   <scp todir="${target.user}@${}:${target.dir}" 
     <fileset dir="${user.home}/${source.dir}">
       <include name="**/*.sql"/>
     <mapper type="flatten" />

(I know the "mapper" element is wrong; if I omit it, the stuff is copied to
the target system *including* the subdirs).

Thanks in advance for any info!

Kind regards,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message