I am trying to write an ant script which builds our project and will save the new build in a dist folder which gets committed to svn. As the name of the file changes for each build I need to delete all the old files in the dist folder (without knowing the names).
For this I was using the following code:
<exec executable="svn" outputproperty="__ignoreSvnDeleteDist">
<arg value="delete"/>
<arg value="../dist/*"/>
</exec>
This is working fine as long as I use it on a windows machine but as soon as I try it under Mac Os X I'm getting the following error:
[echo] SVN Delete res: svn: '../dist/*' does not exist
I have compared that I use the same ant version on both machines (1.7.1) and the same Java version (1.6.0_12 for the Windows box and 1.6.0_15 for the Mac).