Hi!

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 />

nor 

<mapper type="flatten" /> ?

Here's what I tried:

<target name="ssh-multi-flat">
   <scp todir="[EMAIL PROTECTED]:${target.dir}" 
        keyfile="${user.home}/.ssh/id_dsa"
        passphrase="">
     <fileset dir="${user.home}/${source.dir}">
       <include name="**/*.sql"/>
     </fileset>
     <mapper type="flatten" />
  </scp>
</target>

(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,

        Holger

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

Reply via email to