Date: 2004-06-19T17:21:05 Editor: 213.209.199.107 <> Wiki: Ant Wiki Page: AntOddities URL: http://wiki.apache.org/ant/AntOddities
no comment Change Log: ------------------------------------------------------------------------------ @@ -1,3 +1,25 @@ +== <exec> arguments not expanded under Linux == + +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: + +{{{<target name="list"> + <exec executable="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'' + == <fileset>'s strange behaviour == Here is an oddity whose solution was discovered by Jan Matèrne. In Ant, what is the simplest way to get a <fileset> that contains only files that do '''not''' have an extension in a directory tree. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]