you don't have a classpath defined, try something like this:
<ant:taskdef name="wldeploy"
classname="weblogic.ant.taskdefs.management.WLDeploy">
<ant:classpath>
<ant:path refid="maven.dependency.classpath"/>
</ant:classpath>
</ant:taskdef>
simon
The information contained in this e-mail is intended only for the person
or
entity to which it is addressed and may contain confidential and/or
privileged material. If You are not the intended recipient of this
e-mail,
the use of this information or any disclosure, copying or distribution
is
Prohibited and may be unlawful. If you received this in error, please
contact the sender and delete the material from any computer. The views
expressed in this e-mail may not necessarily be the views of The PCMS
Group
plc and should not be taken as authority to carry out any instruction
contained.
> -----Original Message-----
> From: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]
> Sent: 18 August 2003 15:38
> To: [EMAIL PROTECTED]
> Subject: Ant teskdef question
>
>
> Hello,
>
> With a Ant build file, I made a Maven plugin. The Ant build
> file use some custom taskdef. When I run it with maven (I put
> build.xml in maven.xml), I've got an error on the taskdef :
>
> ---------------------------------------------------------
> BUILD FAILED
> File...... file:/D:/eclipse/workspace/g-contact/
> Element... ant:taskdef
> Line...... 7
> Column.... 87
> taskdef class weblogic.ant.taskdefs.management.WLDeploy
> cannot be found
> Total time: 2 seconds
> ------------------------------------------------------
>
> Where I must put the jar whitch contain my custom taskdef ? I
> put it in the project.xml dependencies but it's not working.
>
> Here my maven.xml :
>
> <project xmlns:ant="jelly:ant">
> <goal name="ejbgen">
> <ant:project name="contact" default="all" basedir=".">
>
> <ant:taskdef name="wldeploy"
> classname="weblogic.ant.taskdefs.management.WLDeploy"/>
> <ant:taskdef name="wlappc"
> classname="weblogic.ant.taskdefs.j2ee.Appc"/>
>
>
> ...
>
>
> Thx,
> -emmanuel
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]