ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: [apply] and m4
Date Wed, 27 Jun 2001 06:27:00 GMT
Doug Morse <morse@pobox.com> wrote:

> Perhaps I need something like:
> 
>   <target name="create_triggers">
>     <apply executable="/bin/sh" dir="../triggers" dest="../triggers"
>       failonerror="true">
>       <arg line=" m4 "/>
>       <srcfile/>
>       <arg line=" > "/>
>       <targetfile/>
>       <fileset dir="../triggers" includes="*.m4"/>
>       <mapper type="glob" from="*.m4" to="*.sql"/>
>     </apply>
>   </target>

"Something like", yes.  But you'd need the whole m4 invocation with
all m4 arguments and the redirection in a single command argument for
/bin/sh.  The arg syntax doesn't support this, so you are out of luck
here.  I don't see any other solution but writing a wrapper script.

Stefan

Mime
View raw message