ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sadaf_Choudhry" <>
Subject RE: java cup and ant
Date Wed, 15 Dec 2004 12:54:56 GMT
Hi Stefan,
I understand that I can use <exec>, but that would make it os-dependent.
I want the same ant script to run on windows and solaris. Any way out?


-----Original Message-----
From: Stefan Bodewig [] 
Sent: Wednesday, December 15, 2004 5:55 PM
Subject: Re: java cup and ant


I have the following script

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

I get the following problem:
    [java] Unrecognized option "< condition.cup"

    [java] Usage: java_cup [options]
    [java]   and expects a specification file on standard input.
    [java]   Legal options include:
    [java]     -package name  specify package generated classes go in

The value of the variable file is "condition"
Anybody ever done this through ant?? Any pointers??

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

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

View raw message