Use commons.lang.StringUtils for string manipulation for maven 1.0 compatibility.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@407023 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl committed 2006-05-16 18:52:54 +00:00
1 parent 4da09106e4
commit a63ac78464
1 file changed
+4 -1
+4 -1
View File
@@ -39,7 +39,10 @@
<!-- Remove SNAPSHOT -->
<j:choose>
<j:when test="${pom.currentVersion.endsWith('-SNAPSHOT')}">
<j:set var="currentRelease" value="${pom.currentVersion.substring(0,pom.currentVersion.length()-9)}"/>
<j:invokeStatic className="org.apache.commons.lang.StringUtils" method="substringBeforeLast" var="currentRelease">
<j:arg value="${pom.currentVersion}" type="java.lang.String"/>
<j:arg value="-SNAPSHOT" type="java.lang.String"/>
</j:invokeStatic>
</j:when>
<j:otherwise>
<j:set var="currentRelease" value="${pom.currentVersion}"/>