aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-cli
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2020-06-26 23:44:24 +0200
committerMartin Stockhammer <martin_s@apache.org>2020-06-26 23:44:24 +0200
commitf24edc23979aff3ea46c171b8a18b3915ca33d54 (patch)
tree69e0097e7a03a4d687bbb87a189a047da7d1ee95 /archiva-cli
parent92555ff5869621482fe9087830247e28b61add2a (diff)
downloadarchiva-f24edc23979aff3ea46c171b8a18b3915ca33d54.tar.gz
archiva-f24edc23979aff3ea46c171b8a18b3915ca33d54.zip
Cleanup of central dependency declarations
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" )