ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: proposed C++ support
Date Mon, 25 Jun 2001 15:51:59 GMT
Michael Twomey <michael.twomey@ireland.sun.com> wrote:

> Usually these are invoked using backticks from the compiler command
> line (e.g. 'gcc `gnome-config --cflags` -o somefile.o somefile.c')
> but this never seemed to work for me in Ant when I tried passing
> them as parameters.

It is the shell that is expanding the backticks magic, doing something
like

<exec executable="/bin/sh">
  <arg value="-c" />
  <arg value="gcc `gnome-config --cflags` -o somefile.o somefile.c" />
</exec>

should work (untested).

Stefan

Mime
View raw message