ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurice Feskanich <Maurice.Feskan...@Sun.COM>
Subject Re: Wild card values with exec task
Date Tue, 16 Nov 2004 17:38:12 GMT
I'm guessing the user is exec'ing the linker directly.  Remember, the
exec task has no understanding of wildcards, so the asterisk needs to be
interpreted by a shell.  Try this:

<exec executable="/bin/sh" dir=...>
    <arg value="-c" />
    <arg value="<complete linker command and args>" />
</exec>

Maury


Erskine, Chris wrote:
> I have a user who is trying to use the exec task to link a program.  As part
> of the command line, he is trying to add the argument *.o to link in all of
> the objects.  Using <arg value="*.o" /> does not seem to work.  What is the
> right way to pass in a wildcard option?  This is running on a Sun box using
> Ant 1.6.2
> 
> 
> Chris Erskine
>  
> EDS Consulting Services
> F5-EDS-001
> 2424 Garden of the Gods Rd
> Colorado Springs, CO  80919
>  
> Phone: 719-535-6064
> 
> 
> 


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


Mime
View raw message