Package org.apache.maven.archiva.configuration.io.registry

Examples of org.apache.maven.archiva.configuration.io.registry.ConfigurationRegistryReader


    }

    private Configuration load()
    {
        // TODO: should this be the same as section? make sure unnamed sections still work (eg, sys properties)
        Configuration config = new ConfigurationRegistryReader().read( registry.getSubset( KEY ) );

        // TODO: for commons-configuration 1.3 only
        for ( Iterator i = config.getRepositories().iterator(); i.hasNext(); )
        {
            RepositoryConfiguration c = (RepositoryConfiguration) i.next();
View Full Code Here


                // only for empty, or v < 1
                subset = readDefaultConfiguration();
            }
        }

        Configuration config = new ConfigurationRegistryReader().read( subset );

        if ( !config.getRepositories().isEmpty() )
        {
            for ( Iterator i = config.getRepositories().iterator(); i.hasNext(); )
            {
View Full Code Here

            fld.set( commonsRegistry, new CombinedConfiguration() );
            commonsRegistry.enableLogging( getLogger() );
            commonsRegistry.addConfigurationFromResource( "org/apache/maven/archiva/configuration/default-archiva.xml" );

            // Read configuration as it was intended.
            ConfigurationRegistryReader configReader = new ConfigurationRegistryReader();
            Configuration defaultConfig = configReader.read( commonsRegistry );

            initialiseTypeMap( defaultConfig );
        }
        catch ( RegistryException e )
        {
View Full Code Here

                // only for empty, or v < 1
                subset = readDefaultConfiguration();
            }
        }

        Configuration config = new ConfigurationRegistryReader().read( subset );

        if ( !config.getRepositories().isEmpty() )
        {
            for ( Iterator<V1RepositoryConfiguration> i = config.getRepositories().iterator(); i.hasNext(); )
            {
View Full Code Here

    public synchronized Configuration getConfiguration()
    {
        if ( configuration == null )
        {
            // TODO: should this be the same as section? make sure unnamed sections still work (eg, sys properties)
            configuration = new ConfigurationRegistryReader().read( registry.getSubset( KEY ) );

            // TODO: for commons-configuration 1.3 only
            configuration.setIndexPath( removeExpressions( configuration.getIndexPath() ) );
            configuration.setMinimalIndexPath( removeExpressions( configuration.getMinimalIndexPath() ) );
            configuration.setLocalRepository( removeExpressions( configuration.getLocalRepository() ) );
View Full Code Here

            fld.set( commonsRegistry, new CombinedConfiguration() );
            commonsRegistry.enableLogging( new Slf4JPlexusLogger( FileTypes.class ) );
            commonsRegistry.addConfigurationFromResource( "org/apache/maven/archiva/configuration/default-archiva.xml" );

            // Read configuration as it was intended.
            ConfigurationRegistryReader configReader = new ConfigurationRegistryReader();
            Configuration defaultConfig = configReader.read( commonsRegistry );

            initialiseTypeMap( defaultConfig );
        }
        catch ( RegistryException e )
        {
View Full Code Here

            fld.set( commonsRegistry, new CombinedConfiguration() );
            commonsRegistry.enableLogging( new Slf4JPlexusLogger( FileTypes.class ) );
            commonsRegistry.addConfigurationFromResource( "org/apache/maven/archiva/configuration/default-archiva.xml" );

            // Read configuration as it was intended.
            ConfigurationRegistryReader configReader = new ConfigurationRegistryReader();
            Configuration defaultConfig = configReader.read( commonsRegistry );

            initialiseTypeMap( defaultConfig );
        }
        catch ( RegistryException e )
        {
View Full Code Here

TOP

Related Classes of org.apache.maven.archiva.configuration.io.registry.ConfigurationRegistryReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.