You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Corey Jewett <cj...@syntheticplayground.com> on 2004/02/03 17:47:48 UTC

Exec and file globbing

It looks like jsch doesn't support external key agents. So now I'm 
trying to use exec with the local client instead of scp.

I had:
     <scp 
todir="${user.name}@${build-server}:${build-server-snapshot-path}">
       <fileset dir="${dest-lib}">
         <include name="*.jar"/>
       </fileset>
     </scp>


Now I have:
     <exec executable="scp">
       <arg file="${dest-lib}/*.jar"/>
       <arg 
line="${user.name}@${build-server}:${build-server-snapshot-path}"/>
     </exec>

Which doesn't work because the globbing is not recognized. Also exec 
doesn't allow a nested fileset.

Is there any way to overcome these limitations, other than writing a 
wrapper shell script?

Corey


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org