Test if pom.currentVersion exists in POM before the jar generation

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114936 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
evenisse 2004-03-23 20:33:59 +00:00
parent 3dcad04399
commit 1ab61fcd0e

View File

@ -37,6 +37,12 @@
description="Create the deliverable jar file."
prereqs="test:test">
<j:choose>
<j:when test="${pom.currentVersion == null}">
<ant:fail>You must define currentVersion in your POM.</ant:fail>
</j:when>
</j:choose>
<ant:available property="maven.jar.manifest.available"
file="${maven.jar.manifest}"/>