continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r331286 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
Date Mon, 07 Nov 2005 15:50:13 GMT
Author: evenisse
Date: Mon Nov  7 07:50:10 2005
New Revision: 331286

URL: http://svn.apache.org/viewcvs?rev=331286&view=rev
Log:
Fix api usage with new maven-scm apis

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

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=331286&r1=331285&r2=331286&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
Mon Nov  7 07:50:10 2005
@@ -335,13 +335,20 @@
 
                 change.setDate( scmChangeSet.getDate().getTime() );
 
-                if ( scmChangeSet.getFile() != null )
+                if ( scmChangeSet.getFiles() != null )
                 {
-                    ChangeFile file = new ChangeFile();
+                    for ( Iterator i = scmChangeSet.getFiles().iterator(); i.hasNext(); )
+                    {
+                        org.apache.maven.scm.ChangeFile f = (org.apache.maven.scm.ChangeFile)
i.next();
 
-                    file.setName( scmChangeSet.getFile().getName() );
+                        ChangeFile file = new ChangeFile();
 
-                    file.setRevision( scmChangeSet.getFile().getRevision() );
+                        file.setName( f.getName() );
+
+                        file.setRevision( f.getRevision() );
+
+                        change.addFile( file );
+                    }
                 }
 
                 result.addChange( change );



Mime
View raw message