Peter Donald <[EMAIL PROTECTED]> wrote on 15/02/2003 02:13:07 PM:
> Hi,
>
> It looks like you can define properties in the project.xml but it does
not
> seem to work? I tried to add
>
> <project>
> ...
> <properties>
> <blah>true</blah>
> </properties>
> </project>
>
> and I expected the property blah to be set to value true but running a
simple
> target like
>
> <goal name="test">
> <echo message="blah=${blah}"/>
> </goal>
I haven't tried it, but I think these properties are available as
${pom.getProperty('blah')} at this point.
> Indicates it wasn't set. So what am I doing wrong?
>
> Also how does this interact with inheritance .. ie will sub-projects
inherit
> the properties?
Again, untested, but AFAIK, if the child project specifies a properties
section, it completely overrides the parent definitions.
HTH,
--
dIon Gillard, Multitask Consulting
Blog: http://www.freeroller.net/page/dion/Weblog
Work: http://www.multitask.com.au
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]