You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by rebels_mascot <bp...@gmail.com> on 2006/07/12 17:16:49 UTC

in antrun

Hey all,

I'm converting a goal from Maven 1 to Maven 2 using antrun. I've problems
with some it do. With:
<target name="media">
</target>

I get:
Embedded error: Could not create task or type of type: target.

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual 
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file: 

Is there a <target> option I can use in ant as a substitute?

-- 
View this message in context: http://www.nabble.com/%3Ctarget%3E-in-antrun-tf1931494.html#a5290712
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: in antrun

Posted by Kenney Westerhof <ke...@apache.org>.
On Wed, 12 Jul 2006, rebels_mascot wrote:

Hi,

The <tasks> tag _is_ a <target> tag; you cannot have <target> tags
in the antrun configuration. It isn't meant to include entire build
scripts in the POM, it's just a utility to perform simple ant tasks,
things you can put in a <target> tag in a build.xml.

If you want to execute complex build files you should use the <ant>
tag to call your buildfile, or better yet, have a look at how to write
ant plugins:

http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html

-- Kenney

>
> Hey all,
>
> I'm converting a goal from Maven 1 to Maven 2 using antrun. I've problems
> with some it do. With:
> <target name="media">
> </target>
>
> I get:
> Embedded error: Could not create task or type of type: target.
>
> Ant could not find the task or a class this task relies upon.
>
> This is common and has a number of causes; the usual
> solutions are to read the manual pages then download and
> install needed JAR files, or fix the build file:
>
> Is there a <target> option I can use in ant as a substitute?
>
> --
> View this message in context: http://www.nabble.com/%3Ctarget%3E-in-antrun-tf1931494.html#a5290712
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org