how to use xml, scp, ant 1.5

Peter Stuge stuge-openssh-unix-dev at cdy.org
Wed Jan 26 08:04:10 EST 2005


On Tue, Jan 25, 2005 at 03:24:58PM -0500, Pantano, Salvatore wrote:
> Within the same xml file that is called by ant is this scp code. 
> The problem I am having is "${basedir}/reports/*.xsl"  No matter
> how I put this information scp puts out an error that there are no
> such file or directory *.xsl.

I'm not familiar with ant, but this would happen if ant does not do
globbing.. (expansion of wildcards matching multiple files)


> The directory is correct and there are xsl files in it.  If I try
> the scp command as a line command not within the xml file scp does
> find the *.xsl files and does the copy.

..whereas the shell does.


There are several workarounds, one is;

scp `find /dir/with/files -name '*.xsl' -print` user at remote:/dir/


//Peter




More information about the openssh-unix-dev mailing list