continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r578608 - in /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum: DefaultContinuum.java core/action/AbstractContinuumAction.java
Date Sun, 23 Sep 2007 22:32:17 GMT
Author: olamy
Date: Sun Sep 23 15:32:13 2007
New Revision: 578608

URL: http://svn.apache.org/viewvc?rev=578608&view=rev
Log:
fix adding a project with a selected build defintion template.


Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractContinuumAction.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?rev=578608&r1=578607&r2=578608&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Sun Sep 23 15:32:13 2007
@@ -1666,14 +1666,12 @@
 
         context.put( AbstractContinuumAction.KEY_WORKING_DIRECTORY, getWorkingDirectory()
);
         
-        context.put( AbstractContinuumAction.KEY_BUILD_DEFINITION_TEMPLATE_ID, Integer.valueOf(
buildDefintionTemplateId ) );
-
         // CreateProjectsFromMetadataAction will check null and use default
         if ( buildDefintionTemplateId > 0 )
         {
             try
             {
-                context.put( AbstractContinuumAction.KEY_BUILD_DEFINITION_TEMPLATE_ID, buildDefinitionService
+                context.put( AbstractContinuumAction.KEY_BUILD_DEFINITION_TEMPLATE, buildDefinitionService
                     .getBuildDefinitionTemplate( buildDefintionTemplateId ) );
             }
             catch ( BuildDefinitionServiceException e )

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractContinuumAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractContinuumAction.java?rev=578608&r1=578607&r2=578608&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractContinuumAction.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractContinuumAction.java
Sun Sep 23 15:32:13 2007
@@ -46,8 +46,6 @@
     public static final String KEY_PROJECT_ID = "project-id";
 
     public static final String KEY_PROJECT = "project";
-
-    public static final String KEY_BUILD_DEFINITION_TEMPLATE_ID = "build-definition-template-id";
     
     public static final String KEY_BUILD_DEFINITION_TEMPLATE = "build-definition-template";
 
@@ -110,11 +108,6 @@
     public static int getProjectGroupId( Map context )
     {
         return getInteger( context, KEY_PROJECT_GROUP_ID );
-    }
-
-    public static int getBuildDefinitionTemplateId( Map context )
-    {
-        return getInteger( context, KEY_BUILD_DEFINITION_TEMPLATE_ID );
     }
 
     public static BuildDefinitionTemplate getBuildDefinitionTemplate( Map context )



Mime
View raw message