ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Ant Wiki] Updated: AntOddities
Date Sun, 20 Jun 2004 00:21:05 GMT
   Date: 2004-06-19T17:21:05
   Editor: <>
   Wiki: Ant Wiki
   Page: 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>
+The result of the previous target is:
+{{{Buildfile: build.xml
+     [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:
For additional commands, e-mail:

View raw message