You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ev...@apache.org on 2004/03/23 21:33:59 UTC

cvs commit: maven-plugins/jar plugin.jelly

evenisse    2004/03/23 12:33:59

  Modified:    jar      plugin.jelly
  Log:
  Test if pom.currentVersion exists in POM before the jar generation
  
  Revision  Changes    Path
  1.30      +6 -0      maven-plugins/jar/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven-plugins/jar/plugin.jelly,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- plugin.jelly	4 Mar 2004 18:35:27 -0000	1.29
  +++ plugin.jelly	23 Mar 2004 20:33:59 -0000	1.30
  @@ -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}"/>
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org