ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: java cup and ant
Date Wed, 15 Dec 2004 13:16:28 GMT
On Wed, 15 Dec 2004, Sadaf Choudhry <Sadaf_Choudhry@infosys.com>
wrote:

> I understand that I can use <exec>, but that would make it
> os-dependent.

So I was too terse.

The problem is that you pass your input file via < filename and this
simply doesn't work (and the FAQ says so).

Use <java>'s input attribute instead.

	<java classpathref="classpath" classname="java_cup.Main"
              input="${file}.cup">
		<arg value="-symbols"/>
		<arg value="${file}Sym"/>
		<arg value="-parser"/>
		<arg value="${file}"/>
		<arg value="-package"/>
		<arg value="mypackage.${file}"/>
	</java>

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message