On Mon, 2003-01-20 at 13:31, [EMAIL PROTECTED] wrote:
> 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...

The touchstone would fail if plugin properties were not retrieved
correctly and several of the use the maven.gen.docs property (in
addition to maven.dest.docs) so I would wager something else is awry
with your setup.

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

Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


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

Reply via email to