aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-cli
diff options
context:
space:
mode:
Diffstat (limited to 'archiva-cli')
-rw-r--r--archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java36
1 files changed, 1 insertions, 35 deletions
diff --git a/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java b/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java
index 60b1c65af..9204b4c84 100644
--- a/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java
+++ b/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java
@@ -25,8 +25,6 @@ import org.apache.archiva.consumers.ConsumerException;
import org.apache.archiva.consumers.InvalidRepositoryContentConsumer;
import org.apache.archiva.consumers.KnownRepositoryContentConsumer;
import org.apache.archiva.consumers.RepositoryContentConsumer;
-import org.apache.archiva.converter.RepositoryConversionException;
-import org.apache.archiva.converter.legacy.LegacyRepositoryConverter;
import org.apache.archiva.repository.base.BasicManagedRepository;
import org.apache.archiva.repository.scanner.RepositoryScanStatistics;
import org.apache.archiva.repository.scanner.RepositoryScanner;
@@ -139,7 +137,7 @@ public class ArchivaCli
}
else if ( command.convert )
{
- doConversion( command.properties );
+ LOGGER.error( "Conversion is not available anymore" );
}
else if ( command.scan )
{
@@ -247,38 +245,6 @@ public class ArchivaCli
return smallNames;
}
- private void doConversion( String properties )
- throws IOException, RepositoryConversionException
- {
- LegacyRepositoryConverter legacyRepositoryConverter =
- applicationContext.getBean( LegacyRepositoryConverter.class );
-
- Properties p = new Properties();
-
- try (InputStream fis = Files.newInputStream( Paths.get( properties ) ))
- {
- p.load( fis );
- }
-
- Path oldRepositoryPath = Paths.get( p.getProperty( SOURCE_REPO_PATH ) );
-
- Path newRepositoryPath = Paths.get( p.getProperty( TARGET_REPO_PATH ) );
-
- LOGGER.info( "Converting {} to {}", oldRepositoryPath, newRepositoryPath );
-
- List<String> fileExclusionPatterns = null;
-
- String s = p.getProperty( BLACKLISTED_PATTERNS );
-
- if ( s != null )
- {
- fileExclusionPatterns = Arrays.asList( StringUtils.split( s, "," ) );
- }
-
- legacyRepositoryConverter.convertLegacyRepository( oldRepositoryPath, newRepositoryPath,
- fileExclusionPatterns );
- }
-
private static class Commands
{
@Argument( description = "Display help information", value = "help", alias = "h" )