o use maven:property to glean a default instead of relying on interpolation
of ${pom} values in the plugin properties files.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114559 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
2f79ac3020
commit
46c2ce36ad
1 file changed
+2
-2
@@ -5,13 +5,13 @@
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:jsl="jelly:jsl"
|
||||
xmlns:x="jelly:xml"
|
||||
xmlns:maven="jelly:maven"
|
||||
xmlns="dummy" trim="true">
|
||||
|
||||
<jsl:template match="document/body/release">
|
||||
|
||||
<x:set var="version" select="string(@version)"/>
|
||||
<j:set var="versionVariable" value="${context.getVariable('maven.announcement.version')}"/>
|
||||
|
||||
<maven:property var="versionVariable" name="maven.announcement.version" defaultValue="${pom.currentVersion}"/>
|
||||
<j:if test="${versionVariable.equals(version)}">
|
||||
|
||||
<j:useBean var="formatter" class="org.apache.maven.announcement.Formatter"/>
|
||||
|
||||
Reference in new issue
Block a user