*/
private ReportGroup reportGroup;
- public void convertLegacyRepository( File legacyRepositoryDirectory, File repositoryDirectory,
+ public void convertLegacyRepository( File legacyRepositoryDirectory,
+ File repositoryDirectory,
+ List blacklistedPatterns,
boolean includeSnapshots )
throws RepositoryConversionException, DiscovererException
{
ArtifactFilter filter =
includeSnapshots ? new AcceptAllArtifactFilter() : (ArtifactFilter) new SnapshotArtifactFilter();
- List legacyArtifacts = artifactDiscoverer.discoverArtifacts( legacyRepository, null, filter );
+ List legacyArtifacts = artifactDiscoverer.discoverArtifacts( legacyRepository, blacklistedPatterns, filter );
ReportingDatabase reporter;
try
import org.apache.maven.archiva.discoverer.DiscovererException;
import java.io.File;
+import java.util.List;
/**
* @author Jason van Zyl
* @param legacyRepositoryDirectory
* @param repositoryDirectory
* @throws org.apache.maven.archiva.converter.RepositoryConversionException
+ *
*/
- void convertLegacyRepository( File legacyRepositoryDirectory, File repositoryDirectory, boolean includeSnapshots )
+ void convertLegacyRepository( File legacyRepositoryDirectory,
+ File repositoryDirectory,
+ List blacklistedPatterns,
+ boolean includeSnapshots )
throws RepositoryConversionException, DiscovererException;
}
--- /dev/null
+package org.apache.maven.archiva;
+
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed 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.codehaus.plexus.PlexusTestCase;
+
+import java.io.File;
+
+/**
+ * @author Jason van Zyl
+ */
+public class ArchivaTest
+ extends PlexusTestCase
+{
+ public void testLegacyRepositoryConversion()
+ throws Exception
+ {
+ File legacyRepositoryDirectory = getTestFile( "src/test/maven-1.x-repository" );
+
+ File repositoryDirectory = getTestFile( "target/maven-2.x-repository" );
+
+ Archiva rm = (Archiva) lookup( Archiva.ROLE );
+
+ rm.convertLegacyRepository( legacyRepositoryDirectory, repositoryDirectory, true );
+ }
+}
+++ /dev/null
-package org.apache.maven.archiva;
-
-/*
- * Copyright 2005-2006 The Apache Software Foundation.
- *
- * Licensed 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.codehaus.plexus.PlexusTestCase;
-
-import java.io.File;
-
-/**
- * @author Jason van Zyl
- */
-public class RepositoryManagerTest
- extends PlexusTestCase
-{
- public void testLegacyRepositoryConversion()
- throws Exception
- {
- File legacyRepositoryDirectory = getTestFile( "src/test/maven-1.x-repository" );
-
- File repositoryDirectory = getTestFile( "target/maven-2.x-repository" );
-
- Archiva rm = (Archiva) lookup( Archiva.ROLE );
-
- rm.convertLegacyRepository( legacyRepositoryDirectory, repositoryDirectory, true );
- }
-}
<module>archiva-plexus-application</module>
<module>archiva-plexus-runtime</module>
<module>archiva-security</module>
+ <module>archiva-cli</module>
</modules>
<dependencies>
<dependency>