You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alexey Demakov <de...@ispras.ru> on 2003/05/23 16:50:03 UTC

Re: getPluginContext doesn't work - solution

from clover plugin:

<project 
  xmlns:doc="doc">

  <!--
   |
   | This last namespace entry is not obvious so here's a little
   | explanation. For anything documentation related we don't want to have to
   | duplicated documentation properties like ${maven.dest.docs} in every
   | single plugin. So we use the following to access the properties of the
   | xdoc plugin:
   |
   | ${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.dest')}
   | 
   | But this of course only works if the xdoc plugin is loaded ... So we
   | trick the xdoc plugin into loading by declaring the xmlns:doc usage
   | above. This forces the lookup and loading of the xdoc plugin which
   | loads the properties. This is not entirely clear but works and I'll
   | find a better way to declare this.
   |
   -->

----- Original Message ----- 
From: "Alexey Demakov" <de...@ispras.ru>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Friday, May 23, 2003 4:48 PM
Subject: getPluginContext doesn't work


> What else except
> ${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.dest')}
> I should add to my plugin.jelly or project.xml to use plugin's property?
> 
> <echo>${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.dest')}</echo>
> 
> outputs empty string :(
> 
> Best regards,
> Alexey
> ---
> Alexey Demakov, ISP RAS
> www: http://redverst.ispras.ru
> e-mail: demakov@ispras.ru
> ICQ 740187
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org