maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pg...@apache.org
Subject svn commit: r805468 - /maven/release/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/BranchReleaseMojo.java
Date Tue, 18 Aug 2009 15:55:02 GMT
Author: pgier
Date: Tue Aug 18 15:55:02 2009
New Revision: 805468

URL: http://svn.apache.org/viewvc?rev=805468&view=rev
Log:
[MRELEASE-327] branchName should be a required parameter.

Modified:
    maven/release/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/BranchReleaseMojo.java

Modified: maven/release/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/BranchReleaseMojo.java
URL: http://svn.apache.org/viewvc/maven/release/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/BranchReleaseMojo.java?rev=805468&r1=805467&r2=805468&view=diff
==============================================================================
--- maven/release/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/BranchReleaseMojo.java
(original)
+++ maven/release/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/BranchReleaseMojo.java
Tue Aug 18 15:55:02 2009
@@ -41,6 +41,7 @@
      * The branch name to use.
      *
      * @parameter expression="${branchName}"
+     * @required
      */
     private String branchName;
 
@@ -138,11 +139,6 @@
     {
         super.execute();
 
-        if ( StringUtils.isEmpty( branchName ) )
-        {
-            throw new MojoExecutionException( "The branch name is required." );
-        }
-
         ReleaseDescriptor config = createReleaseDescriptor();
         config.setAddSchema( addSchema );
         config.setScmUseEditMode( useEditMode );



Mime
View raw message