ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Ant and java_cup
Date Fri, 11 May 2001 06:33:13 GMT
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>

Stefan

Mime
View raw message