continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r279667 - /maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/updater/DefaultUpdaterManager.java
Date Thu, 08 Sep 2005 22:54:34 GMT
Author: evenisse
Date: Thu Sep  8 15:54:30 2005
New Revision: 279667

URL: http://svn.apache.org/viewcvs?rev=279667&view=rev
Log:
download file for all versions

Modified:
    maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/updater/DefaultUpdaterManager.java

Modified: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/updater/DefaultUpdaterManager.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/updater/DefaultUpdaterManager.java?rev=279667&r1=279666&r2=279667&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/updater/DefaultUpdaterManager.java
(original)
+++ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/updater/DefaultUpdaterManager.java
Thu Sep  8 15:54:30 2005
@@ -63,8 +63,6 @@
 
     private PlexusContainer container;
 
-    private File newContinuumFile;
-
     public void execute( String userVersion, File continuumHome )
         throws UpdaterException
     {
@@ -89,8 +87,6 @@
 
         boolean versionFounded = false;
 
-        newContinuumFile = downloadContinuum( model, continuumHome );
-
         for( Iterator i = model.getVersions().iterator(); i.hasNext(); )
         {
             Version v = (Version) i.next();
@@ -102,7 +98,7 @@
 
             if ( versionFounded && v.getComponentRole() != null )
             {
-                update( userVersion, v, continuumHome );
+                update( userVersion, v, continuumHome, model );
             }
         }
 
@@ -169,7 +165,7 @@
         return downloadedFile;
     }
 
-    private void update( String userVersion, Version version, File continuumHome )
+    private void update( String userVersion, Version version, File continuumHome, UpdaterModel
model )
         throws UpdaterException
     {
         getLogger().info( "************************************************************************"
);
@@ -188,10 +184,10 @@
             if ( userVersion.equals( version.getName() ) )
             {
                 backup( continuumHome, userVersion );
-
-                updateContinuumFiles( continuumHome );
             }
 
+            updateContinuumFiles( continuumHome, model );
+
             getLogger().info( "==> Update database" );
 
             updater.updateDatabase();
@@ -243,9 +239,11 @@
         }
     }
 
-    private void updateContinuumFiles( File continuumHome )
+    private void updateContinuumFiles( File continuumHome, UpdaterModel model )
         throws UpdaterException
     {
+        File newContinuumFile = downloadContinuum( model, continuumHome );
+
         getLogger().info( "==> Update Continuum files." );
 
         try



Mime
View raw message