ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Plessers <tpless...@tiscali.be>
Subject Re: Apply m4 acts weird in Linux
Date Thu, 14 Aug 2003 14:40:44 GMT
Ok, this got me a little further.
I now use :

		<apply
			executable="/bin/sh"
			dir="${build.dir}/com/zappware/${name}"
			dest="${build.dir}/com/zappware/${name}"
			relative="true"
			vmlauncher="true"
			os="Linux">
				<arg value="-c"/>
				<arg value="/usr/bin/m4 -I${src.abs.dir}"/>
				<srcfile/>
				<arg value="&gt;"/>
				<targetfile/>

				<fileset dir="com/zappware/${name}" includes="*.jm4"/>
				<mapper type="glob" from="*.jm4" to="*.java"/>
		</apply>

However, only <arg value="/usr/bin/m4 -I ...> is passed as the argument for 
/bin/sh -c, so it skips srcfile, &gt; and targetfile.  This results in M4 
running without parameters, which waits for stdin.  I tested it with 1 
argument line and putting in the filename statically, which works.

So my next question is, how can I also pass <srcfile/>, &gt; and <targetfile/>

in 1 <arg> element?

Greets,
Tim Plessers


On Thursday 14 August 2003 15:07, Stefan Bodewig wrote:
> <http://ant.apache.org/faq.html#shell-redirect-2>
>
> i.e. m4 > foo doesn't do what you think it does on Unix.
>
> Stefan
>
> ---------------------------------------------------------------------
> 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