ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <DDevie...@lgc.com>
Subject RE: Wild card values with exec task
Date Tue, 16 Nov 2004 17:45:27 GMT
> From: Maurice Feskanich [mailto:Maurice.Feskanich@Sun.COM]
> 
> 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>
> 
> 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

You probably want to use <apply>. It's like <exec> + fileset handling
merged into one. --DD

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


Mime
View raw message