continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r216274 - in /maven/continuum/trunk: continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java continuum-model/src/main/resources/continuum.mdo
Date Wed, 13 Jul 2005 21:58:28 GMT
Author: evenisse
Date: Wed Jul 13 14:58:27 2005
New Revision: 216274

URL: http://svn.apache.org/viewcvs?rev=216274&view=rev
Log:
[CONTINUUM-222]. Capture new information provided by Maven SCM in UpdateScmResult.

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
    maven/continuum/trunk/continuum-model/src/main/resources/continuum.mdo

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java?rev=216274&r1=216273&r2=216274&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
Wed Jul 13 14:58:27 2005
@@ -225,6 +225,33 @@
             }
         }
 
+        if ( scmResult.getChanges() != null )
+        {
+            for ( Iterator it = scmResult.getChanges().iterator(); it.hasNext(); )
+            {
+                org.apache.maven.scm.ChangeSet changeSet = (org.apache.maven.scm.ChangeSet)
it.next();
+
+                ChangeSet change = new ChangeSet();
+
+                change.setAuthor( changeSet.getAuthor() );
+
+                change.setComment( changeSet.getComment() );
+
+                change.setDate( changeSet.getDate() );
+
+                if ( changeSet.getFile() != null )
+                {
+                    ChangeFile file = new ChangeFile();
+
+                    file.setName( changeSet.getFile().getName() );
+
+                    file.setRevision( changeSet.getFile().getRevision() );
+                }
+
+                result.addChange( change );
+            }
+        }
+
         return result;
     }
 }

Modified: maven/continuum/trunk/continuum-model/src/main/resources/continuum.mdo
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-model/src/main/resources/continuum.mdo?rev=216274&r1=216273&r2=216274&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-model/src/main/resources/continuum.mdo (original)
+++ maven/continuum/trunk/continuum-model/src/main/resources/continuum.mdo Wed Jul 13 14:58:27
2005
@@ -386,6 +386,14 @@
             <multiplicity>*</multiplicity>
           </association>
         </field>
+        <field>
+          <name>changes</name>
+          <version>1.0.0</version>
+          <association stash.part="true">
+            <type>ChangeSet</type>
+            <multiplicity>*</multiplicity>
+          </association>
+        </field>
       </fields>
     </class>
 
@@ -406,6 +414,54 @@
                   <type>ScmFileStatus</type>
                 </field>
         -->
+      </fields>
+    </class>
+
+    <class>
+      <name>ChangeSet</name>
+      <packageName>org.apache.maven.continuum.scm</packageName>
+      <version>1.0.0</version>
+      <fields>
+        <field>
+          <name>author</name>
+          <version>1.0.0</version>
+          <type>String</type>
+        </field>
+        <field>
+          <name>comment</name>
+          <version>1.0.0</version>
+          <type>String</type>
+        </field>
+        <field>
+          <name>date</name>
+          <version>1.0.0</version>
+          <type>Date</type>
+        </field>
+        <field>
+          <name>file</name>
+          <version>1.0.0</version>
+          <association stash.part="true">
+            <type>ChangeFile</type>
+          </association>
+        </field>
+      </fields>
+    </class>
+
+    <class>
+      <name>ChangeFile</name>
+      <packageName>org.apache.maven.continuum.scm</packageName>
+      <version>1.0.0</version>
+      <fields>
+        <field>
+          <name>name</name>
+          <version>1.0.0</version>
+          <type>String</type>
+        </field>
+        <field>
+          <name>revision</name>
+          <version>1.0.0</version>
+          <type>String</type>
+        </field>
       </fields>
     </class>
   </classes>



Mime
View raw message