I tried testing this:

  <goal name="test">
    <j:set var="testval"
value="${pom.getPluginContext('maven-war-plugin').getVariable('maven.war.src
')}" />
    <j:set var="genDocs"
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.gen.do
cs')}" />
    <echo>
      Here is maven.war.src:
${pom.getPluginContext('war').getVariable('maven.war.src')}
      Here is test 2: ${testval}
      Here is test genDocs: ${genDocs}
    </echo>
  
  </goal>
  

But what I get is :

test:
    [echo]
      Here is maven.war.src:
      Here is test 2:
      Here is test genDocs:

It doesn't seem to be populating the plugin..  I just rebuilt maven from CVS
HEAD a couple minutes ago...

Eric Pugh

-----Original Message-----
From: Michal Maczka [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 10:47 AM
To: 'Turbine Maven Users List'
Subject: RE: How to reference properties set in other plugins


I think that it is something like:


 
${pom.getPluginContext('name-of-the-plugin').getVariable('name-of-variable')
}


Michal

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 3:33 PM
> To: [EMAIL PROTECTED]
> Subject: How to reference properties set in other plugins
> 
> 
> Hi all,
> 
> I used to be able in my maven.xml to have a proerty like this:
> maven.war.build.dir, however, not with CVS head, I can't.
> 
> I believe this has to do with the whole plugin namespace 
> seperation.  If I
> want to reference another plugin's properties, what is the 
> correct manner to
> do this?
> 
> Eric Pugh
> 

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

Reply via email to