On Wed, 24 Aug 2005, Chris Berry wrote:

Hi,

In m2 you just specify that jar as a dependency in the pom of the plugin.
It's then automatically added to the runtime classpath of that plugin's
execution environment. Further, you can access the Plugin object and
it's properties in a Mojo.

Btw, if you plan to use ant in your plugins, have a look at the
maven-antrun-plugin. If you plan to use it, you should make your plugin
depend upon it, and extend AbstractAntTask. You can then create tasks,
add them to a Target object, and execute them (using a parent method).
(the plugin is part of the m2 svn repository).

-- Kenney

> Hi,
> In the bad old days of Jelly, we could type something like::
> plugin.getDependendcyPath( 'axis:ant' );
> And you got back the full path to a JAR -- so we could use it as::
>   <ant:path id="axis.classpath">
>     <ant:pathelement path="${plugin.getDependencyPath('axis:axis')}"/>
> Is there an equivalent helper function like this for Java??
>
> BTW: FWIW: I have no interest in using Marmalade. I want to use *only*
> Java + Ant when developing my plugins. In fact, I plan to do as much
> as possible with Ant and simply fire it from the Maven plugin
> structure. There is no reason to reinvent the wheel. Ant provides
> Tasks to do probably 95% of what I need done. Is well understood, well
> supported, and well documented. I see this sort of marraige between
> Maven and Ant as powerful combination.
>
> Thanks,
> -- Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to