Eliminating duplicate repositories from showing up after the conversion.

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@583630 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joakim Erdfelt 2007-10-10 22:15:51 +00:00
parent e799f29dc2
commit 54207afb87
1 changed files with 9 additions and 7 deletions

View File

@ -153,6 +153,9 @@ public class DefaultArchivaConfiguration
config.addRemoteRepository( repo ); config.addRemoteRepository( repo );
} }
} }
// Prevent duplicate repositories from showing up.
config.getRepositories().clear();
} }
// Normalize the order fields in the proxy connectors. // Normalize the order fields in the proxy connectors.
@ -279,7 +282,7 @@ public class DefaultArchivaConfiguration
{ {
( (Initializable) registry ).initialize(); ( (Initializable) registry ).initialize();
for ( RegistryListener regListener: registryListeners ) for ( RegistryListener regListener : registryListeners )
{ {
addRegistryChangeListener( regListener ); addRegistryChangeListener( regListener );
} }
@ -352,7 +355,6 @@ public class DefaultArchivaConfiguration
} }
} }
public void initialize() public void initialize()
throws InitializationException throws InitializationException
{ {