mcconnell 2003/11/03 19:53:47
Added: merlin/repository/impl maven.xml
Log:
Add automated catalog generation.
Revision Changes Path
1.1 avalon/merlin/repository/impl/maven.xml
Index: maven.xml
===================================================================
<project default="merlin:build" xmlns:maven="jelly:maven" xmlns:j="jelly:core"
xmlns:util="jelly:util" xmlns:ant="jelly:ant">
<!--
Write a implementation catalog relative to the spi version.
-->
<preGoal name="java:compile">
<j:set var="spi"
value="${pom.getDependency('avalon-repository:avalon-repository-spi')}"/>
<j:set var="filename"
value="${maven.build.dir}/classes/${pom.groupId}-${spi.version}.properties"/>
<ant:echo message="Catalog: ${filename}"/>
<ant:echo file="${filename}">
#
# Catalog descriptor.
#
project = ${pom.groupId}
implementation = ${pom.groupId}:${pom.artifactId};${pom.currentVersion}
#
# Implementation dependencies
#
</ant:echo>
<j:set var="index" value="0"/>
<j:forEach var="dep" items="${pom.dependencies}">
<ant:echo file="${filename}" append="true">
artifact.${index} = ${dep.groupId}:${dep.artifactId};${dep.version}</ant:echo>
<j:set var="index" value="${index+1}"/>
</j:forEach>
<ant:echo file="${filename}" append="true">
</ant:echo>
</preGoal>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]