【发布时间】:2013-01-31 18:07:23
【问题描述】:
我正在尝试将 linux shell 脚本的功能移植到 Windows ant build.xml。在 linux 脚本中,我被困在这一行,其中 $* 是文件列表 (*.txt):
java -classpath $myClasspath com.myProgram.Main /destinationDirectory $*
所以现在,在 ant 中,我传递了以空格分隔的文件名列表,但 ant java 任务认为这只是一个文件名,所以它会阻塞。有没有办法传入 *.txt 所以我不必在单独的嵌套元素中列出每个文件名?有任何想法吗?谢谢。
【问题讨论】: