I am successfully using a custom ant task in my build, but I don't use 
an ant build.xml.  I have <ant:taskdef name="foo" ...> directly in my 
maven goal.  I can then use <ant:foo ... > just as I would in an ant 
build.xml.


On Wed, 23 Feb 2005 16:57:42 +0100, Marc Lustig
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I'm having some trouble running an ant-task which launches a custom-ant-task
> (class).
> 
> In my maven.xml I have specified the ant-call:
> <ant:ant dir="${basedir}" antfile="build.xml" target="mytarget" />
> 
> I'm getting error message stating that the custom ant-task could not be found.
> This class is in a jar that is placed in both ant/lib and maven/lib!
> 
> running 'ant mytarget' works smoothly!
> 
> Anybody having an idea why the jar is not being loaded when the target is
> launched from maven?
> 
> Regards
>         Marc
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to