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 <[EMAIL PROTECTED]>

Andreas Gruenhagen <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to