Checkout
http://www.weblogic.com/docs45/classdocs/API_ejb.html#ddcreator

where you will find that the argument should be "-d" not "-dir".

Conor



-----Original Message-----
From: Rajesh Joshi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 10 July 2001 5:54 AM
To: [EMAIL PROTECTED]
Subject: Java arguments.


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

Reply via email to