Where were you trying to use the properties? This will only work for inside
the maven.xml file you have defined, not outside of it.

Loading parent project.properties files is on the TODO list - check JIRA.
Unfortunately, for now you'll just have to work around it. I've never found
this to be an issue, although it would be nicer to be able to use an
extended project.properties to do some extra things.

- Brett

> -----Original Message-----
> From: Dominik Dahlem [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, 18 September 2003 12:55 AM
> Cc: Maven Users List
> Subject: Re: maven vs ant property settings
> 
> 
> 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to