ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Lybarger" <Mark.Lybar...@CBC-Companies.com>
Subject RE: Argument passing problem
Date Fri, 16 Jan 2004 18:00:41 GMT
looks like you may have a slash going the wrong direction.  have you tried:

  <arg value="idl\\nms.idl" /> 

i don't think windows likes forward slashes too much.
> -----Original Message-----
> From: Anil R. Shalu [mailto:ashalu@nulinkinc.com]
> Sent: Friday, January 16, 2004 10:41 AM
> To: user@ant.apache.org
> Subject: Argument passing problem
> 
> 
> Hi
>  
> I am using Vertel (now PrismTech) IDL to Java converter from Ant. 
> It is a java application. When I execute it from command line 
> everything
> works 
> properly but when I excecute through Ant I get errors. Here 
> is a portion
> from my
> build.xml:
>  
> <java classname="com.vertel.idlj.parser">
>  <arg value="-p webnms.main" />
>  <arg value="-noskel" /> 
>  <arg value="idl/nms.idl" /> 
>  </java>
> 
>  
>  
> ------With ant.
> C:\xyz\Client>ant idl_compile
> Buildfile: build.xml
>  
> init:
>     [mkdir] Created dir: C:\xyz\Client\build
>  
> idl_compile:
>    [delete] Deleting directory C:\xyz\Client\build
>      [java] -p webnms.main -noskel idl/nms.idl  : Unrecognized option
>      [java] Usage: idl
> [-h|-help][-v|-version][-bLEVEL][-syntax][-noskel][-all][
> -Idir][-Dsymbol[=value]] [-i2jpackage x:y][-d <Output Dir>][-p
> <package_prefix>]
> [-i <import_package] <filelist>
>  
> ------If I execute same is dos window  there are no errors.
> C:\xyz\Client>"%JDK%\bin\java" com.vertel.idlj.parser -noskel -p
> webnms.main idl\nms.idl
>  
> C:\xyz\Client>java com.vertel.idlj.parser -noskel -p webnms.main
> idl\nms.idl
>  
> C:\xyz\Client>
>  
> Please help.
> Thanks,
> Anil
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.560 / Virus Database: 352 - Release Date: 1/8/2004
>  
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.560 / Virus Database: 352 - Release Date: 1/8/2004
 


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


Mime
View raw message