ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Using the '*' (wildcard)
Date Tue, 05 Dec 2006 16:20:50 GMT
Ant does not resolve the wildcard. The called program does - or does not.
Have you tried to specify the shell (sh,bsh,...) on your second example?
   see: http://ant.apache.org/faq.html#batch-shell-execute


Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: Lloyd, Eric [mailto:eric.lloyd@lmco.com] 
>Gesendet: Dienstag, 5. Dezember 2006 17:16
>An: user@ant.apache.org
>Betreff: Using the '*' (wildcard)
>
>Hi,
>  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"' /> </exec>
> 
>This, however, doesn't:
> 
><exec executable = "ls">
>    <arg line = "./File/src/obj/*.o" />
></exec>
> 
>It gives me the error: ls: ./File/src/obj/*.o: No such File or 
>Directory.
> 
>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.
> 
>Thanks!
>Eric Lloyd
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
>additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message