continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tryg...@apache.org
Subject svn commit: r209462 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java
Date Wed, 06 Jul 2005 13:54:10 GMT
Author: trygvis
Date: Wed Jul  6 06:54:09 2005
New Revision: 209462

URL: http://svn.apache.org/viewcvs?rev=209462&view=rev
Log:
Fixing http://jira.codehaus.org/browse/CONTINUUM-194: "Build of M2 project
freezes with M2-alpha 3".
o Adding -B to the list of arguments to m2.
o Using project.id as the name of continuum project if project.name is empty.

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java?rev=209462&r1=209461&r2=209462&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java
Wed Jul  6 06:54:09 2005
@@ -82,7 +82,7 @@
 
         if ( StringUtils.isEmpty( continuumProject.getCommandLineArguments() ) )
         {
-            continuumProject.setCommandLineArguments( "-N" );
+            continuumProject.setCommandLineArguments( "-N -B" );
         }
 
         if ( StringUtils.isEmpty( continuumProject.getGoals() ) )
@@ -208,6 +208,11 @@
     public String getProjectName( MavenProject project )
     {
         String name = project.getName();
+
+        if ( StringUtils.isEmpty( name ) )
+        {
+            return project.getId();
+        }
 
         return name;
     }



Mime
View raw message