continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r413480 - in /maven/continuum/trunk/continuum-release: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/maven/ src/main/java/org/apache/maven/continuum/ src/main/java/org/apache/maven/co...
Date Sun, 11 Jun 2006 17:14:44 GMT
Author: jvanzyl
Date: Sun Jun 11 10:14:43 2006
New Revision: 413480

URL: http://svn.apache.org/viewvc?rev=413480&view=rev
Log:
CONTINUUM-727: Adding a continuum-release module that Jeremy can work with initially so that
it can perform official releases.

Added:
    maven/continuum/trunk/continuum-release/
    maven/continuum/trunk/continuum-release/pom.xml   (with props)
    maven/continuum/trunk/continuum-release/src/
    maven/continuum/trunk/continuum-release/src/main/
    maven/continuum/trunk/continuum-release/src/main/java/
    maven/continuum/trunk/continuum-release/src/main/java/org/
    maven/continuum/trunk/continuum-release/src/main/java/org/apache/
    maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/
    maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/
    maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/
    maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseException.java
  (with props)
    maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManager.java
  (with props)
    maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java
  (with props)
    maven/continuum/trunk/continuum-release/src/main/resources/
    maven/continuum/trunk/continuum-release/src/main/resources/META-INF/
    maven/continuum/trunk/continuum-release/src/main/resources/META-INF/plexus/
    maven/continuum/trunk/continuum-release/src/main/resources/META-INF/plexus/components.xml
  (with props)
    maven/continuum/trunk/continuum-release/src/test/
    maven/continuum/trunk/continuum-release/src/test/java/
    maven/continuum/trunk/continuum-release/src/test/java/org/
    maven/continuum/trunk/continuum-release/src/test/java/org/apache/
    maven/continuum/trunk/continuum-release/src/test/java/org/apache/maven/
    maven/continuum/trunk/continuum-release/src/test/java/org/apache/maven/continuum/
    maven/continuum/trunk/continuum-release/src/test/java/org/apache/maven/continuum/ContinuumReleaseManagerTest.java
  (with props)

Added: maven/continuum/trunk/continuum-release/pom.xml
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-release/pom.xml?rev=413480&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-release/pom.xml (added)
+++ maven/continuum/trunk/continuum-release/pom.xml Sun Jun 11 10:14:43 2006
@@ -0,0 +1,22 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <artifactId>continuum-parent</artifactId>
+    <groupId>org.apache.maven.continuum</groupId>
+    <version>1.1-SNAPSHOT</version>
+  </parent>
+  <artifactId>continuum-release</artifactId>
+  <name>Continuum Release System</name>
+  <description>
+    Take a release descriptor created by the Maven Release Plugin and use that to perform
the actual
+    release.
+  </description>
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.plugins</groupId>
+      <artifactId>maven-release-plugin</artifactId>
+      <version>2.0-beta-5-SNAPSHOT</version>
+    </dependency>
+  </dependencies>
+</project>

Propchange: maven/continuum/trunk/continuum-release/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-release/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseException.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseException.java?rev=413480&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseException.java
(added)
+++ maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseException.java
Sun Jun 11 10:14:43 2006
@@ -0,0 +1,24 @@
+package org.apache.maven.continuum.release;
+
+/**
+ * @author Jason van Zyl
+ */
+public class ContinuumReleaseException
+    extends Exception
+{
+    public ContinuumReleaseException( String id )
+    {
+        super( id );
+    }
+
+    public ContinuumReleaseException( String id,
+                                      Throwable throwable )
+    {
+        super( id, throwable );
+    }
+
+    public ContinuumReleaseException( Throwable throwable )
+    {
+        super( throwable );
+    }
+}

Propchange: maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseException.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManager.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManager.java?rev=413480&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManager.java
(added)
+++ maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManager.java
Sun Jun 11 10:14:43 2006
@@ -0,0 +1,26 @@
+package org.apache.maven.continuum.release;
+
+import org.apache.maven.plugins.release.model.Release;
+
+/**
+ * The Continuum Release Manager is responsible for performing releases based on a release
descriptor
+ * that has been received by the Maven Release Plugin.
+ *
+ * @author Jason van Zyl
+ */
+//TODO:JW You can probably test this in isolation and then we can add methods to the main
Continuum API for
+//        releasing. The Core Continuum component would then have a dependency on this component
and just delegate
+//        to this component for release management.
+public interface ContinuumReleaseManager
+{
+    String ROLE = ContinuumReleaseManager.class.getName();
+
+    /**
+     * Perform a release based on a release descriptor received by the Maven Release Plugin.
+     *
+     * @param release
+     * @throws ContinuumReleaseException
+     */
+    void release( Release release )
+        throws ContinuumReleaseException;
+}

Propchange: maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManager.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/ContinuumReleaseManager.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java?rev=413480&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java
(added)
+++ maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java
Sun Jun 11 10:14:43 2006
@@ -0,0 +1,20 @@
+package org.apache.maven.continuum.release;
+
+import org.apache.maven.plugins.release.model.Release;
+import org.apache.maven.plugins.release.ReleaseManager;
+
+/**
+ * @author Jason van Zyl
+ */
+public class DefaultContinuumReleaseManager
+    implements ContinuumReleaseManager
+{
+    private ReleaseManager releaseManager;
+
+    public void release( Release release )
+        throws ContinuumReleaseException
+    {
+        //TODO:JW The release manager should be taught to use the release descriptor for
the release perform.
+        //releaseManager.perform( );
+    }
+}

Propchange: maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/continuum/trunk/continuum-release/src/main/resources/META-INF/plexus/components.xml
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-release/src/main/resources/META-INF/plexus/components.xml?rev=413480&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-release/src/main/resources/META-INF/plexus/components.xml
(added)
+++ maven/continuum/trunk/continuum-release/src/main/resources/META-INF/plexus/components.xml
Sun Jun 11 10:14:43 2006
@@ -0,0 +1,14 @@
+<component-set>
+  <components>
+    <component>
+      <role>org.apache.maven.continuum.release.ContinuumReleaseManager</role>
+      <role-hint>default</role-hint>
+      <implementation>org.apache.maven.continuum.release.DefaultContinuumReleaseManager</implementation>
+      <requirements>
+        <requirement>
+          <role>org.apache.maven.plugins.release.ReleaseManager</role>      
   
+        </requirement>
+      </requirements>
+    </component>
+  </components>
+</component-set>
\ No newline at end of file

Propchange: maven/continuum/trunk/continuum-release/src/main/resources/META-INF/plexus/components.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-release/src/main/resources/META-INF/plexus/components.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/continuum/trunk/continuum-release/src/test/java/org/apache/maven/continuum/ContinuumReleaseManagerTest.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-release/src/test/java/org/apache/maven/continuum/ContinuumReleaseManagerTest.java?rev=413480&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-release/src/test/java/org/apache/maven/continuum/ContinuumReleaseManagerTest.java
(added)
+++ maven/continuum/trunk/continuum-release/src/test/java/org/apache/maven/continuum/ContinuumReleaseManagerTest.java
Sun Jun 11 10:14:43 2006
@@ -0,0 +1,22 @@
+package org.apache.maven.continuum;
+
+import org.codehaus.plexus.PlexusTestCase;
+import org.apache.maven.continuum.release.ContinuumReleaseManager;
+import org.apache.maven.plugins.release.model.Release;
+
+/**
+ * @author Jason van Zyl
+ */
+public class ContinuumReleaseManagerTest
+    extends PlexusTestCase
+{
+    public void testContinuumReleaseManager()
+        throws Exception
+    {
+        ContinuumReleaseManager crm = (ContinuumReleaseManager) lookup( ContinuumReleaseManager.ROLE,
"default" );
+
+        Release r = new Release();
+
+        crm.release( r );
+    }
+}

Propchange: maven/continuum/trunk/continuum-release/src/test/java/org/apache/maven/continuum/ContinuumReleaseManagerTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-release/src/test/java/org/apache/maven/continuum/ContinuumReleaseManagerTest.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"



Mime
View raw message