use plugin:available instead of the old jelly script (bugged)

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@289263 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier
2005-09-15 15:42:06 +00:00
parent 8dee78ca7a
commit 077f1fcf7b
15 changed files with 56 additions and 43 deletions

View File

@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,19 +23,11 @@
xmlns:maven="jelly:maven"
xmlns:doc="doc"
xmlns:scm="scm"
xmlns:plugin="plugin"
xmlns:ant="jelly:ant">
<j:if test="${bootstrapping == null}">
<!-- Poor mans version check - plugin dependencies still suck for multiple versions -->
<maven:get plugin="maven-scm-plugin" property="plugin" var="scmPlugin" />
<j:if test="${empty(scmPlugin) or scmPlugin.currentVersion.compareTo('1.5') lt 0}">
<ant:fail>
Must have SCM plugin v1.5 installed to use this version of the jdiff plugin.
Try: maven plugin:download -DgroupId=maven -DartifactId=maven-scm-plugin -Dversion=1.5
You can find the latest version of the SCM plugin on the Maven Download page at
http://maven.apache.org/start/download.html
</ant:fail>
</j:if>
<plugin:available groupId="maven" artifactId="maven-scm-plugin" minRelease="1.5" neededBy="maven-jdiff-plugin"/>
</j:if>
<goal name="maven-jdiff-plugin:register">

View File

@@ -2,7 +2,7 @@
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@
<pomVersion>3</pomVersion>
<id>maven-jdiff-plugin</id>
<name>Maven JDiff Plugin</name>
<currentVersion>1.5</currentVersion>
<currentVersion>1.6-SNAPSHOT</currentVersion>
<description>Plugin for JDiff - reports on the differences in the public API of two releases by comparing the sources of two SCM checkouts.</description>
<url>http://maven.apache.org/reference/plugins/jdiff/</url>
<issueTrackingUrl>http://jira.codehaus.org/browse/MPJDIFF</issueTrackingUrl>

View File

@@ -2,7 +2,7 @@
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,6 +24,9 @@
<author email="evenisse@ifrance.com">Emmanuel Venisse</author>
</properties>
<body>
<release version="1.6-SNAPSHOT" date="In SVN">
<action dev="aheritier" type="update">It requires at least maven-plugin-plugin v1.7.</action>
</release>
<release version="1.5" date="2005-09-06">
<action dev="brett" type="fix" issue="MPJDIFF-2">Add the classpath to the Javadoc tag to properly resolve classes</action>
<action dev="brett" type="update" issue="MPJDIFF-4">Store difference XML files in the

View File

@@ -2,7 +2,7 @@
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -50,5 +50,12 @@
</table>
</subsection>
</section>
<section name="Requirements">
<p>Be careful, the following plugins must be installed to use the jdiff plugin :</p>
<ul>
<li>maven-plugin-plugin 1.7 (at least)</li>
<li>maven-scm-plugin 1.5 (at least)</li>
</ul>
</section>
</body>
</document>