ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabricio Matheus Goncalves <fmath...@bigbross.com>
Subject java_cup
Date Sun, 17 Feb 2002 18:05:23 GMT

There is some task to apply java_cup, out there?
Or maybe a better way to handle stdin redirection in ant,
than posted in May 2001?
The problem I have with this solution is cant use fileset and mapper
to select files this will apply to.

Thanks.

----- Forward Mail ------
Subject: Re: Ant and java_cup
From: Stefan Bodewig <bodewig@apache.org>

Andreas Gruenhagen <andreas.gruenhagen@informatik.tu-muenchen.de>
wrote:

> The target looks like:
> > <target name="parser"  depends="init">
> <java classname="java_cup.Main" dir="de/TUM/RTS/Parser">
> <arg value=" &lt; functionParser.cup" />
> </java> > </target>

Redirecting the input is the job of the shell (at least on Unix), you
need to invoke the shell as executable, not java, something like

<exec executable="sh" dir="de/TUM/RTS/Parser">
<arg value="-c" />
<arg value="java java_cup.Main &lt; functionParser.cup" />
</exec>



--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message