ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lloyd, Eric" <>
Subject Using the '*' (wildcard)
Date Tue, 05 Dec 2006 16:15:53 GMT
  I'm new to Apache ant, and I'm trying to get a very simple <exec> to
work. For some reason, wildcards ('*') work fine in some cases but not
in others. For example, the following works fine:
Note: In ./File/src/obj there is one file - File.o. And running "ls
./File/src/obj/*.o" from a terminal works.
<exec executable = "find">
    <arg line = './File/src/obj/ -name"*.o"' />
This, however, doesn't:
<exec executable = "ls">
    <arg line = "./File/src/obj/*.o" />
It gives me the error: ls: ./File/src/obj/*.o: No such File or
It's like Ant isn't resolving the wildcard in the second case.
Can anyone tell me how to get the second example to work?
Also, I'm using version 1.6.5 on a red hat system.
Eric Lloyd

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message