Package npanday

Examples of npanday.InitializationException


    {
        this.mavenProject = mavenProject;
        repository = (AssemblyPluginsRepository) repositoryRegistry.find( "assembly-plugins" );
        if ( repository == null )
        {
            throw new InitializationException( "NPANDAY-020-005: Unable to find the assembly-plugins.xml file" );
        }
    }
View Full Code Here


        this.logger = logger;
        this.versionMatcher = new VersionMatcher();

        if ( repositoryRegistry == null )
        {
            throw new InitializationException( "NPANDAY-103-000: Unable to find the repository registry" );
        }
        logger.debug( "NPANDAY-103-036.0: Respository registry: " + repositoryRegistry);

        SettingsRepository settingsRepository = null;
        try
        {
            settingsRepository = SettingsUtil.getOrPopulateSettingsRepository( repositoryRegistry );
        }
        catch ( SettingsException e )
        {
            throw new InitializationException( "NPANDAY-103-067: Could not get settings." , e);
        }

        if (settingsRepository != null)
        {
            try
            {
                defaultVendor = VendorFactory.createVendorFromName( settingsRepository.getDefaultSetup().getVendorName() );
                logger.debug( "NPANDAY-103-036: Default Vendor Initialized: Name = " + defaultVendor );
            }
            catch ( VendorUnsupportedException e )
            {
                throw new InitializationException( "NPANDAY-103-002: Unknown Default Vendor: Name = " + defaultVendor, e );
            }
            defaultVendorVersion = settingsRepository.getDefaultSetup().getVendorVersion().trim();
            defaultFrameworkVersion = settingsRepository.getDefaultSetup().getFrameworkVersion().trim();
        }
    }
View Full Code Here

TOP

Related Classes of npanday.InitializationException

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.