diff options
author | Brett Porter <brett@apache.org> | 2007-03-07 23:08:09 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2007-03-07 23:08:09 +0000 |
commit | 21f5499a2945462cdebf7dbb972cbbea89fa0aa2 (patch) | |
tree | 76a148303ee3584330e7c80956b8c5916b7de59c /archiva-configuration/src/main | |
parent | 053b62e3c52e5e95abca533adba3fbd905b2f8e2 (diff) | |
download | archiva-21f5499a2945462cdebf7dbb972cbbea89fa0aa2.tar.gz archiva-21f5499a2945462cdebf7dbb972cbbea89fa0aa2.zip |
[MRM-300] add test and update to latest modello to fix the saving of proxied repositories
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@515833 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-configuration/src/main')
-rw-r--r-- | archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java b/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java index adfd01d31..4a4f7fa50 100644 --- a/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java +++ b/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java @@ -27,6 +27,8 @@ import org.codehaus.plexus.registry.Registry; import org.codehaus.plexus.registry.RegistryException; import org.codehaus.plexus.registry.RegistryListener; +import java.util.Iterator; + /** * Implementation of configuration holder that retrieves it from the registry. * @@ -60,7 +62,7 @@ public class DefaultArchivaConfiguration configuration.setIndexPath( removeExpressions( configuration.getIndexPath() ) ); configuration.setMinimalIndexPath( removeExpressions( configuration.getMinimalIndexPath() ) ); configuration.setLocalRepository( removeExpressions( configuration.getLocalRepository() ) ); - for ( java.util.Iterator i = configuration.getRepositories().iterator(); i.hasNext(); ) + for ( Iterator i = configuration.getRepositories().iterator(); i.hasNext(); ) { RepositoryConfiguration c = (RepositoryConfiguration) i.next(); c.setDirectory( removeExpressions( c.getDirectory() ) ); |