Hi Diane,
> Is either <taskdef> above the actual text at line 32 in your build file?
It seems that I should stick to my origional approach as I got this reply: -
>> Sorry Tom, you were right the first time. It looks like the usage for
the
>> task is from the command line:
>> java weblogic.ant.taskdefs.ear.DDInit <staging-dir>
> Is there documentation provided for the task?
Yes, I`ve followed it to the letter and the strange thing is, when writing
the script as a DOS batch file all works fine - the problem only occurs when
writing it as a ANT script.
If its of any interest or use, this is my script so far: -
<?xml version="1.0"?>
<project name="SimpleAnt" basedir="../TomMultiTier/rhiuk" default="all">
<target name="INIT">
<!-- CLASSPATH PROPERTIES
-->
<property name="tools"
value="C:/WebGain/bea/jdk130/lib/tools.jar"/>
<property name="weblogic" value="H:/lib/WebLogic.jar"/>
<property name="powerjd"
value="C:/Projects/VCafe/Datawindow/powerjd.zip"/>
<property name="datawindow"
value="C:/Projects/VCafe/Datawindow/DataWindow.jar"/>
<!-- ATTRIBUTES
-->
<property name="stagingdir" value="/."/>
<property name="srcdir" value="/rhiuk/test"/>
<property name="packageroot"
value="C:/Projects/NetBeans/TomMultiTier"/>
</target>
<!-- Compile Source -->
<target name="JAVAC" depends="INIT">
<javac srcdir="${packageroot}${srcdir}"
classpath="h:/lib/j2ee12.jar;${weblogic};${powerjd};${datawindow}"
debug="true"
deprecation="true"/>
</target>
<!-- Generate EJB Deployment Descriptors -->
<target name="EJBDESC" depends="JAVAC">
<java classname="weblogic.ant.taskdefs.ejb20.DDInit"
classpath="${tools};${weblogic};${powerjd};${packageroot}${srcdir}">
<arg value="${packageroot}"/>
</java>
</target>
<!-- Start off build script -->
<target name="all" depends="EJBDESC">
</target>
</project>
Are there any stupid mistakes here that I`ve not spotted?
Cheers,
Tom
> -----Original Message-----
> From: Diane Holt [SMTP:[EMAIL PROTECTED]]
> Sent: 16 January 2002 15:28
> To: Ant Users List
> Subject: RE: Please help!
>
> --- "Callaghan, Tom" <[EMAIL PROTECTED]> wrote:
> > Thanks for your sugestions Paul. I tried: -
> >
> > <taskdef name="ddinit" classname="weblogic.ant.taskdefs.ejb20.DDInit"/>
> >
> > And also,
> >
> > <taskdef name="ddinit" classname="weblogic.ant.taskdefs.ejb20.DDInit"
> > classpath="${weblogic}/>
> >
> > But get, as output, the error: -
> >
> > build.xml [32] You must not specify name or value together with file or
> > resource.
>
> Is either <taskdef> above the actual text at line 32 in your build file?
> That error comes from Definer.java, and I don't see how you'd be getting
> it with either of those. If neither is, could you post what line 32
> really is?
>
> > Also to use the task def I`ve wrote: -
> >
> > <target name="ejbdesc" depends="javac">
> > <ddinit>
> > <arg value="${packageroot}"/>
> > </ddinit>
> > </target>
> >
> > Is this the correct way to pass and argument to the class file specified
> > in <taskdef> ?
>
> Is there documentation provided for the task? That's where you'd need to
> look for how to use it (once you've finally gotten it successfully
> taskdef'd).
>
> Diane
>
> =====
> ([EMAIL PROTECTED])
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>