Just because you use exec doesn't mean you are os-dependent. If the same
exec-utable is available on all os's, then you maintain os independence.
I use executables in my builds (i.e. m4, isql, sqlplus) and the same
build files work on Windows, Solaris and RH.
-----Original Message-----
From: Sadaf_Choudhry [mailto:Sadaf_Choudhry@infosys.com]
Sent: Wednesday, December 15, 2004 7:55 AM
To: Ant Users List
Subject: 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="< ${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
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|