ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabricio Matheus Goncalves <>
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.


----- Forward Mail ------
Subject: Re: Ant and java_cup
From: Stefan Bodewig <>

Andreas Gruenhagen <>

> 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" />

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message