continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r389260 - /maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java
Date Mon, 27 Mar 2006 20:37:24 GMT
Author: evenisse
Date: Mon Mar 27 12:37:22 2006
New Revision: 389260

URL: http://svn.apache.org/viewcvs?rev=389260&view=rev
Log:
Reload always dependencies

Modified:
    maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java

Modified: maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java
URL: http://svn.apache.org/viewcvs/maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java?rev=389260&r1=389259&r2=389260&view=diff
==============================================================================
--- maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java
(original)
+++ maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m2/DefaultMavenBuilderHelper.java
Mon Mar 27 12:37:22 2006
@@ -218,27 +218,24 @@
         // Dependencies
         // ----------------------------------------------------------------------
 
-        if ( mavenProject.getDependencies() != null )
-        {
-            List dependencies = new ArrayList();
-
-            for ( Iterator i = mavenProject.getDependencies().iterator(); i.hasNext(); )
-            {
-                Dependency dependency = (Dependency) i.next();
+        List dependencies = new ArrayList();
 
-                ProjectDependency cd = new ProjectDependency();
+        for ( Iterator i = mavenProject.getDependencies().iterator(); i.hasNext(); )
+        {
+            Dependency dependency = (Dependency) i.next();
 
-                cd.setGroupId( dependency.getGroupId() );
+            ProjectDependency cd = new ProjectDependency();
 
-                cd.setArtifactId( dependency.getArtifactId() );
+            cd.setGroupId( dependency.getGroupId() );
 
-                cd.setVersion( dependency.getVersion() );
+            cd.setArtifactId( dependency.getArtifactId() );
 
-                dependencies.add( cd );
-            }
+            cd.setVersion( dependency.getVersion() );
 
-            continuumProject.setDependencies( dependencies );
+            dependencies.add( cd );
         }
+
+        continuumProject.setDependencies( dependencies );
 
         // ----------------------------------------------------------------------
         // Notifiers



Mime
View raw message