throws InitializationException
{
this.artifactPatterns = new ArrayList<String>();
- this.proxies = new HashMap();
+ this.proxies = new HashMap<String, Set<String>>();
initConfigVariables();
configuration.addChangeListener( this );
{
String metadataPath = getRepositorySpecificName( proxyId, toPath( reference ) );
File metadataFile = new File( managedRepository.getRepoRoot(), metadataPath );
+
+ if ( !metadataFile.exists() || !metadataFile.isFile() )
+ {
+ // Nothing to do. return null.
+ return null;
+ }
try
{
{
String metadataPath = getRepositorySpecificName( proxyId, toPath( reference ) );
File metadataFile = new File( managedRepository.getRepoRoot(), metadataPath );
+
+ if ( !metadataFile.exists() || !metadataFile.isFile() )
+ {
+ // Nothing to do. return null.
+ return null;
+ }
try
{
{
this.proxies.clear();
- List proxyConfigs = configuration.getConfiguration().getProxyConnectors();
- Iterator it = proxyConfigs.iterator();
- while ( it.hasNext() )
+ List<ProxyConnectorConfiguration> proxyConfigs = configuration.getConfiguration().getProxyConnectors();
+ for( ProxyConnectorConfiguration proxyConfig: proxyConfigs )
{
- ProxyConnectorConfiguration proxyConfig = (ProxyConnectorConfiguration) it.next();
String key = proxyConfig.getSourceRepoId();
- Set remoteRepoIds = this.proxies.get( key );
+ Set<String> remoteRepoIds = this.proxies.get( key );
if ( remoteRepoIds == null )
{