ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject Re: Argument passing problem
Date Fri, 16 Jan 2004 17:57:44 GMT
Anil R. Shalu wrote:

>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" />
>  
>
This should be:
<arg value="-p"/>
<arg value="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
>
>
>  
>


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


Mime
View raw message