mcconnell 2003/11/23 06:30:20
Modified: merlin maven.xml
Log:
Updated to check for the availablity of the repository plugin and conditionally
invoke avalon:artifact if the plugin is available.
Revision Changes Path
1.10 +7 -1 avalon/merlin/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvs/avalon/merlin/maven.xml,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- maven.xml 22 Nov 2003 12:52:55 -0000 1.9
+++ maven.xml 23 Nov 2003 14:30:20 -0000 1.10
@@ -5,6 +5,8 @@
<ant:property name="merlin.bootstrap.jar" value="merlin-bootstrap-1.0.jar"/>
<ant:property name="merlin.plugin.jar" value="merlin-plugin-1.1-SNAPSHOT.jar"/>
<ant:property name="meta.plugin.jar" value="avalon-meta-plugin-1.2.jar"/>
+ <ant:property name="repository.plugin.jar"
+ value="avalon-repository-plugin-1.2.1-dev.jar"/>
<ant:property file="project.properties"/>
<ant:property name="maven.docs.src" value="${basedir}/platform/xdocs"/>
@@ -398,7 +400,11 @@
Write a build signature for each package.
-->
<preGoal name="java:compile">
- <attainGoal name="avalon:artifact"/>
+ <ant:available file="${maven.home}/plugins/${repository.plugin.jar}"
+ property="pluginPresent"/>
+ <j:if test="${pluginPresent == 'true'}">
+ <attainGoal name="avalon:artifact"/>
+ </j:if>
</preGoal>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]