You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Martin Burger <m...@rtin-burger.de> on 2005/08/22 18:50:02 UTC
How to access default value of property of another plugin
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
Re: How to access default value of property of another plugin
Posted by Thomas Van de Velde <th...@gmail.com>.
TODO: Remove from documentation ;-)
On 8/23/05, Arnaud HERITIER <ah...@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
>
>
Re: How to access default value of property of another plugin
Posted by Martin Burger <m...@rtin-burger.de>.
Arnaud HERITIER schrieb am 23.08.2005 00:52:
>Maven:pluginVar is deprecated.
>You must use maven:get
>http://maven.apache.org/tags.html#maven:get
>
Thank you very much! That's exactly what I looked for.
Regards
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: How to access default value of property of another plugin
Posted by Arnaud HERITIER <ah...@gmail.com>.
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
RE: How to access default value of property of another plugin
Posted by Vincent Massol <vm...@pivolis.com>.
> -----Original Message-----
> From: Thomas Van de Velde [mailto:thomas.vdvelde@gmail.com]
> Sent: mardi 23 août 2005 00:46
> To: Maven Users List
> Subject: 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'/>
Make sure you also read the following:
http://mavenbook.xwiki.com/xwiki/bin/view/Main/Tip2PluginHandleStillRequired
(especially the part after the "Update of 5 August 2005" from Brett).
Thanks
-Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to access default value of property of another plugin
Posted by Thomas Van de Velde <th...@gmail.com>.
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
>
>