mirror of https://github.com/apache/archiva.git
Removing unused pieces.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585586 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b571fcf307
commit
766b613044
|
@ -25,7 +25,6 @@ import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
|
||||||
import org.apache.maven.archiva.consumers.AbstractMonitoredConsumer;
|
import org.apache.maven.archiva.consumers.AbstractMonitoredConsumer;
|
||||||
import org.apache.maven.archiva.consumers.ConsumerException;
|
import org.apache.maven.archiva.consumers.ConsumerException;
|
||||||
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer;
|
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.ChecksumFile;
|
||||||
import org.codehaus.plexus.digest.Digester;
|
import org.codehaus.plexus.digest.Digester;
|
||||||
import org.codehaus.plexus.digest.DigesterException;
|
import org.codehaus.plexus.digest.DigesterException;
|
||||||
|
@ -38,7 +37,6 @@ import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ArtifactMissingChecksumsConsumer - Create missing checksums for the artifact.
|
* ArtifactMissingChecksumsConsumer - Create missing checksums for the artifact.
|
||||||
|
@ -73,11 +71,6 @@ public class ArtifactMissingChecksumsConsumer
|
||||||
*/
|
*/
|
||||||
private FileTypes filetypes;
|
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"
|
* @plexus.requirement role-hint="sha1"
|
||||||
*/
|
*/
|
||||||
|
@ -99,12 +92,8 @@ public class ArtifactMissingChecksumsConsumer
|
||||||
|
|
||||||
private static final String TYPE_CHECKSUM_CANNOT_CREATE = "checksum-create-failure";
|
private static final String TYPE_CHECKSUM_CANNOT_CREATE = "checksum-create-failure";
|
||||||
|
|
||||||
private ManagedRepositoryConfiguration repository;
|
|
||||||
|
|
||||||
private File repositoryDir;
|
private File repositoryDir;
|
||||||
|
|
||||||
private BidirectionalRepositoryLayout layout;
|
|
||||||
|
|
||||||
private List<String> propertyNameTriggers = new ArrayList<String>();
|
private List<String> propertyNameTriggers = new ArrayList<String>();
|
||||||
|
|
||||||
private List<String> includes = new ArrayList<String>();
|
private List<String> includes = new ArrayList<String>();
|
||||||
|
@ -124,21 +113,10 @@ public class ArtifactMissingChecksumsConsumer
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void beginScan( ManagedRepositoryConfiguration repository )
|
public void beginScan( ManagedRepositoryConfiguration repo )
|
||||||
throws ConsumerException
|
throws ConsumerException
|
||||||
{
|
{
|
||||||
this.repository = repository;
|
this.repositoryDir = new File( repo.getLocation() );
|
||||||
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 );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void completeScan()
|
public void completeScan()
|
||||||
|
|
Loading…
Reference in New Issue