continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r383547 - in /maven/continuum/branches/continuum-1.0.x/continuum-core: pom.xml src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java src/main/resources/META-INF/plexus/components.xml
Date Mon, 06 Mar 2006 14:32:23 GMT
Author: evenisse
Date: Mon Mar  6 06:32:10 2006
New Revision: 383547

URL: http://svn.apache.org/viewcvs?rev=383547&view=rev
Log:
[CONTINUUM-615] Allow to add properties to maven-scm via DefaultContinuumScm.
Add starteam property for deleting local files
Submitted by Dan Tran

Modified:
    maven/continuum/branches/continuum-1.0.x/continuum-core/pom.xml
    maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
    maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/resources/META-INF/plexus/components.xml

Modified: maven/continuum/branches/continuum-1.0.x/continuum-core/pom.xml
URL: http://svn.apache.org/viewcvs/maven/continuum/branches/continuum-1.0.x/continuum-core/pom.xml?rev=383547&r1=383546&r2=383547&view=diff
==============================================================================
--- maven/continuum/branches/continuum-1.0.x/continuum-core/pom.xml (original)
+++ maven/continuum/branches/continuum-1.0.x/continuum-core/pom.xml Mon Mar  6 06:32:10 2006
@@ -24,13 +24,6 @@
       <artifactId>jpox</artifactId>
     </dependency>
     <dependency>
-      <groupId>postgresql</groupId>
-      <artifactId>postgresql</artifactId>
-      <version>7.4</version>
-      <classifier>jdbc3</classifier>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
       <groupId>org.codehaus.plexus</groupId>
       <artifactId>plexus-mail-sender-api</artifactId>
     </dependency>

Modified: maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
URL: http://svn.apache.org/viewcvs/maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java?rev=383547&r1=383546&r2=383547&view=diff
==============================================================================
--- maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
(original)
+++ maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
Mon Mar  6 06:32:10 2006
@@ -39,8 +39,10 @@
 import java.io.File;
 import java.io.IOException;
 import java.util.Date;
+import java.util.Enumeration;
 import java.util.Iterator;
 import java.util.List;
+import java.util.Properties;
 
 /**
  * @author <a href="mailto:trygvis@inamo.no">Trygve Laugst&oslash;l</a>
@@ -65,6 +67,12 @@
      */
     private ContinuumStore store;
 
+    /**
+     * @plexus.configuration
+     */
+    private Properties updateProperties;
+
+    
     // ----------------------------------------------------------------------
     // ContinuumScm implementation
     // ----------------------------------------------------------------------
@@ -207,6 +215,19 @@
                     workingDirectory.getAbsolutePath() + ")." );
             }
 
+            //Some SCM provider requires additional system properties during update
+            if ( updateProperties != null )
+            {
+                Enumeration propertyKeys = updateProperties.propertyNames();
+
+                while ( propertyKeys.hasMoreElements() )
+                {
+                    String key = (String) propertyKeys.nextElement();
+
+                    System.setProperty( key, updateProperties.getProperty( key ) );
+                }
+            }
+            
             ScmRepository repository = getScmRepositorty( project );
 
             ScmResult result;

Modified: maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/resources/META-INF/plexus/components.xml
URL: http://svn.apache.org/viewcvs/maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/resources/META-INF/plexus/components.xml?rev=383547&r1=383546&r2=383547&view=diff
==============================================================================
--- maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/resources/META-INF/plexus/components.xml
(original)
+++ maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/resources/META-INF/plexus/components.xml
Mon Mar  6 06:32:10 2006
@@ -166,6 +166,15 @@
           <role>org.apache.maven.continuum.store.ContinuumStore</role>
         </requirement>
       </requirements>
+      <configuration>
+        <updateProperties>
+          <property>
+            <name>maven.scm.starteam.deleteLocal</name>
+            <value>true</value>
+          </property>
+        </updateProperties>
+      </configuration>
+      
     </component>
 
     <component>



Mime
View raw message