assert:assertPluginAvailable : Fix error (NoSuchElementException) if the minimum release number has less elements than the version number installed.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@531495 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier committed 2007-04-23 15:11:00 +00:00
1 parent 32ab49b668
commit f37627eb0c
2 files changed
+8 -3

No files matched your search

+7 -3
View File
@@ -165,8 +165,12 @@
<j:set var="minReleaseToHaveTokensIter" value="${minReleaseToHaveTokens.iterator()}"/>
<j:forEach var="numberInstalled" items="${installedReleaseTokens}">
<j:if test="${!minReleaseToHaveTokens.iterator().hasNext()}">
<j:set var="testFailed" value="true"/>
<j:if test="${!minReleaseToHaveTokensIter.hasNext()}">
<!-- There are more elements in the installed version than in the version to have -->
<!-- For example 1.7.1 and 1.7 -->
<!-- We are in the case where previous versions numbers are already tested -->
<!-- Thus it's a minor increment -->
<j:set var="testOk" value="true"/>
<j:break/>
</j:if>
<j:set var="numberToHave" value="${minReleaseToHaveTokensIter.next()}"/>
@@ -202,7 +206,7 @@
</j:otherwise>
</j:choose>
<j:if test="${!testFailed and !testOk and minReleaseToHaveTokens.iterator().hasNext()}">
<j:if test="${!testFailed and !testOk and minReleaseToHaveTokensIter.hasNext()}">
<!-- A minor release is missing. For example : 1.10 < 1.10.2 -->
<j:set var="errorSentence" value="Currently the plugin ${pluginToTest} v${installedRelease} is installed."/>
<j:set var="testFailed" value="true"/>
+1
View File
@@ -23,6 +23,7 @@
</properties>
<body>
<release version="1.7.1-SNAPSHOT" date="In SVN">
<action dev="aheritier" type="fix">assert:assertPluginAvailable : Fix error (NoSuchElementException) if the minimum release number has less elements than the version number installed.</action>
<action dev="aheritier" type="update">Don't check that a given plugin version is available in the bootstrap.</action>
<action dev="aheritier" type="update">Update dependencies to unify them between plugins. The following dependencies are updated : commons-jelly-tags-interaction v1.0 to v1.1, jaxen v1.0-FCS-full to 1.1-beta-9. The following dependencies are removed : saxpath.</action>
<action dev="aheritier" type="update" issue="MAVEN-1753">Upgrade to Xerces 2.8.0. Replace the deprecated xmlParserAPIs by xml-apis 1.3.03. Add the xml-resolver dependency for xerces.</action>