You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by khote <kh...@mminternet.com> on 2003/09/17 16:15:28 UTC
maven vs ant property settings
I understant an important difference in the way maven and ant handle
property settings is first-set vs last-set.
when I'm in a child project that wants to inherit from the parent in this
manner:
<property file="../project.properties"/>
<property file="../build.properties"/>
It's not always convenient to use the parent reactor to execute in child
projects, so I can't always count on those settings existing, particularly
directory settings in the build.properties for local system information.
Which way is it being done, maven or ant? If ant, is there a way to get it
done last-set?
-----------------------------------------------------------
"Trying is the first step towards failure." -- Homer Simpson
kevinHagel
http://hagelnx.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven vs ant property settings
Posted by Dominik Dahlem <Do...@cs.tcd.ie>.
I should mention that I don't want to use ~/build.properties, because
I'd like to have everything in CVS.
Dominik
On Wed, 2003-09-17 at 15:55, Dominik Dahlem wrote:
> I don't have a solution to your problem. But I had similar problems.
> I played a bit with property settings recently. All my duplications in
> my projects are in properties files. I couldn't find a way to load
> properties from a master project.properties file.
> I tried to load the properties in maven.xml:
>
> <project default="site"
> xmlns:ant="jelly:ant">
> <ant:property file="${basedir}/../../master/project.properties"/>
> </project>
>
> However, this project didn't recognize the properties from my master
> file. I'd be happy, if someone has a solution for that.
>
>
> Dominik
>
>
> On Wed, 2003-09-17 at 15:15, khote wrote:
> > I understant an important difference in the way maven and ant handle
> > property settings is first-set vs last-set.
> > when I'm in a child project that wants to inherit from the parent in this
> > manner:
> >
> > <property file="../project.properties"/>
> > <property file="../build.properties"/>
> >
> > It's not always convenient to use the parent reactor to execute in child
> > projects, so I can't always count on those settings existing, particularly
> > directory settings in the build.properties for local system information.
> >
> > Which way is it being done, maven or ant? If ant, is there a way to get it
> > done last-set?
> >
> > -----------------------------------------------------------
> > "Trying is the first step towards failure." -- Homer Simpson
> >
> > kevinHagel
> > http://hagelnx.com
> >
> >
> > ---------------------------------------------------------------------
> > 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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven vs ant property settings
Posted by Dominik Dahlem <Do...@cs.tcd.ie>.
I don't have a solution to your problem. But I had similar problems.
I played a bit with property settings recently. All my duplications in
my projects are in properties files. I couldn't find a way to load
properties from a master project.properties file.
I tried to load the properties in maven.xml:
<project default="site"
xmlns:ant="jelly:ant">
<ant:property file="${basedir}/../../master/project.properties"/>
</project>
However, this project didn't recognize the properties from my master
file. I'd be happy, if someone has a solution for that.
Dominik
On Wed, 2003-09-17 at 15:15, khote wrote:
> I understant an important difference in the way maven and ant handle
> property settings is first-set vs last-set.
> when I'm in a child project that wants to inherit from the parent in this
> manner:
>
> <property file="../project.properties"/>
> <property file="../build.properties"/>
>
> It's not always convenient to use the parent reactor to execute in child
> projects, so I can't always count on those settings existing, particularly
> directory settings in the build.properties for local system information.
>
> Which way is it being done, maven or ant? If ant, is there a way to get it
> done last-set?
>
> -----------------------------------------------------------
> "Trying is the first step towards failure." -- Homer Simpson
>
> kevinHagel
> http://hagelnx.com
>
>
> ---------------------------------------------------------------------
> 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