archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joak...@apache.org
Subject svn commit: r585586 - /maven/archiva/trunk/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/ArtifactMissingChecksumsConsumer.java
Date Wed, 17 Oct 2007 17:28:02 GMT
Author: joakime
Date: Wed Oct 17 10:28:01 2007
New Revision: 585586

URL: http://svn.apache.org/viewvc?rev=585586&view=rev
Log:
Removing unused pieces.


Modified:
    maven/archiva/trunk/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/ArtifactMissingChecksumsConsumer.java

Modified: maven/archiva/trunk/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/ArtifactMissingChecksumsConsumer.java
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/ArtifactMissingChecksumsConsumer.java?rev=585586&r1=585585&r2=585586&view=diff
==============================================================================
--- maven/archiva/trunk/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/ArtifactMissingChecksumsConsumer.java
(original)
+++ maven/archiva/trunk/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/ArtifactMissingChecksumsConsumer.java
Wed Oct 17 10:28:01 2007
@@ -25,7 +25,6 @@
 import org.apache.maven.archiva.consumers.AbstractMonitoredConsumer;
 import org.apache.maven.archiva.consumers.ConsumerException;
 import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer;
-import org.apache.maven.archiva.repository.layout.BidirectionalRepositoryLayout;
 import org.codehaus.plexus.digest.ChecksumFile;
 import org.codehaus.plexus.digest.Digester;
 import org.codehaus.plexus.digest.DigesterException;
@@ -38,7 +37,6 @@
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.List;
-import java.util.Map;
 
 /**
  * ArtifactMissingChecksumsConsumer - Create missing checksums for the artifact.
@@ -74,11 +72,6 @@
     private FileTypes filetypes;
 
     /**
-     * @plexus.requirement role="org.apache.maven.archiva.repository.layout.BidirectionalRepositoryLayout"
-     */
-    private Map bidirectionalLayoutMap; // TODO: replace with new bidir-repo-layout-factory
-
-    /**
      * @plexus.requirement role-hint="sha1"
      */
     private Digester digestSha1;
@@ -99,12 +92,8 @@
 
     private static final String TYPE_CHECKSUM_CANNOT_CREATE = "checksum-create-failure";
 
-    private ManagedRepositoryConfiguration repository;
-
     private File repositoryDir;
 
-    private BidirectionalRepositoryLayout layout;
-
     private List<String> propertyNameTriggers = new ArrayList<String>();
 
     private List<String> includes = new ArrayList<String>();
@@ -124,21 +113,10 @@
         return false;
     }
 
-    public void beginScan( ManagedRepositoryConfiguration repository )
+    public void beginScan( ManagedRepositoryConfiguration repo )
         throws ConsumerException
     {
-        this.repository = repository;
-        this.repositoryDir = new File( repository.getLocation() );
-
-        String layoutName = repository.getLayout();
-        if ( !bidirectionalLayoutMap.containsKey( layoutName ) )
-        {
-            throw new ConsumerException( "Unable to process repository with layout [" + layoutName
+
-                "] as there is no corresponding " + BidirectionalRepositoryLayout.class.getName()
+
-                " implementation available." );
-        }
-
-        this.layout = (BidirectionalRepositoryLayout) bidirectionalLayoutMap.get( layoutName
);
+        this.repositoryDir = new File( repo.getLocation() );
     }
 
     public void completeScan()



Mime
View raw message