You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by EP...@upstate.com on 2003/03/20 21:10:35 UTC
RE: Using property of another plugin from my plugin
Have you called a target of the maven-war-plugin? I found that I needed to
call a target, any target, to get the plugin to be initialized. That does
work in the cactus plugin, although it leads to some extra processing going
on!
Eric Pugh
-----Original Message-----
From: vmassol@pivolis.com [mailto:vmassol@pivolis.com]
Sent: Thursday, March 20, 2003 3:12 PM
To: dev@maven.apache.org
Subject: Using property of another plugin from my plugin
Hi,
I'm trying to use a property from another plugin in my plugin and it fails
for
some reason. I'm using:
<j:set var="warBuildDir"
value="${pom.getPluginContext('maven-war-plugin').getVariable
('maven.war.build.dir')}"/>
<j:set var="warBuildName"
value="${pom.getPluginContext('maven-war-plugin').getVariable
('maven.war.final.name')}"/>
<property name="cactus.war"
value="${warBuildDir}/${warBuildName}"/>
<echo>XXX = ${cactus.war}</echo>
and I get:
XXX = /
Any idea?
Thanks
-Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org