]> source.dussan.org Git - archiva.git/commitdiff
remove unused classes and empty directories
authorMaria Odea B. Ching <oching@apache.org>
Fri, 20 Feb 2009 05:09:07 +0000 (05:09 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Fri, 20 Feb 2009 05:09:07 +0000 (05:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@746141 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/repository/AbstractRepositoryPurge.java
archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/MockConfiguration.java [deleted file]
archiva-modules/archiva-base/archiva-indexer/src/test/resources/META-INF/plexus/components.xml [deleted file]

index 42e92464b72e8288efa6afd275d98cde8cc47332..545f62f8649aaf46dd6577af292dbcfe88d52ce3 100644 (file)
@@ -76,8 +76,7 @@ public abstract class AbstractRepositoryPurge
     /**
      * Purge the repo. Update db and index of removed artifacts.
      * 
-     * @param artifactFiles
-     * @throws RepositoryIndexException
+     * @param references
      */
     protected void purge( Set<ArtifactReference> references )
     {        
diff --git a/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/MockConfiguration.java b/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/MockConfiguration.java
deleted file mode 100644 (file)
index 9ad1671..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-package org.apache.maven.archiva.indexer;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import org.apache.maven.archiva.configuration.ArchivaConfiguration;
-import org.apache.maven.archiva.configuration.Configuration;
-import org.apache.maven.archiva.configuration.ConfigurationListener;
-import org.codehaus.plexus.registry.Registry;
-import org.codehaus.plexus.registry.RegistryException;
-import org.codehaus.plexus.registry.RegistryListener;
-import org.easymock.MockControl;
-
-import java.util.HashSet;
-import java.util.Set;
-
-/**
- * MockConfiguration 
- *
- * @version $Id$
- * 
- * @plexus.component role="org.apache.maven.archiva.configuration.ArchivaConfiguration"
- *                   role-hint="mock"
- */
-public class MockConfiguration implements ArchivaConfiguration
-{
-    private Configuration configuration = new Configuration();
-
-    private Set<RegistryListener> registryListeners = new HashSet<RegistryListener>();
-    private Set<ConfigurationListener> configListeners = new HashSet<ConfigurationListener>();
-
-    private MockControl registryControl;
-
-    private Registry registryMock;
-
-    public MockConfiguration()
-    {
-        registryControl = MockControl.createNiceControl( Registry.class );
-        registryMock = (Registry) registryControl.getMock();
-    }
-
-    public void addChangeListener( RegistryListener listener )
-    {
-        registryListeners.add( listener );
-    }
-
-    public Configuration getConfiguration()
-    {
-        return configuration;
-    }
-
-    public void save( Configuration configuration )
-        throws RegistryException
-    {
-        /* do nothing */
-    }
-
-    public void triggerChange( String name, String value )
-    {
-        for(RegistryListener listener: registryListeners)
-        {
-            try
-            {
-                listener.afterConfigurationChange( registryMock, name, value );
-            }
-            catch ( Exception e )
-            {
-                e.printStackTrace();
-            }
-        }
-    }
-
-    public void addListener( ConfigurationListener listener )
-    {
-        configListeners.add(listener);
-    }
-
-    public void removeListener( ConfigurationListener listener )
-    {
-        configListeners.remove( listener );
-    }
-    
-    public boolean isDefaulted()
-    {
-        return false;
-    }
-}
diff --git a/archiva-modules/archiva-base/archiva-indexer/src/test/resources/META-INF/plexus/components.xml b/archiva-modules/archiva-base/archiva-indexer/src/test/resources/META-INF/plexus/components.xml
deleted file mode 100644 (file)
index af15697..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<component-set>
-  <components>
-    <component>
-      <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
-      <role-hint>mock</role-hint>
-      <implementation>org.apache.maven.archiva.indexer.MockConfiguration</implementation>
-    </component>
-    <component>
-      <role>org.apache.maven.archiva.indexer.RepositoryContentIndexFactory</role>
-      <role-hint>lucene</role-hint>
-      <implementation>org.apache.maven.archiva.indexer.lucene.LuceneRepositoryContentIndexFactory</implementation>
-      <description>Factory for Lucene repository content index instances.</description>
-      <requirements>
-        <requirement>
-          <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
-          <role-hint>mock</role-hint>
-          <field-name>configuration</field-name>
-        </requirement>
-      </requirements>
-    </component>
-  </components>
-</component-set>