I'm trying to port the functionality of a linux shell script to a Windows ant build.xml. In the linux script, I'm stuck on this line, where $* is a list of files (*.txt):
java -classpath $myClasspath com.myProgram.Main /destinationDirectory $*
So now, in ant, I am passing the space separated list of file names, but the ant java task thinks this is just a single file name so it chokes. Is there a way to pass in *.txt so I don't have to list out each file name in a separate nested element? Any ideas? Thanks.