You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Anil R. Shalu" <as...@nulinkinc.com> on 2004/01/16 16:40:56 UTC

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


Re: Argument passing problem

Posted by Peter Reilly <pe...@corvil.com>.
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