Henri,
I'm the glick who conversed with you on the #maven irc. I got something similar
to your example to work, I think, but I'm using Maven 1.1b1 rather than Maven
1.0.1. I'm not sure why your version isn't working.
Here are my project.xml dependencies:
<dependencies>
<dependency>
<groupId>springframework</groupId>
<artifactId>spring</artifactId>
<version>1.2.4</version>
<properties>
<scope>compile</scope>
</properties>
</dependency>
<dependency>
<!--
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
-->
<id>commons-logging</id>
<version>1.0.4</version>
<properties>
<scope>compile</scope>
</properties>
</dependency>
<dependency>
<groupId>oro</groupId>
<artifactId>oro</artifactId>
<version>2.0.8</version>
<properties>
<scope>compile</scope>
</properties>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<properties>
<scope>test</scope>
</properties>
</dependency>
</dependencies>
Here's my jelly code:
<project xmlns:j="jelly:core" xmlns:ant="jelly:ant">
<goal name="get-dep-properties">
<!-- for-each dependency -->
<j:forEach var="dep" items="${pom.dependencies}">
<j:if test="${dep.getProperty('scope') != null}">
<echo
message="${dep.getProperty('scope')}/${dep.getGroupId()}/${dep.getArtifactId()}/${dep.getVersion()}"/>
<j:set var="maven.javadoc.links"
value="${maven.javadoc.links},${dep.getProperty('scope')}/${dep.getGroupId()}/${dep.getArtifactId()}/${dep.getVersion()}/"/>
</j:if>
</j:forEach>
<echo message="maven.javadoc.links = ${maven.javadoc.links}"/>
</goal>
</project>
Here's my output:
get-dep-properties:
[echo] compile/springframework/spring/1.2.4
[echo] compile/commons-logging/commons-logging/1.0.4
[echo] compile/oro/oro/2.0.8
[echo] test/junit/junit/3.8.1
[echo] maven.javadoc.links =
,compile/springframework/spring/1.2.4/,compile/commons-logging/commons-logging/1.0.4/,compile/oro/oro/2.0.8/,test/junit/junit/3.8.1/
BUILD SUCCESSFUL
Total time : 2 seconds
Finished at : Tuesday, September 6, 2005 8:32:39 PM EDT
If you want to review this some more, keep asking questions. :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]