On 11 Oct 06, at 2:26 AM 11 Oct 06, Gisbert Amm wrote:

I'm trying to make a reusable plugin as described in section 5.4.2 of "Better builds with Maven" and on http://maven.apache.org/guides/ plugin/guide-ant-plugin-development.html (both docs do slightly differ and it seems that the website is the more current version).

It works fine with core ant tasks but not with optional tasks like "echoproperties".

I'm using Maven 2.0.4.


Yes, this is what I've fixed over the last week. It will not work without the changes that I've made to trunk. I've injected all the classpaths maven creates into the Ant-script used for the plugin and I have also added the ability to unpack resources inside the Ant- based plugin so that they can be reference in a known place in the file system. It will take some organizational to prepare an example but I will try to put something together. If you don't need the resource unpacking then this can probably work in 2.0.4 but I haven't tested it yet.

Jason.

-Gisbert

Jason van Zyl wrote:
Just to be clear an Ant-based Mojo is not the same thing as using the Ant Run plugin. I have just merged the underlying utilities for the Ant Run plugin and the Ant-based Mojos. Prior to yesterday Ant-based mojos were not very useful as there was no way to get hold of the various classpaths constructed by Maven as are available in the Ant Run plugin. Are you trying to use the Ant Run plugin or make a reusable plugin using Ant script?
Jason.
On 10 Oct 06, at 10:29 AM 10 Oct 06, Gisbert Amm wrote:
I get this error message:

"Could not create task or type of type: echoproperties."

I found this discussion:

http://mail-archives.apache.org/mod_mbox/maven-users/200603.mbox/ % [EMAIL PROTECTED]

and the mentioned documentation at:

http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html

However, without further explanation I can't figure out how to use the echoproperties task.

Could somebody please point me in the right direction?

Regards,
Gisbert Amm

-------------------------------------------------------------------- -
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]

--
Gisbert Amm
Softwareentwickler Infrastruktur

WEB.DE GmbH
Brauerstraße 48 · D-76135 Karlsruhe
Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
[EMAIL PROTECTED] · http://www.web.de/

---------------------------------------------------------------------
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