On Sun, 16 Feb 2003 12:59, [EMAIL PROTECTED] wrote:
> I haven't tried it, but I think these properties are available as
> ${pom.getProperty('blah')} at this point.
Okay. If I add the following in it sorta works but fails on certain
properties. If you look at below property section and run jelly script
over it then it fails to print out values for maven.repo.remote and
maven.javadoc.links. Any ideas?
<goal name="copyProperties">
<j:set var="_props" value="${pom.resolvedProperties()}"/>
<j:forEach items="${_props.keySet().iterator()}" var="_key">
<j:set var="_val">${_props.get(_key)}</j:set>
<echo message="Setting ${_key} to ${_val}"/>
<j:set var="${_key}" value="${_val}"/>
</j:forEach>
</goal>
<properties>
<maven.checkstyle.properties>${basedir}/../../tools/checkstyle/checkstyle.properties</maven.checkstyle.properties>
<maven.checkstyle.license.exists>true</maven.checkstyle.license.exists>
<maven.repo.remote>http://www.ibiblio.com/maven,http://spice.sourceforge.net/maven,file:../lib</maven.repo.remote>
<maven.javadoc.links>http://avalon.apache.org/api/,
http://java.sun.com/j2se/1.3/docs/api/</maven.javadoc.links>
<maven.javadoc.additionalparam>-tag
avalon.service</maven.javadoc.additionalparam>
</properties>
> Again, untested, but AFAIK, if the child project specifies a properties
> section, it completely overrides the parent definitions.
>
> HTH,
yep. Though I would love to see a future version of maven allowing a property
section that acted exactly like project.properties but was inherited. Currently
I just copy project.proeprties around into all the different projects which would
be great to get rid of :)
I would also like its format to be something like
<property name="X" value="Y"/>
because that seems so much easier to use IMHO.
--
Cheers,
Peter Donald
*-------------------------------------------------*
| An eye for eye only ends up making the whole |
| world blind. - Gandhi |
*-------------------------------------------------*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]