continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r733441 [2/8] - in /continuum/branches/continuum-distributed-builds: ./ continuum-api/src/main/java/org/apache/continuum/configuration/ continuum-api/src/main/java/org/apache/continuum/dao/ continuum-api/src/main/java/org/apache/continuum/t...
Date Sun, 11 Jan 2009 09:52:35 GMT

Propchange: continuum/branches/continuum-distributed-builds/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Sun Jan 11 01:52:08 2009
@@ -1,2 +1,2 @@
-/continuum/branches/continuum-1.2.x:690684,690689-690799,698449-698533,698817-698819,699529,700250,700273,700936,705894,705910,708339,722279,722624,723119,723487,724016,724024
-/continuum/trunk:713270-724659
+/continuum/branches/continuum-1.2.x:690684,690689-690799,698449-698533,698817-698819,699529,700250,700273,700936,705894,705910,708339,722279,722624,723119,723487,724016,724024,725845,726103,726239,726462
+/continuum/trunk:713270-724659,724671-733412

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/continuum/configuration/ContinuumConfiguration.java
            ('svn:executable' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/continuum/configuration/ContinuumConfigurationException.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/continuum/configuration/GeneralConfiguration.java
            ('svn:executable' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/continuum/configuration/ProxyConfiguration.java
            ('svn:executable' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/continuum/dao/ContinuumReleaseResultDao.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/continuum/dao/ContinuumReleaseResultDao.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/continuum/dao/ProjectScmRootDao.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/continuum/dao/ProjectScmRootDao.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/continuum/taskqueue/manager/TaskQueueManager.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/continuum/taskqueue/manager/TaskQueueManager.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/continuum/taskqueue/manager/TaskQueueManagerException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/continuum/taskqueue/manager/TaskQueueManagerException.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Modified: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/ContinuumRuntimeException.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/ContinuumRuntimeException.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/ContinuumRuntimeException.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/ContinuumRuntimeException.java Sun Jan 11 01:52:08 2009
@@ -21,6 +21,7 @@
 
 /**
  * Exception thrown as a result of a Continuum programming error so that the user need not deal with it.
+ * @version $Id$
  */
 public class ContinuumRuntimeException
     extends RuntimeException

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/ContinuumRuntimeException.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/build/settings/BuildSettingsConstants.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/build/settings/SchedulesActivationException.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/build/settings/SchedulesActivator.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Modified: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/builddefinition/BuildDefinitionService.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/builddefinition/BuildDefinitionService.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/builddefinition/BuildDefinitionService.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/builddefinition/BuildDefinitionService.java Sun Jan 11 01:52:08 2009
@@ -115,7 +115,7 @@
 
     public List<BuildDefinitionTemplate> getBuildDefinitionTemplatesWithType( String type )
         throws BuildDefinitionServiceException;
-
+    
     public ProjectGroup addBuildDefinitionTemplateToProjectGroup( int projectGroupId,
                                                                   BuildDefinitionTemplate buildDefinitionTemplate )
         throws BuildDefinitionServiceException, ContinuumObjectNotFoundException;

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/builddefinition/BuildDefinitionService.java
------------------------------------------------------------------------------
--- svn:eol-style (original)
+++ svn:eol-style Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-LF
+native

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/builddefinition/BuildDefinitionService.java
            ('svn:executable' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/builddefinition/BuildDefinitionService.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-URL HeadURL Author LastChangedBy Date LastChangedDate Rev Revision LastChangedRevision Id
+Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/builddefinition/BuildDefinitionServiceException.java
------------------------------------------------------------------------------
--- svn:eol-style (original)
+++ svn:eol-style Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-LF
+native

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/builddefinition/BuildDefinitionServiceException.java
            ('svn:executable' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/builddefinition/BuildDefinitionServiceException.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-URL HeadURL Author LastChangedBy Date LastChangedDate Rev Revision LastChangedRevision Id
+Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/configuration/ConfigurationException.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/execution/ContinuumBuildCancelledException.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/execution/ContinuumBuildExecutorConstants.java
------------------------------------------------------------------------------
--- svn:eol-style (original)
+++ svn:eol-style Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-LF
+native

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/execution/ContinuumBuildExecutorConstants.java
            ('svn:executable' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/execution/ContinuumBuildExecutorConstants.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-URL HeadURL Author LastChangedBy Date LastChangedDate Rev Revision LastChangedRevision Id
+Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/execution/ExecutorConfigurator.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/installation/AlreadyExistsInstallationException.java
            ('svn:executable' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/installation/AlreadyExistsInstallationException.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-URL HeadURL Author LastChangedBy Date LastChangedDate Rev Revision LastChangedRevision Id
+Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/installation/InstallationException.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/installation/InstallationService.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/profile/AlreadyExistsProfileException.java
            ('svn:executable' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/profile/AlreadyExistsProfileException.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-URL HeadURL Author LastChangedBy Date LastChangedDate Rev Revision LastChangedRevision Id
+Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/profile/ProfileException.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/profile/ProfileService.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Modified: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseException.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseException.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseException.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseException.java Sun Jan 11 01:52:08 2009
@@ -21,6 +21,7 @@
 
 /**
  * @author Jason van Zyl
+ * @version $Id$
  */
 public class ContinuumReleaseException
     extends Exception

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseException.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Modified: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManager.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManager.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManager.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManager.java Sun Jan 11 01:52:08 2009
@@ -32,6 +32,7 @@
  * that has been received by the Maven Release Plugin.
  *
  * @author Jason van Zyl
+ * @version $Id$
  */
 public interface ContinuumReleaseManager
 {

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManager.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Modified: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManagerListener.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManagerListener.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManagerListener.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManagerListener.java Sun Jan 11 01:52:08 2009
@@ -23,6 +23,7 @@
 
 /**
  * @author Edwin Punzalan
+ * @version $Id$
  */
 public interface ContinuumReleaseManagerListener
 {

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManagerListener.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-api/src/main/java/org/apache/maven/continuum/utils/WorkingDirectoryService.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-Id
+Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-base/continuum-configuration/src/main/java/org/apache/continuum/configuration/DefaultContinuumConfiguration.java
            ('svn:executable' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-base/continuum-configuration/src/main/resources/META-INF/spring-context.xml
            ('svn:executable' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-base/continuum-configuration/src/test/java/org/apache/continuum/configuration/TestDefaultContinuumConfiguration.java
            ('svn:executable' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-base/continuum-configuration/src/test/resources/conf/continuum.xml
            ('svn:executable' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-base/continuum-configuration/src/test/resources/log4j.xml
            ('svn:executable' removed)

Modified: continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/pom.xml
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/pom.xml?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/pom.xml (original)
+++ continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/pom.xml Sun Jan 11 01:52:08 2009
@@ -46,7 +46,11 @@
     <dependency>
       <groupId>org.codehaus.plexus</groupId>
       <artifactId>plexus-spring</artifactId>
-    </dependency>    
+    </dependency>   
+    <dependency>
+      <groupId>javax.annotation</groupId>
+      <artifactId>jsr250-api</artifactId>
+    </dependency>      
     <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-simple</artifactId>

Propchange: continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/java/org/apache/continuum/scm/ContinuumScm.java
            ('svn:mime-type' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/java/org/apache/continuum/scm/ContinuumScmConfiguration.java
            ('svn:mime-type' removed)

Modified: continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/java/org/apache/continuum/scm/DefaultContinuumScm.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/java/org/apache/continuum/scm/DefaultContinuumScm.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/java/org/apache/continuum/scm/DefaultContinuumScm.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/java/org/apache/continuum/scm/DefaultContinuumScm.java Sun Jan 11 01:52:08 2009
@@ -22,6 +22,8 @@
 import java.io.File;
 import java.io.IOException;
 
+import javax.annotation.Resource;
+
 import org.apache.commons.io.FileUtils;
 import org.apache.commons.lang.StringUtils;
 import org.apache.maven.scm.ScmException;
@@ -34,6 +36,7 @@
 import org.apache.maven.scm.manager.ScmManager;
 import org.apache.maven.scm.repository.ScmRepository;
 import org.apache.maven.scm.repository.ScmRepositoryException;
+import org.springframework.stereotype.Service;
 
 /**
  * @author <a href="mailto:trygvis@inamo.no">Trygve Laugst&oslash;l</a>
@@ -41,10 +44,12 @@
  * 
  * @version $Id$
  */
+@Service("continuumScm")
 public class DefaultContinuumScm
     implements ContinuumScm
 {
     /** The Maven SCM manager to use. */
+    @Resource
     private ScmManager scmManager;
 
     public CheckOutScmResult checkout( ContinuumScmConfiguration configuration )

Propchange: continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/java/org/apache/continuum/scm/manager/ScmManager.java
            ('svn:mime-type' removed)

Modified: continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/java/org/apache/continuum/scm/manager/Slf4jScmLogger.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/java/org/apache/continuum/scm/manager/Slf4jScmLogger.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/java/org/apache/continuum/scm/manager/Slf4jScmLogger.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/java/org/apache/continuum/scm/manager/Slf4jScmLogger.java Sun Jan 11 01:52:08 2009
@@ -22,6 +22,7 @@
 import org.apache.maven.scm.log.ScmLogger;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
+import org.springframework.stereotype.Service;
 
 /**
  * SLF4J logger for Maven SCM.
@@ -29,6 +30,7 @@
  * 
  * @version $Id$
  */
+@Service("scmLogger")
 public class Slf4jScmLogger
     implements ScmLogger
 {

Propchange: continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/java/org/apache/continuum/scm/manager/Slf4jScmLogger.java
            ('svn:mime-type' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/java/org/apache/continuum/scm/manager/spring/ScmProviderFactoryBean.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Modified: continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/resources/META-INF/spring-context.xml
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/resources/META-INF/spring-context.xml?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/resources/META-INF/spring-context.xml (original)
+++ continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/resources/META-INF/spring-context.xml Sun Jan 11 01:52:08 2009
@@ -1,16 +1,37 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:context="http://www.springframework.org/schema/context"
        xsi:schemaLocation="http://www.springframework.org/schema/beans
-           http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+                http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+                http://www.springframework.org/schema/context
+                http://www.springframework.org/schema/context/spring-context-2.5.xsd">
 
-  <bean id="continuumScm" class="org.apache.continuum.scm.DefaultContinuumScm">
-    <property name="scmManager" ref="scmManager" />
-  </bean>
+  <context:annotation-config />
+  <context:component-scan base-package="org.apache.continuum.scm"/>
 
   <bean id="scmManager" class="org.apache.continuum.scm.manager.ScmManager">
     <property name="scmLogger" ref="scmLogger" />
+    <property name="scmProviders">
+      <bean class="org.apache.continuum.scm.manager.spring.ScmProviderFactoryBean"/>
+    </property>
   </bean>
-
-  <bean id="scmLogger" class="org.apache.continuum.scm.manager.Slf4jScmLogger" />
 </beans>

Propchange: continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/main/resources/META-INF/spring-context.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/test/resources/log4j.xml
            ('svn:executable' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-base/continuum-scm/src/test/resources/log4j.xml
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Modified: continuum/branches/continuum-distributed-builds/continuum-commons/pom.xml
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-commons/pom.xml?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-commons/pom.xml (original)
+++ continuum/branches/continuum-distributed-builds/continuum-commons/pom.xml Sun Jan 11 01:52:08 2009
@@ -36,6 +36,14 @@
       <artifactId>continuum-store</artifactId>
     </dependency>
     <dependency>
+      <groupId>org.springframework</groupId>
+      <artifactId>spring-context-support</artifactId>
+    </dependency>      
+    <dependency>
+      <groupId>javax.annotation</groupId>
+      <artifactId>jsr250-api</artifactId>
+    </dependency>    
+    <dependency>
       <groupId>org.apache.continuum</groupId>
       <artifactId>continuum-configuration</artifactId>
     </dependency>
@@ -71,20 +79,4 @@
       <scope>test</scope>
     </dependency>      
   </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.codehaus.plexus</groupId>
-        <artifactId>plexus-maven-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>generate</id>
-            <goals>
-              <goal>descriptor</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
 </project>

Propchange: continuum/branches/continuum-distributed-builds/continuum-commons/pom.xml
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Modified: continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/installation/DefaultInstallationService.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/installation/DefaultInstallationService.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/installation/DefaultInstallationService.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/installation/DefaultInstallationService.java Sun Jan 11 01:52:08 2009
@@ -19,6 +19,18 @@
  * under the License.
  */
 
+import java.io.File;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+
+import javax.annotation.Resource;
+
 import org.apache.continuum.dao.InstallationDao;
 import org.apache.maven.continuum.execution.ExecutorConfigurator;
 import org.apache.maven.continuum.installation.AlreadyExistsInstallationException;
@@ -30,7 +42,6 @@
 import org.apache.maven.continuum.profile.ProfileException;
 import org.apache.maven.continuum.profile.ProfileService;
 import org.apache.maven.continuum.store.ContinuumStoreException;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
 import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
 import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException;
 import org.codehaus.plexus.util.StringUtils;
@@ -38,36 +49,27 @@
 import org.codehaus.plexus.util.cli.CommandLineUtils;
 import org.codehaus.plexus.util.cli.Commandline;
 import org.codehaus.plexus.util.cli.StreamConsumer;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Properties;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.stereotype.Service;
 
 /**
  * @author <a href="mailto:olamy@codehaus.org">olamy</a>
  * @version $Id$
- * @plexus.component role="org.apache.maven.continuum.installation.InstallationService"
  * TODO use some cache mechanism to prevent always reading from store ?
  * @since 13 juin 07
+ * 
  */
+@Service("installationService")
 public class DefaultInstallationService
-    extends AbstractLogEnabled
     implements InstallationService, Initializable
 {
-    /**
-     * @plexus.requirement
-     */
+    private Logger log = LoggerFactory.getLogger( DefaultInstallationService.class );
+
+    @Resource
     private InstallationDao installationDao;
 
-    /**
-     * @plexus.requirement role-hint="default"
-     */
+    @Resource
     private ProfileService profileService;
 
     private Map<String, ExecutorConfigurator> typesValues;
@@ -439,7 +441,7 @@
         }
         catch ( CommandLineException e )
         {
-            getLogger().error(
+            log.error(
                 "fail to execute " + executable + " with arg " + executorConfigurator.getVersionArgument() );
             throw new InstallationException( e.getMessage(), e );
         }

Modified: continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/profile/DefaultProfileService.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/profile/DefaultProfileService.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/profile/DefaultProfileService.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/profile/DefaultProfileService.java Sun Jan 11 01:52:08 2009
@@ -19,6 +19,11 @@
  * under the License.
  */
 
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.annotation.Resource;
+
 import org.apache.commons.lang.StringUtils;
 import org.apache.continuum.dao.ProfileDao;
 import org.apache.maven.continuum.installation.InstallationService;
@@ -29,23 +34,19 @@
 import org.apache.maven.continuum.profile.ProfileService;
 import org.apache.maven.continuum.store.ContinuumObjectNotFoundException;
 import org.apache.maven.continuum.store.ContinuumStoreException;
-
-import java.util.ArrayList;
-import java.util.List;
+import org.springframework.stereotype.Service;
 
 /**
  * @author <a href="mailto:olamy@codehaus.org">olamy</a>
  * @version $Id$
- * @plexus.component role="org.apache.maven.continuum.profile.ProfileService"
  * TODO use some cache mechanism to prevent always reading from store ?
  * @since 15 juin 07
  */
+@Service("profileService")
 public class DefaultProfileService
     implements ProfileService
 {
-    /**
-     * @plexus.requirement
-     */
+    @Resource
     private ProfileDao profileDao;
 
     /**

Modified: continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/utils/ProjectSorter.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/utils/ProjectSorter.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/utils/ProjectSorter.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/utils/ProjectSorter.java Sun Jan 11 01:52:08 2009
@@ -21,10 +21,10 @@
 
 import org.apache.maven.continuum.model.project.Project;
 import org.apache.maven.continuum.model.project.ProjectDependency;
-import org.codehaus.plexus.logging.Logger;
 import org.codehaus.plexus.util.dag.CycleDetectedException;
 import org.codehaus.plexus.util.dag.DAG;
 import org.codehaus.plexus.util.dag.TopologicalSorter;
+import org.slf4j.Logger;
 
 import java.util.ArrayList;
 import java.util.Collection;

Modified: continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/utils/shell/DefaultShellCommandHelper.java Sun Jan 11 01:52:08 2009
@@ -19,34 +19,36 @@
  * under the License.
  */
 
+import java.io.File;
+import java.io.FileWriter;
+import java.io.Writer;
+import java.util.Arrays;
+import java.util.Iterator;
+import java.util.Map;
+
 import org.apache.maven.shared.release.ReleaseResult;
 import org.apache.maven.shared.release.exec.MavenExecutorException;
 import org.apache.maven.shared.release.exec.TeeConsumer;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.plexus.util.cli.CommandLineException;
 import org.codehaus.plexus.util.cli.CommandLineUtils;
 import org.codehaus.plexus.util.cli.Commandline;
 import org.codehaus.plexus.util.cli.StreamConsumer;
 import org.codehaus.plexus.util.cli.WriterStreamConsumer;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.Writer;
-import java.util.Arrays;
-import java.util.Iterator;
-import java.util.Map;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.stereotype.Service;
 
 /**
  * @author <a href="mailto:trygvis@inamo.no">Trygve Laugst&oslash;l</a>
  * @version $Id$
- * @plexus.component role="org.apache.continuum.utils.shell.ShellCommandHelper"
- * role-hint="default"
  */
+@Service("shellCommandHelper")
 public class DefaultShellCommandHelper
-    extends AbstractLogEnabled
     implements ShellCommandHelper
 {
+    private Logger log = LoggerFactory.getLogger( DefaultShellCommandHelper.class );
+
     // ----------------------------------------------------------------------
     // ShellCommandHelper Implementation
     // ----------------------------------------------------------------------
@@ -122,9 +124,9 @@
 
         Commandline cl = createCommandline( workingDirectory, executable, arguments, idCommand, environments );
 
-        getLogger().info( "Executing: " + cl );
-        getLogger().info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath() );
-        getLogger().debug( "EnvironmentVariables " + Arrays.asList( cl.getEnvironmentVariables() ) );
+        log.info( "Executing: " + cl );
+        log.info( "Working directory: " + cl.getWorkingDirectory().getAbsolutePath() );
+        log.debug( "EnvironmentVariables " + Arrays.asList( cl.getEnvironmentVariables() ) );
 
         // ----------------------------------------------------------------------
         //
@@ -203,7 +205,7 @@
         try
         {
     		relResult.appendInfo( "Executing: " + cl.toString() );
-    		getLogger().info( "Executing: " + cl.toString() );
+    		log.info( "Executing: " + cl.toString() );
 
     		int result = CommandLineUtils.executeCommandLine( cl, stdOut, stdErr );
 

Modified: continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/utils/shell/ShellCommandHelper.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/utils/shell/ShellCommandHelper.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/utils/shell/ShellCommandHelper.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/utils/shell/ShellCommandHelper.java Sun Jan 11 01:52:08 2009
@@ -27,7 +27,7 @@
 
 /**
  * @author <a href="mailto:trygvis@inamo.no">Trygve Laugst&oslash;l</a>
- * @version $Id: ShellCommandHelper.java 548732 2007-06-19 14:04:13Z evenisse $
+ * @version $Id$
  */
 public interface ShellCommandHelper
 {

Propchange: continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/utils/shell/ShellCommandHelper.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/continuum/utils/shell/ShellCommandHelper.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Modified: continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/configuration/DefaultConfigurationService.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/configuration/DefaultConfigurationService.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/configuration/DefaultConfigurationService.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/configuration/DefaultConfigurationService.java Sun Jan 11 01:52:08 2009
@@ -38,6 +38,8 @@
 import java.util.ArrayList;
 import java.util.List;
 
+import javax.annotation.Resource;
+
 /**
  * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
  * @version $Id$
@@ -54,19 +56,13 @@
      */
     private File applicationHome;
 
-    /**
-     * @plexus.requirement
-     */
+    @Resource
     private ScheduleDao scheduleDao;
 
-    /**
-     * @plexus.requirement
-     */
+    @Resource
     private SystemConfigurationDao systemConfigurationDao;
 
-    /**
-     * @plexus.requirement
-     */
+    @Resource
     private ContinuumConfiguration configuration;
 
     private GeneralConfiguration generalConfiguration;

Modified: continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/utils/ChrootJailWorkingDirectoryService.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/utils/ChrootJailWorkingDirectoryService.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/utils/ChrootJailWorkingDirectoryService.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/utils/ChrootJailWorkingDirectoryService.java Sun Jan 11 01:52:08 2009
@@ -20,24 +20,22 @@
  */
 
 import java.io.File;
+import javax.annotation.Resource;
 
 import org.apache.maven.continuum.configuration.ConfigurationService;
 import org.apache.maven.continuum.model.project.Project;
 import org.apache.maven.continuum.model.project.ProjectGroup;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
+import org.springframework.stereotype.Service;
 
 /**
  * @author <a href="mailto:carlos@apache.org">Carlos Sanchez</a>
  * @version $Id$
- * @plexus.component role="org.apache.maven.continuum.utils.WorkingDirectoryService" role-hint="chrootJail"
  */
+@Service("workingDirectoryService#chrootJail")
 public class ChrootJailWorkingDirectoryService
-    extends AbstractLogEnabled
     implements WorkingDirectoryService
 {
-    /**
-     * @plexus.requirement
-     */
+    @Resource
     private ConfigurationService configurationService;
 
     /**

Propchange: continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/utils/ChrootJailWorkingDirectoryService.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Modified: continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/utils/ContinuumUrlValidator.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/utils/ContinuumUrlValidator.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/utils/ContinuumUrlValidator.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/utils/ContinuumUrlValidator.java Sun Jan 11 01:52:08 2009
@@ -29,6 +29,7 @@
 import org.codehaus.plexus.configuration.PlexusConfiguration;
 import org.codehaus.plexus.configuration.PlexusConfigurationException;
 import org.codehaus.plexus.personality.plexus.lifecycle.phase.Configurable;
+import org.springframework.stereotype.Service;
 
 /**
  * @author <a href="mailto:olamy@apache.org">olamy</a>
@@ -37,6 +38,7 @@
  * @plexus.component role="org.apache.maven.continuum.utils.ContinuumUrlValidator"
  *   role-hint="continuumUrl"
  */
+@Service("continuumUrlValidator#continuumUrl")
 public class ContinuumUrlValidator
     implements Configurable
 {

Propchange: continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/utils/ContinuumUrlValidator.java
            ('svn:executable' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/utils/ContinuumUrlValidator.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-URL HeadURL Author LastChangedBy Date LastChangedDate Rev Revision LastChangedRevision Id
+Author Date Id Revision

Modified: continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/utils/DefaultWorkingDirectoryService.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/utils/DefaultWorkingDirectoryService.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/utils/DefaultWorkingDirectoryService.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/utils/DefaultWorkingDirectoryService.java Sun Jan 11 01:52:08 2009
@@ -21,21 +21,21 @@
 
 import org.apache.maven.continuum.configuration.ConfigurationService;
 import org.apache.maven.continuum.model.project.Project;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
+import org.springframework.stereotype.Service;
 
 import java.io.File;
 
+import javax.annotation.Resource;
+
 /**
  * @author <a href="mailto:trygvis@inamo.no">Trygve Laugst&oslash;l</a>
  * @version $Id$
  */
+@Service("workingDirectoryService")
 public class DefaultWorkingDirectoryService
-    extends AbstractLogEnabled
     implements WorkingDirectoryService
 {
-    /**
-     * @plexus.requirement
-     */
+    @Resource
     private ConfigurationService configurationService;
 
     public void setConfigurationService( ConfigurationService configurationService )

Propchange: continuum/branches/continuum-distributed-builds/continuum-commons/src/main/java/org/apache/maven/continuum/utils/DefaultWorkingDirectoryService.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-Id
+Author Date Id Revision

Modified: continuum/branches/continuum-distributed-builds/continuum-commons/src/main/resources/META-INF/spring-context.xml
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-commons/src/main/resources/META-INF/spring-context.xml?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-commons/src/main/resources/META-INF/spring-context.xml (original)
+++ continuum/branches/continuum-distributed-builds/continuum-commons/src/main/resources/META-INF/spring-context.xml Sun Jan 11 01:52:08 2009
@@ -20,17 +20,21 @@
   -->
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:context="http://www.springframework.org/schema/context"
        xsi:schemaLocation="http://www.springframework.org/schema/beans
-           http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+           http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+           http://www.springframework.org/schema/context 
+           http://www.springframework.org/schema/context/spring-context-2.5.xsd">
+
+  <context:annotation-config />
+  <context:component-scan 
+    base-package="org.apache.continuum.installation,org.apache.continuum.profile,
+                  org.apache.maven.continuum.configuration,org.apache.maven.continuum.utils,
+                  org.apache.continuum.utils.shell"/>
 
   <bean id="configurationService" class="org.apache.maven.continuum.configuration.DefaultConfigurationService"
         init-method="initialize">
     <property name="applicationHome" value="data"/>
-    <property name="scheduleDao" ref="scheduleDao"/>
-    <property name="systemConfigurationDao" ref="systemConfigurationDao"/>
-    <property name="configuration" ref="continuumConfiguration"/>
-  </bean>
-  <bean id="workingDirectoryService" class="org.apache.maven.continuum.utils.DefaultWorkingDirectoryService">
-    <property name="configurationService" ref="configurationService"/>
-  </bean>
+  </bean> 
+  <bean id="shellCommandHelper" class="org.apache.continuum.utils.shell.DefaultShellCommandHelper"/>  
 </beans>
\ No newline at end of file

Propchange: continuum/branches/continuum-distributed-builds/continuum-commons/src/test/resources/META-INF/continuum/continuum-configuration.xml
            ('svn:executable' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-commons/src/test/resources/META-INF/continuum/continuum-configuration.xml
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Propchange: continuum/branches/continuum-distributed-builds/continuum-commons/src/test/resources/conf/continuum.xml
            ('svn:executable' removed)

Propchange: continuum/branches/continuum-distributed-builds/continuum-commons/src/test/resources/conf/continuum.xml
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Jan 11 01:52:08 2009
@@ -1 +1 @@
-"Author Date Id Revision"
+Author Date Id Revision

Modified: continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/continuum/repository/DefaultRepositoryService.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/continuum/repository/DefaultRepositoryService.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/continuum/repository/DefaultRepositoryService.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/continuum/repository/DefaultRepositoryService.java Sun Jan 11 01:52:08 2009
@@ -29,7 +29,8 @@
 import org.apache.maven.continuum.model.project.ProjectGroup;
 import org.apache.maven.continuum.store.ContinuumObjectNotFoundException;
 import org.apache.maven.continuum.store.ContinuumStoreException;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import java.util.List;
 
@@ -42,9 +43,10 @@
  * @since 25 jul 07
  */
 public class DefaultRepositoryService
-    extends AbstractLogEnabled
     implements RepositoryService
 {
+    private Logger log = LoggerFactory.getLogger( DefaultRepositoryService.class );
+
     /**
      * @plexus.requirement
      */
@@ -91,7 +93,7 @@
 
             repository = localRepositoryDao.addLocalRepository( localRepository );
 
-            getLogger().info( "Added new local repository: " + repository.getName() );
+            log.info( "Added new local repository: " + repository.getName() );
         }
         catch ( ContinuumStoreException e )
         {
@@ -118,7 +120,7 @@
                 taskQueueManager.removeRepositoryFromPurgeQueue( repositoryId );
             }
 
-            getLogger().info( "Remove purge configurations of " + repository.getName() );
+            log.info( "Remove purge configurations of " + repository.getName() );
             removePurgeConfigurationsOfRepository( repositoryId );
 
             List<ProjectGroup> groups = projectGroupDao.getProjectGroupByRepository( repositoryId );
@@ -131,7 +133,7 @@
 
             localRepositoryDao.removeLocalRepository( repository );
 
-            getLogger().info( "Removed local repository: " + repository.getName() );
+            log.info( "Removed local repository: " + repository.getName() );
         }
         catch ( TaskQueueManagerException e )
         {
@@ -158,7 +160,7 @@
 
             localRepositoryDao.updateLocalRepository( localRepository );
 
-            getLogger().info( "Updated local repository: " + localRepository.getName() );
+            log.info( "Updated local repository: " + localRepository.getName() );
         }
         catch ( TaskQueueManagerException e )
         {

Modified: continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/continuum/taskqueue/manager/DefaultTaskQueueManager.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/continuum/taskqueue/manager/DefaultTaskQueueManager.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/continuum/taskqueue/manager/DefaultTaskQueueManager.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/continuum/taskqueue/manager/DefaultTaskQueueManager.java Sun Jan 11 01:52:08 2009
@@ -1,5 +1,24 @@
 package org.apache.continuum.taskqueue.manager;
 
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
@@ -24,22 +43,24 @@
 import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
 import org.codehaus.plexus.context.Context;
 import org.codehaus.plexus.context.ContextException;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
 import org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable;
 import org.codehaus.plexus.taskqueue.Task;
 import org.codehaus.plexus.taskqueue.TaskQueue;
 import org.codehaus.plexus.taskqueue.TaskQueueException;
 import org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor;
 import org.codehaus.plexus.util.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * @author <a href="mailto:ctan@apache.org">Maria Catherine Tan</a>
  * @plexus.component role="org.apache.continuum.taskqueue.manager.TaskQueueManager" role-hint="default"
  */
 public class DefaultTaskQueueManager
-    extends AbstractLogEnabled
     implements TaskQueueManager, Contextualizable
 {
+    private Logger log = LoggerFactory.getLogger( DefaultTaskQueueManager.class );
+
     /**
      * @plexus.requirement role-hint="build-project"
      */
@@ -106,23 +127,23 @@
             {
                 if ( ( (BuildProjectTask) currentTask ).getProjectId() == projectId )
                 {
-                    getLogger().info( "Cancelling task for project " + projectId );
+                    log.info( "Cancelling task for project " + projectId );
                     getBuildTaskQueueExecutor().cancelTask( currentTask );
                 }
                 else
                 {
-                    getLogger().warn( "Current task is not for the given projectId (" + projectId + "): "
+                    log.warn( "Current task is not for the given projectId (" + projectId + "): "
                                           + ( (BuildProjectTask) currentTask ).getProjectId() + "; not cancelling" );
                 }
             }
             else
             {
-                getLogger().warn( "Current task not a BuildProjectTask - not cancelling" );
+                log.warn( "Current task not a BuildProjectTask - not cancelling" );
             }
         }
         else
         {
-            getLogger().warn( "No task running - not cancelling" );
+            log.warn( "No task running - not cancelling" );
         }
     }
 
@@ -137,23 +158,23 @@
             {
                 if ( ( (CheckOutTask) task ).getProjectId() == projectId )
                 {
-                    getLogger().info( "Cancelling checkout for project " + projectId );
+                    log.info( "Cancelling checkout for project " + projectId );
                     return getCheckoutTaskQueueExecutor().cancelTask( task );
                 }
                 else
                 {
-                    getLogger().warn( "Current task is not for the given projectId (" + projectId + "): "
+                    log.warn( "Current task is not for the given projectId (" + projectId + "): "
                                           + ( (CheckOutTask) task ).getProjectId() + "; not cancelling checkout" );
                 }
             }
             else
             {
-                getLogger().warn( "Current task not a CheckOutTask - not cancelling checkout" );
+                log.warn( "Current task not a CheckOutTask - not cancelling checkout" );
             }
         }
         else
         {
-            getLogger().warn( "No task running - not cancelling checkout" );
+            log.warn( "No task running - not cancelling checkout" );
         }
         return false;
     }
@@ -167,17 +188,17 @@
         {
             if ( task instanceof BuildProjectTask )
             {
-                getLogger().info( "Cancelling current build task" );
+                log.info( "Cancelling current build task" );
                 return getBuildTaskQueueExecutor().cancelTask( task );
             }
             else
             {
-                getLogger().warn( "Current task not a BuildProjectTask - not cancelling" );
+                log.warn( "Current task not a BuildProjectTask - not cancelling" );
             }
         }
         else
         {
-            getLogger().warn( "No task running - not cancelling" );
+            log.warn( "No task running - not cancelling" );
         }
         return false;
     }
@@ -622,7 +643,7 @@
 
         for ( BuildProjectTask buildProjectTask : tasks )
         {
-            getLogger().info( "cancel build for project " + buildProjectTask.getProjectId() );
+            log.info( "cancel build for project " + buildProjectTask.getProjectId() );
         }
         if ( !tasks.isEmpty() )
         {

Propchange: continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/continuum/taskqueue/manager/DefaultTaskQueueManager.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/continuum/taskqueue/manager/DefaultTaskQueueManager.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

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=733441&r1=733440&r2=733441&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 Jan 11 01:52:08 2009
@@ -92,7 +92,6 @@
 import org.codehaus.plexus.action.ActionNotFoundException;
 import org.codehaus.plexus.context.Context;
 import org.codehaus.plexus.context.ContextException;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
 import org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable;
 import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
 import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException;
@@ -103,6 +102,8 @@
 import org.codehaus.plexus.util.FileUtils;
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.plexus.util.dag.CycleDetectedException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
@@ -111,9 +112,10 @@
  * @plexus.component role="org.apache.maven.continuum.Continuum" role-hint="default"
  */
 public class DefaultContinuum
-    extends AbstractLogEnabled
     implements Continuum, Contextualizable, Initializable, Startable
 {
+    private Logger log = LoggerFactory.getLogger( DefaultContinuum.class );
+
     /**
      * @plexus.requirement
      */
@@ -373,7 +375,7 @@
             }
         }
 
-        getLogger().info( "Remove project group " + projectGroup.getName() + "(" + projectGroup.getId() + ")" );
+        log.info( "Remove project group " + projectGroup.getName() + "(" + projectGroup.getId() + ")" );
 
         Map context = new HashMap();
         context.put( AbstractContinuumAction.KEY_PROJECT_GROUP_ID, new Integer( projectGroup.getId() ) );
@@ -416,7 +418,7 @@
                 context.put( AbstractContinuumAction.KEY_PROJECT_GROUP_ID, new Integer( new_pg.getId() ) );
                 executeAction( "add-assignable-roles", context );
 
-                getLogger().info( "Added new project group: " + new_pg.getName() );
+                log.info( "Added new project group: " + new_pg.getName() );
             }
             catch ( BuildDefinitionServiceException e )
             {
@@ -599,7 +601,7 @@
                 throw logAndCreateException( "Error while deleting project group release output directory.", e );
             }
 
-            getLogger().info( "Remove project " + project.getName() + "(" + projectId + ")" );
+            log.info( "Remove project " + project.getName() + "(" + projectId + ")" );
 
             try
             {
@@ -749,7 +751,7 @@
         }
         catch ( CycleDetectedException e )
         {
-            getLogger().warn( "Cycle detected while sorting projects for building, falling back to unsorted build." );
+            log.warn( "Cycle detected while sorting projects for building, falling back to unsorted build." );
 
             projectsList = getProjects();
         }
@@ -775,7 +777,7 @@
         }
         catch ( CycleDetectedException e )
         {
-            getLogger().warn( "Cycle detected while sorting projects for building, falling back to unsorted build." );
+            log.warn( "Cycle detected while sorting projects for building, falling back to unsorted build." );
 
             projectsList = getProjects();
         }
@@ -836,7 +838,7 @@
         }
         catch ( CycleDetectedException e )
         {
-            getLogger().warn( "Cycle detected while sorting projects for building, falling back to unsorted build." );
+            log.warn( "Cycle detected while sorting projects for building, falling back to unsorted build." );
 
             projectsList = getProjects();
         }
@@ -865,7 +867,7 @@
 
             if ( projectsMap == null || projectsMap.size() == 0 )
             {
-                getLogger().debug( "no builds attached to schedule" );
+                log.debug( "no builds attached to schedule" );
                 // We don't have projects attached to this schedule
                 return;
             }
@@ -878,7 +880,7 @@
         }
         catch ( CycleDetectedException e )
         {
-            getLogger().warn( "Cycle detected while sorting projects for building, falling back to unsorted build." );
+            log.warn( "Cycle detected while sorting projects for building, falling back to unsorted build." );
 
             projectsList = getProjects();
         }
@@ -1037,11 +1039,11 @@
         }
         catch ( ConfigurationException e )
         {
-            getLogger().info( "skip error during cleanup build files " + e.getMessage(), e );
+            log.info( "skip error during cleanup build files " + e.getMessage(), e );
         }
         catch ( IOException e )
         {
-            getLogger().info( "skip IOException during cleanup build files " + e.getMessage(), e );
+            log.info( "skip IOException during cleanup build files " + e.getMessage(), e );
         }
 
     }
@@ -1178,7 +1180,7 @@
             return new ArrayList<Project>();
         }
 
-        return ProjectSorter.getSortedProjects( projects, getLogger() );
+        return ProjectSorter.getSortedProjects( projects, log );
     }
 
     // ----------------------------------------------------------------------
@@ -1506,17 +1508,17 @@
         ContinuumProjectBuildingResult result = (ContinuumProjectBuildingResult) context
             .get( CreateProjectsFromMetadataAction.KEY_PROJECT_BUILDING_RESULT );
 
-        if ( getLogger().isInfoEnabled() )
+        if ( log.isInfoEnabled() )
         {
             if ( result.getProjects() != null )
             {
-                getLogger().info( "Created " + result.getProjects().size() + " projects." );
+                log.info( "Created " + result.getProjects().size() + " projects." );
             }
             if ( result.getProjectGroups() != null )
             {
-                getLogger().info( "Created " + result.getProjectGroups().size() + " project groups." );
+                log.info( "Created " + result.getProjectGroups().size() + " project groups." );
             }
-            getLogger().info( result.getErrors().size() + " errors." );
+            log.info( result.getErrors().size() + " errors." );
 
             // ----------------------------------------------------------------------
             // Look for any errors.
@@ -1524,8 +1526,8 @@
 
             if ( result.hasErrors() )
             {
-                getLogger().info( result.getErrors().size() + " errors during project add: " );
-                getLogger().info( result.getErrorsAsString() );
+                log.info( result.getErrors().size() + " errors during project add: " );
+                log.info( result.getErrorsAsString() );
                 return result;
             }
         }
@@ -1542,8 +1544,13 @@
 
         ProjectGroup projectGroup = (ProjectGroup) result.getProjectGroups().iterator().next();
 
+
         ProjectScmRoot projectScmRoot;
 
+
+        boolean projectGroupCreation = false;
+        
+
         try
         {
             if ( projectGroupId == -1 )
@@ -1554,12 +1561,12 @@
 
                     projectGroupId = projectGroup.getId();
 
-                    getLogger().info(
+                    log.info(
                         "Using existing project group with the group id: '" + projectGroup.getGroupId() + "'." );
                 }
                 catch ( ContinuumObjectNotFoundException e )
                 {
-                    getLogger().info(
+                    log.info(
                         "Creating project group with the group id: '" + projectGroup.getGroupId() + "'." );
 
                     Map pgContext = new HashMap();
@@ -1573,6 +1580,8 @@
                     executeAction( "store-project-group", pgContext );
 
                     projectGroupId = AbstractContinuumAction.getProjectGroupId( pgContext );
+                    
+                    projectGroupCreation = true;
                 }
             }
 
@@ -1631,6 +1640,14 @@
             {
                 context = new HashMap();
 
+                // CONTINUUM-1953 olamy : attached buildDefs from template here
+                // if no group creation 
+                if ( !projectGroupCreation && buildDefintionTemplateId > 0 )
+                {
+                    buildDefinitionService.addTemplateInProject( buildDefintionTemplateId, projectDao
+                        .getProject( project.getId() ) );
+                }                
+                
                 context.put( AbstractContinuumAction.KEY_UNVALIDATED_PROJECT, project );
                 //
                 //            executeAction( "validate-project", context );
@@ -1656,6 +1673,10 @@
                 executeAction( "add-project-to-checkout-queue", context );
             }
         }
+        catch ( BuildDefinitionServiceException e )
+        {
+            throw new ContinuumException( "Error attaching buildDefintionTemplate to project ", e );
+        }
         catch ( ContinuumStoreException e )
         {
             throw new ContinuumException( "Error adding projects from modules", e );
@@ -2268,7 +2289,7 @@
             }
             catch ( SchedulesActivationException e )
             {
-                getLogger().error( "Can't unactivate schedule. You need to restart Continuum.", e );
+                log.error( "Can't unactivate schedule. You need to restart Continuum.", e );
             }
         }
     }
@@ -2302,7 +2323,7 @@
         }
         catch ( SchedulesActivationException e )
         {
-            getLogger().error( "Can't unactivate the schedule. You need to restart Continuum.", e );
+            log.error( "Can't unactivate the schedule. You need to restart Continuum.", e );
         }
 
         try
@@ -2311,7 +2332,7 @@
         }
         catch ( Exception e )
         {
-            getLogger().error( "Can't remove the schedule.", e );
+            log.error( "Can't remove the schedule.", e );
 
             try
             {
@@ -2319,7 +2340,7 @@
             }
             catch ( SchedulesActivationException sae )
             {
-                getLogger().error( "Can't reactivate the schedule. You need to restart Continuum.", e );
+                log.error( "Can't reactivate the schedule. You need to restart Continuum.", e );
             }
             throw new ContinuumException( "Can't remove the schedule", e );
         }
@@ -2469,7 +2490,7 @@
     public void initialize()
         throws InitializationException
     {
-        getLogger().info( "Initializing Continuum." );
+        log.info( "Initializing Continuum." );
 
         File wdFile = new File( workingDirectory );
 
@@ -2490,7 +2511,7 @@
             }
         }
 
-        getLogger().info( "Showing all groups:" );
+        log.info( "Showing all groups:" );
         try
         {
             for ( ProjectGroup group : projectGroupDao.getAllProjectGroups() )
@@ -2503,7 +2524,7 @@
             throw new InitializationException( "Error while creating project scm root for the project group", e );
         }
 
-        getLogger().info( "Showing all projects: " );
+        log.info( "Showing all projects: " );
 
         for ( Project project : projectDao.getAllProjectsByNameWithBuildDetails() )
         {
@@ -2535,7 +2556,7 @@
 
                 try
                 {
-                    getLogger().info( "Fix project state for project " + project.getId() + ":" + project.getName() +
+                    log.info( "Fix project state for project " + project.getId() + ":" + project.getName() +
                         ":" + project.getVersion() );
 
                     projectDao.updateProject( project );
@@ -2544,7 +2565,7 @@
 
                     if ( state == p.getState() )
                     {
-                        getLogger().info( "Can't fix the project state." );
+                        log.info( "Can't fix the project state." );
                     }
                 }
                 catch ( ContinuumStoreException e )
@@ -2553,7 +2574,7 @@
                 }
             }
 
-            getLogger().info( " " + project.getId() + ":" + project.getName() + ":" + project.getVersion() + ":" +
+            log.info( " " + project.getId() + ":" + project.getName() + ":" + project.getVersion() + ":" +
                 project.getExecutorId() );
         }
 
@@ -2567,7 +2588,7 @@
 
                 try
                 {
-                    getLogger().info( "Fix state for projectScmRoot " + projectScmRoot.getScmRootAddress() );
+                    log.info( "Fix state for projectScmRoot " + projectScmRoot.getScmRootAddress() );
                     
                     projectScmRootDao.updateProjectScmRoot( projectScmRoot );
                 }
@@ -2622,7 +2643,7 @@
         catch ( SchedulesActivationException e )
         {
             // We don't throw an exception here, so users will can modify schedules in interface instead of database
-            getLogger().error( "Error activating schedules.", e );
+            log.error( "Error activating schedules.", e );
         }
     }
 
@@ -2671,7 +2692,7 @@
         }
         catch ( Exception e )
         {
-            getLogger().info( "Error storing the Continuum configuration.", e );
+            log.info( "Error storing the Continuum configuration.", e );
         }
 
         closeStore();
@@ -2716,7 +2737,7 @@
         }
         catch ( Exception e )
         {
-            getLogger().info( "exception", e );
+            log.info( "exception", e );
             throw new ContinuumException( "Error while executing the action '" + actionName + "'.", e );
         }
     }
@@ -2732,7 +2753,7 @@
             return new ContinuumException( "No such object.", cause );
         }
 
-        getLogger().error( message, cause );
+        log.error( message, cause );
 
         return new ContinuumException( message, cause );
     }
@@ -2964,7 +2985,7 @@
 
     private void startMessage()
     {
-        getLogger().info( "Starting Continuum." );
+        log.info( "Starting Continuum." );
 
         // ----------------------------------------------------------------------
         //
@@ -2972,27 +2993,27 @@
 
         String banner = StringUtils.repeat( "-", getVersion().length() );
 
-        getLogger().info( "" );
-        getLogger().info( "" );
-        getLogger().info( "< Continuum " + getVersion() + " started! >" );
-        getLogger().info( "-----------------------" + banner );
-        getLogger().info( "       \\   ^__^" );
-        getLogger().info( "        \\  (oo)\\_______" );
-        getLogger().info( "           (__)\\       )\\/\\" );
-        getLogger().info( "               ||----w |" );
-        getLogger().info( "               ||     ||" );
-        getLogger().info( "" );
-        getLogger().info( "" );
+        log.info( "" );
+        log.info( "" );
+        log.info( "< Continuum " + getVersion() + " started! >" );
+        log.info( "-----------------------" + banner );
+        log.info( "       \\   ^__^" );
+        log.info( "        \\  (oo)\\_______" );
+        log.info( "           (__)\\       )\\/\\" );
+        log.info( "               ||----w |" );
+        log.info( "               ||     ||" );
+        log.info( "" );
+        log.info( "" );
     }
 
     private void stopMessage()
     {
         // Yes dorothy, this can happen!
-        if ( getLogger() != null )
+        if ( log != null )
         {
-            getLogger().info( "Stopping Continuum." );
+            log.info( "Stopping Continuum." );
 
-            getLogger().info( "Continuum stopped." );
+            log.info( "Continuum stopped." );
         }
     }
 
@@ -3096,7 +3117,7 @@
         }
         catch ( ConfigurationException e )
         {
-            getLogger().info( "skip error during cleanup release files " + e.getMessage(), e );
+            log.info( "skip error during cleanup release files " + e.getMessage(), e );
         }
     }
 
@@ -3262,24 +3283,24 @@
                 }
                 catch ( ContinuumObjectNotFoundException e )
                 {
-                    getLogger().debug( e.getMessage() );
+                    log.debug( e.getMessage() );
                 }
                 catch ( ContinuumStoreException e )
                 {
-                    getLogger().debug( e.getMessage() );
+                    log.debug( e.getMessage() );
                 }
 
                 if ( projectDefaultBD != null )
                 {
                     buildDefId = projectDefaultBD.getId();
-                    getLogger().debug( "Project " + project.getId() +
+                    log.debug( "Project " + project.getId() +
                         " has own default build definition, will use it instead of group's." );
                 }
             }
 
             if ( buildDefId == -1 )
             {
-                getLogger().info( "Project " + projectId +
+                log.info( "Project " + projectId +
                     " don't have a default build definition defined in the project or project group, will not be included in group prepare." );
                 continue;
             }

Modified: continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/maven/continuum/build/settings/DefaultSchedulesActivator.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/maven/continuum/build/settings/DefaultSchedulesActivator.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/maven/continuum/build/settings/DefaultSchedulesActivator.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/maven/continuum/build/settings/DefaultSchedulesActivator.java Sun Jan 11 01:52:08 2009
@@ -32,7 +32,6 @@
 import org.apache.maven.continuum.scheduler.ContinuumPurgeJob;
 import org.apache.maven.continuum.scheduler.ContinuumSchedulerConstants;
 import org.apache.maven.continuum.store.ContinuumStoreException;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
 import org.codehaus.plexus.scheduler.AbstractJob;
 import org.codehaus.plexus.scheduler.Scheduler;
 import org.codehaus.plexus.util.StringUtils;
@@ -40,6 +39,8 @@
 import org.quartz.JobDataMap;
 import org.quartz.JobDetail;
 import org.quartz.SchedulerException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import java.text.ParseException;
 import java.util.Collection;
@@ -52,9 +53,10 @@
  * @plexus.component role="org.apache.maven.continuum.build.settings.SchedulesActivator"
  */
 public class DefaultSchedulesActivator
-    extends AbstractLogEnabled
     implements SchedulesActivator
 {
+    private Logger log = LoggerFactory.getLogger( DefaultSchedulesActivator.class );
+
     /**
      * @plexus.requirement
      */
@@ -86,7 +88,7 @@
     public void activateSchedules( Continuum continuum )
         throws SchedulesActivationException
     {
-        getLogger().info( "Activating schedules ..." );
+        log.info( "Activating schedules ..." );
 
         Collection<Schedule> schedules = scheduleDao.getAllSchedulesByName();
 
@@ -96,7 +98,7 @@
             {
                 // TODO: this can possibly be removed but it's here now to
                 // weed out any bugs
-                getLogger().info( "Not scheduling " + schedule.getName() );
+                log.info( "Not scheduling " + schedule.getName() );
 
                 continue;
             }
@@ -116,7 +118,7 @@
             }
             catch ( SchedulesActivationException e )
             {
-                getLogger().error( "Can't activate schedule '" + schedule.getName() + "'", e );
+                log.error( "Can't activate schedule '" + schedule.getName() + "'", e );
 
                 schedule.setActive( false );
 
@@ -136,7 +138,7 @@
     public void activateSchedule( Schedule schedule, Continuum continuum )
         throws SchedulesActivationException
     {
-        getLogger().info( "Activating schedule " + schedule.getName() );
+        log.info( "Activating schedule " + schedule.getName() );
 
         if ( isScheduleFromBuildJob( schedule ) )
         {
@@ -152,7 +154,7 @@
     public void unactivateSchedule( Schedule schedule, Continuum continuum )
         throws SchedulesActivationException
     {
-        getLogger().info( "Deactivating schedule " + schedule.getName() );
+        log.info( "Deactivating schedule " + schedule.getName() );
 
         unschedule( schedule, continuum );
     }
@@ -162,7 +164,7 @@
     {
         if ( !schedule.isActive() )
         {
-            getLogger().info( "Schedule \"" + schedule.getName() + "\" is disabled." );
+            log.info( "Schedule \"" + schedule.getName() + "\" is disabled." );
 
             return;
         }
@@ -171,7 +173,7 @@
 
         dataMap.put( "continuum", continuum );
 
-        dataMap.put( AbstractJob.LOGGER, getLogger() );
+        dataMap.put( AbstractJob.LOGGER, log );
 
         dataMap.put( ContinuumSchedulerConstants.SCHEDULE, schedule );
 
@@ -208,7 +210,7 @@
         {
             scheduler.scheduleJob( jobDetail, trigger );
 
-            getLogger().info( trigger.getName() + ": next fire time ->" + trigger.getNextFireTime() );
+            log.info( trigger.getName() + ": next fire time ->" + trigger.getNextFireTime() );
         }
         catch ( SchedulerException e )
         {
@@ -223,7 +225,7 @@
         {
             if ( schedule.isActive() )
             {
-                getLogger().info( "Stopping active schedule \"" + schedule.getName() + "\"." );
+                log.info( "Stopping active schedule \"" + schedule.getName() + "\"." );
 
                 scheduler.interruptSchedule( schedule.getName(), org.quartz.Scheduler.DEFAULT_GROUP );
             }

Modified: continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/BuildProjectTaskExecutor.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/BuildProjectTaskExecutor.java?rev=733441&r1=733440&r2=733441&view=diff
==============================================================================
--- continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/BuildProjectTaskExecutor.java (original)
+++ continuum/branches/continuum-distributed-builds/continuum-core/src/main/java/org/apache/maven/continuum/buildcontroller/BuildProjectTaskExecutor.java Sun Jan 11 01:52:08 2009
@@ -20,7 +20,6 @@
  */
 
 import org.apache.continuum.taskqueue.BuildProjectTask;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
 import org.codehaus.plexus.taskqueue.Task;
 import org.codehaus.plexus.taskqueue.execution.TaskExecutionException;
 import org.codehaus.plexus.taskqueue.execution.TaskExecutor;
@@ -30,7 +29,6 @@
  * @version $Id$
  */
 public class BuildProjectTaskExecutor
-    extends AbstractLogEnabled
     implements TaskExecutor
 {
     /**



Mime
View raw message