ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
Subject RE: Java arguments.
Date Tue, 10 Jul 2001 04:07:25 GMT
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:rjoshi@hotmail.com]
Sent: Tuesday, 10 July 2001 5:54 AM
To: ant-user@jakarta.apache.org
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


Mime
View raw message