ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: java cup and ant
Date Wed, 15 Dec 2004 13:13:03 GMT
<exec> runs an executable in a platform independent manner.
But the executable itself most of the time is not platform independent.

If the way for redirection via shell-call is not ok, maybe the redirectors
would work (havent played with them).


Jan

> -----Urspr√ľngliche Nachricht-----
> Von: Sadaf_Choudhry [mailto:Sadaf_Choudhry@infosys.com]
> Gesendet am: Mittwoch, 15. Dezember 2004 13:55
> An: Ant Users List
> Betreff: RE: java cup and ant
> 
> 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?
> 
> Sadaf
> 
> 
> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org] 
> Sent: Wednesday, December 15, 2004 5:55 PM
> To: user@ant.apache.org
> Subject: Re: java cup and ant
> 
> <http://ant.apache.org/faq.html#shell-redirect-1>
> 
> 
> Hi,
> 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"/>
> 	</java>
> 
> 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??
> 
> Regards,
> Sadaf
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message