continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r718142 - in /continuum/branches/continuum-distributed-builds: continuum-api/src/main/java/org/apache/maven/continuum/ continuum-core/src/main/java/org/apache/maven/continuum/ continuum-core/src/test/java/org/apache/maven/continuum/ continu...
Date Sun, 16 Nov 2008 23:12:40 GMT
Author: ctan
Date: Sun Nov 16 15:12:39 2008
New Revision: 718142

URL: http://svn.apache.org/viewvc?rev=718142&view=rev
Log:
removed distributedBuildEnabled field from ProjectGroup

Modified:
    continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java
    continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
    continuum/branches/continuum-distributed-builds/continuum-core/src/test/java/org/apache/maven/continuum/DefaultContinuumTest.java
    continuum/branches/continuum-distributed-builds/continuum-model/src/main/mdo/continuum.xml

Modified: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java?rev=718142&r1=718141&r2=718142&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java
(original)
+++ continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java
Sun Nov 16 15:12:39 2008
@@ -661,6 +661,4 @@
     String getReleaseOutput( int releaseResultId )
         throws ContinuumException;
 
-    void setDistributedBuildEnabled( boolean distributedBuildEnabled )
-        throws ContinuumException;
 }

Modified: continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?rev=718142&r1=718141&r2=718142&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Sun Nov 16 15:12:39 2008
@@ -3380,26 +3380,6 @@
         }
     }
 
-    public void setDistributedBuildEnabled( boolean distributedBuildEnabled )
-        throws ContinuumException
-    {
-        configurationService.setDistributedBuildEnabled( distributedBuildEnabled );
-
-        for ( ProjectGroup projectGroup : getAllProjectGroups() )
-        {
-            try
-            {
-                projectGroup.setDistributedBuildEnabled( distributedBuildEnabled );
-                projectGroupDao.updateProjectGroup( projectGroup );
-            }
-            catch ( ContinuumStoreException e )
-            {
-                throw new ContinuumException( "Error while enabling/disabling distributed
build of project group " +
-                                              projectGroup.getName() );
-            }
-        }
-    }
-
     private void createProjectScmRootForProjectGroup( ProjectGroup projectGroup )
         throws ContinuumException
     {

Modified: continuum/branches/continuum-distributed-builds/continuum-core/src/test/java/org/apache/maven/continuum/DefaultContinuumTest.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-core/src/test/java/org/apache/maven/continuum/DefaultContinuumTest.java?rev=718142&r1=718141&r2=718142&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-core/src/test/java/org/apache/maven/continuum/DefaultContinuumTest.java
(original)
+++ continuum/branches/continuum-distributed-builds/continuum-core/src/test/java/org/apache/maven/continuum/DefaultContinuumTest.java
Sun Nov 16 15:12:39 2008
@@ -475,22 +475,6 @@
         assertEquals( defaultProjectGroup, continuum.getProjectGroupByGroupId( Continuum.DEFAULT_PROJECT_GROUP_GROUP_ID
) );
     }
 
-    public void testDistributedBuild()
-        throws Exception
-    {
-        for ( ProjectGroup group : getContinuum().getAllProjectGroups() )
-        {
-            assertFalse( group.isDistributedBuildEnabled() );
-        }
-
-        getContinuum().setDistributedBuildEnabled( true );
-
-        for ( ProjectGroup group : getContinuum().getAllProjectGroups() )
-        {
-            assertTrue( group.isDistributedBuildEnabled() );
-        }
-    }
-
     private Continuum getContinuum()
         throws Exception
     {

Modified: continuum/branches/continuum-distributed-builds/continuum-model/src/main/mdo/continuum.xml
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-model/src/main/mdo/continuum.xml?rev=718142&r1=718141&r2=718142&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-model/src/main/mdo/continuum.xml
(original)
+++ continuum/branches/continuum-distributed-builds/continuum-model/src/main/mdo/continuum.xml
Sun Nov 16 15:12:39 2008
@@ -167,11 +167,6 @@
             <type>LocalRepository</type>
           </association>
         </field>
-        <field>
-          <name>distributedBuildEnabled</name>
-          <version>1.1.3+</version>
-          <type>boolean</type>
-        </field>
       </fields>
     </class>
 



Mime
View raw message