On 31 Oct 06, at 9:06 AM 31 Oct 06, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote:

Hi

I am now able to look at it. I suppose the what you refer to as "common project called maven-ant" is not the maven-ant plugin? What is the svn of this?


Long delay, but I was just able to get the sample Ant-based mojo today. It was work for a client and it had to get some approval and be cleaned up but you can now find it here:

http://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/axis-maven-plugin

It's a Maven plugin that is completely written in Ant script. The plugin resources are unpacked in the target directory so that you can reference physical files in your Ant scripts, it has full access to the various classpath entries in the same way the Ant Run plugin does, and it has an example of loading custom taskdefs. In this case taskdefs from ant-contrib. So this comes from a production build where knowledge of Ant must be leveraged and this now shows you can do whatever you want with Ant, yet allows you contain the inherent un- maintainability of Ant in a plugin and have it be completely reusable. From the perspective of the Maven users it doesn't matter now whether the plugin is written in Ant script, Ruby, or Java. It's all the same, and configured the same way for users of Maven. I have not back-ported the changes required to make this run in 2.0.x. I will attempt to do this but it won't happen before the new year. I need to makes some pictures of integration tests across versions and create some more ITs before I attempt to back-port the changes. At the very least, you can see how it works.

Jason.


Hermod

-----Original Message-----
From: Jason van Zyl [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 19, 2006 11:36 PM
To: Maven Developers List
Subject: Re: SV: Mojo and it's own dependencies



On 19 Oct 06, at 5:19 PM 19 Oct 06, Hermod Opstvedt wrote:

Hi

Yeah, now we're talking. I need to setup a classpath for another
java class
that is to be run by an ant based mojo. So setting up the first
mojo with
the same dependencies as it, I will be able to supply the Ant
script that as
a classpath variable (Sneaky but does the trick)


I need to document it, and you can help me with it, but I have that
working with the new ant-based plugin stuff that I've committed.

What I got working was an axis plugin entirely written in Ant. So a
plugin script used in an ant-based plugin now has access to the
compile, test, runtime and plugin classpath.

I reworked all the ant stuff and combined John and Kenney's work and
put it in a common project called maven-ant.

I'll dig you up a sample if you document it :-)

It fully works and has been run with a sizable ant script.

Jason.

Hermod

-----Opprinnelig melding-----
Fra: Jason van Zyl [mailto:[EMAIL PROTECTED]
Sendt: 19. oktober 2006 21:30
Til: Maven Developers List
Emne: Re: Mojo and it's own dependencies


On 19 Oct 06, at 1:50 PM 19 Oct 06, Hermod Opstvedt wrote:

Hi

Is there a Maven helper class that can be called from a Mojo that
will give
the Mojo access to it's own dependencies?


You can use the expression ${plugin.artifacts} i.e.

/**
  * @parameter expression="${plugin.artifacts}"
  */
private List pluginArtifacts;

Is that what you're looking for?

Jason.

Hermod


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


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



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email.

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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