ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Blaukopf <>
Subject Re: rsync wildcard
Date Wed, 06 Apr 2005 12:42:21 GMT
Looks like Ant doesn't do the expansion that the shell does. This is OK
- I don't think it is supposed to. You can use the "apply" task and
specify the *.gz files as a fileset:

<apply executable="rsync" parallel="true" skipemptyfilesets="true">
    <arg line="-cvz -e"/>
    <arg value="ssh -i /home/build/sync-key"/>
    <arg value="tomcat@"/>
    <fileset dir="/home/build/dist" includes="*.gz"/>

- Daniel

Euan Guttridge wrote:

>Can anyone advise why the following works on the command line, but not
>within an ant script. The error is 'file/directory does not exist', when it
>clearly does. If I change the *.gz to a specific file it works fine.
><exec executable="rsync">
><arg line="-cvz -e 'ssh -i /home/build/sync-key'  /home/build/dist/*.gz
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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

View raw message