Date: 2004-06-20T03:43:16 Editor: 80.128.236.97 <> Wiki: Ant Wiki Page: AntOddities URL: http://wiki.apache.org/ant/AntOddities
no comment Change Log: ------------------------------------------------------------------------------ @@ -1,22 +1,15 @@ -== <exec> arguments not expanded under Linux == +== expanding wildcards <exec> arguments == -Wildcards in <exec> arguments are not expanded under Linux, in particular the asterisk, for example to indicate filenames. You can verify with the following simple target: +Wildcards are understood by shell intepreters, not by individual command line programs +individually such as ls. {{{<target name="list"> - <exec executable="ls"> + <exec executable="sh"> + <arg value="ls"> <arg value="/path/to/some/xml/files/*.xml"/> </exec> </target>}}} -The result of the previous target is: - -{{{Buildfile: build.xml - -list: - [exec] /usr/bin/ls: /path/to/some/xml/files/*.xml: No such file or directory - [exec] Result: 1}}} - -I do not know of any workable solution yet. ''Giulio Piancastelli'' --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]