maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Van de Velde <thomas.vdve...@gmail.com>
Subject Re: How to access default value of property of another plugin
Date Mon, 22 Aug 2005 23:00:27 GMT
TODO: Remove from documentation ;-)

On 8/23/05, Arnaud HERITIER <aheritier@gmail.com> wrote:
> 
> Maven:pluginVar is deprecated.
> You must use maven:get
> http://maven.apache.org/tags.html#maven:get
> 
> Arnaud
> 
> 
> > -----Message d'origine-----
> > De : Thomas Van de Velde [mailto:thomas.vdvelde@gmail.com]
> > Envoyé : mardi 23 août 2005 00:46
> > À : Maven Users List
> > Objet : Re: How to access default value of property of another plugin
> >
> > Martin,
> >
> > This has been documented here:
> > http://maven.apache.org/tags.html#maven:pluginVar
> >
> > e.g. <*maven**:**pluginVar* var="reportsDir"
> > plugin='maven-test-plugin'
> > property='maven.test.reportsDirectory'/>
> >
> >
> > Cheers,
> > Thomas
> >
> > On 8/22/05, Martin Burger <m@rtin-burger.de> wrote:
> > >
> > > Hello,
> > >
> > > I need the value of the property
> > "maven.test.reportsDirectory" in the
> > > plugin.jelly of my plugin even if it is not set via a
> > > project.properties file.
> > >
> > > Regard this simple goal:
> > >
> > > <goal name="some:goal">
> > > <echo>Value of maven.test.reportsDirectory:
> > > ${maven.test.reportsDirectory}</echo>
> > > </goal>
> > >
> > > If I run this goal without setting the property in a
> > > project.properties, it's output is just "[echo] Value of
> > > maven.test.reportsDirectory:". If I run "maven test:compile
> > > some:goal", it's output is "[echo] Value of
> > > maven.test.reportsDirectory: <some value>"
> > >
> > > How can I access the default value of that property as
> > defined in the
> > > plugin.properties of the test-Plugin without running a test goal?
> > > Should I set this property in the plugin.properties of my plugin? I
> > > think that solution is not so good, because if that
> > property's default
> > > value is changed I will need to change my settings, too.
> > >
> > > Can I load the default properties of another plugin in my plugin's
> > > jelly file?
> > >
> > > Regards,
> > > Martin
> > >
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > 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
> 
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message