continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r497493 - /maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java
Date Thu, 18 Jan 2007 16:43:53 GMT
Author: evenisse
Date: Thu Jan 18 08:43:53 2007
New Revision: 497493

URL: http://svn.apache.org/viewvc?view=rev&rev=497493
Log:
[CONTINUUM-1139] Set the buildFile for ant/maven1/maven2 build definition to default value
when user add a new build definition.
Submittted by: Teodoro Cue Jr.

Modified:
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java?view=diff&rev=497493&r1=497492&r2=497493
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java
Thu Jan 18 08:43:53 2007
@@ -135,6 +135,21 @@
             scheduleId = buildDefinition.getSchedule().getId();
             defaultBuildDefinition = buildDefinition.isDefaultForProject();
         }
+        else
+        {
+            if ( "maven2".equals(executor) )
+            {
+                buildFile = "pom.xml";
+            }
+            else if ( "maven-1".equals(executor) )
+            {
+                buildFile = "project.xml";
+            }
+            else if ( "ant".equals(executor) )
+            {
+                buildFile = "build.xml";
+            }
+        }
 
         return SUCCESS;
     }



Mime
View raw message