<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:[EMAIL PROTECTED]
> 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:[EMAIL PROTECTED] 
> Sent: Wednesday, December 15, 2004 5:55 PM
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to