continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r329214 - in /maven/continuum/trunk: continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java continuum-web/src/main/resources/localization/Continuum.properties
Date Fri, 28 Oct 2005 14:35:11 GMT
Author: evenisse
Date: Fri Oct 28 07:35:03 2005
New Revision: 329214

URL: http://svn.apache.org/viewcvs?rev=329214&view=rev
Log:
[CONTINUUM-382]
o Add explanation on the role of default build definition
o Use defaultGoal instead of "clean:clean install" if it's defined in pom

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java
    maven/continuum/trunk/continuum-web/src/main/resources/localization/Continuum.properties

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java?rev=329214&r1=329213&r2=329214&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/project/builder/maven/MavenTwoContinuumProjectBuilder.java
Fri Oct 28 07:35:03 2005
@@ -124,6 +124,13 @@
 
         if ( !excludedPackagingTypes.contains( mavenProject.getPackaging() ) )
         {
+            String defaultGoal = "clean:clean install";
+
+            if (mavenProject.getBuild() != null && mavenProject.getBuild().getDefaultGoal()
!= null )
+            {
+                defaultGoal = mavenProject.getBuild().getDefaultGoal();
+            }
+
             Project continuumProject = new Project();
 
             BuildDefinition bd = new BuildDefinition();
@@ -132,7 +139,7 @@
 
             bd.setArguments( "--batch-mode --non-recursive" );
 
-            bd.setGoals( "clean:clean install" );
+            bd.setGoals( defaultGoal );
 
             bd.setBuildFile( "pom.xml" );
 

Modified: maven/continuum/trunk/continuum-web/src/main/resources/localization/Continuum.properties
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/resources/localization/Continuum.properties?rev=329214&r1=329213&r2=329214&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-web/src/main/resources/localization/Continuum.properties
(original)
+++ maven/continuum/trunk/continuum-web/src/main/resources/localization/Continuum.properties
Fri Oct 28 07:35:03 2005
@@ -167,7 +167,7 @@
 buildDefinition.arguments.label = Arguments
 buildDefinition.arguments.message =  Enter one or more command line arguments
 buildDefinition.default.label = Is it default?
-buildDefinition.default.message =  Check it if it's the default build definition
+buildDefinition.default.message =  Check it if it's the default build definition for this
project. The default build definition will be use when you'll force a build in summary page.
 buildDefinition.schedule.label = Schedule
 
 // ----------------------------------------------------------------------



Mime
View raw message