ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From matt.in...@sedonacorp.com
Subject Re: Java arguments.
Date Mon, 09 Jul 2001 20:46:00 GMT
every argument must be in it's own "arg" element.
according to the code below, your arguments for the first call are:

1) -dir somedir
2) -outputfile DD.ser
3) soource/DeploymentDescriptor.txt

what you really intend here is to have 5 arguments, not 3.
so you need:
 <arg value="-dir" />
 <arg value="${tempdir}" />
etc.....


Rajesh Joshi wrote:

> hi!I am trying to serialize Deployment descriptor for the WL4.5
> version. Using ANT to make the jar. I am not able to figure out what
> is wrong with the following argument****  <target name="compile"
> depends="">  <javac srcdir="${source}" destdir="/weblogic/myserver"
> includes="**/*.java"/>  <java fork="yes"
> classname="weblogic.ejb.utils.DDCreator" taskname="ddCreator"
> failonerror="true">
>         <arg value="-dir ${tempdir}"/>
>         <arg value="-outputfile DD.ser"/>
>         <arg value="${source}/DeploymentDescriptor.txt"/>
>   </java>
>   <java fork="yes" classname="weblogic.ejbc" taskname="ejbC"
> failonerror="true">
>     <arg value="-compiler javac.exe -d ${tempdir} ${tempdir}/DD.ser"
> />
>   </java>
>  </target> **** I get an error message.. [ddCreator]
> java.lang.IllegalArgumentException: Unrecognized option or flag, -dir
> \tmp
> [ddCreator] Usage: java weblogic.ejb.utils.DDCreator [options] <DD
> textfile> ****** Any clues? Has anyone used ANT to compile the WL4.5
> jars? Thanks in advance. Rajesh.
>
>
> -----------------------------------------------------------------------
> Get your FREE download of MSN Explorer at http://explorer.msn.com

--
Matt Inger (matt.inger@sedonacorp.com)
Sedona Corporation
455 S. Gulph Road, Suite 300
King of Prussia, PA 19406
(484) 679-2213
"Self-respect - the secure feeling that no one,
 as yet, is suspicious." -H.L. Mencken




Mime
View raw message