Package npanday.registry

Examples of npanday.registry.NPandayRepositoryException


        {
            settings = xpp3Reader.read( reader );
        }
        catch( IOException e )
        {
            throw new NPandayRepositoryException( "NPANDAY-104-000: An error occurred while reading npanday-settings.xml", e );
        }
        catch ( XmlPullParserException e )
        {
            throw new NPandayRepositoryException( "NPANDAY-104-001: Could not read npanday-settings.xml", e );
        }
        vendors = settings.getVendors();
        defaultSetup = settings.getDefaultSetup();
        props = properties;
    }
View Full Code Here


            {
                load( stream, props );
            }
            catch ( NPandayRepositoryException e )
            {
                throw new NPandayRepositoryException( "NPANDAY-084-004: " + e.toString() + " : " + message, e );
            }
            catch ( Exception e )
            {
                throw new NPandayRepositoryException( "NPANDAY-084-005: " + e.toString() + " : " + message, e );
            }
            catch ( Error e )
            {
                throw new NPandayRepositoryException( "NPANDAY-084-006: " + e.toString() + " : " + message, e );
            }
        }

        reloaded = true;
    }
View Full Code Here

        {
            projects = dao.getAllProjects();
        }
        catch( ProjectDaoException e )
        {
            throw new NPandayRepositoryException( "NPANDAY-190-004: An error occurred while retrieving projects.", e );
        }

        for ( Project project : projects )
        {
            logger.finest( "NPANDAY-190-000: Converting Project: Artifact ID = " + project.getArtifactId() +
View Full Code Here

                                             artifact.getType(), artifact.getClassifier() );

        }
        catch( ProjectDaoException e )
        {
            throw new NPandayRepositoryException( "NPANDAY-190-005: An error occurred while retrieving projects.", e );
        }

        logger.finest( "NPANDAY-190-002: Converting Project: Artifact ID = " + project.getArtifactId() +
            ", Dependency Count =" + project.getProjectDependencies().size() );
        Model model = ProjectFactory.createModelFrom( project );
View Full Code Here

            repository.load( stream, props );
            repository.setSourceUri( fileUri );
        }
        catch ( NPandayRepositoryException e )
        {
            throw new NPandayRepositoryException( "NPANDAY-084-004: " + e.toString() + " : " + message, e );
        }
        catch ( Exception e )
        {
            throw new NPandayRepositoryException( "NPANDAY-084-005: " + e.toString() + " : " + message, e );
        }
        catch ( Error e )
        {
            throw new NPandayRepositoryException( "NPANDAY-084-006: " + e.toString() + " : " + message, e );
        }
        return repository;
    }
View Full Code Here

        {
            plugins = xpp3Reader.read( reader );
        }
        catch( IOException e )
        {
            throw new NPandayRepositoryException( "NPANDAY-021-000: An error occurred while reading executable-plugins.xml", e );
        }
        catch ( XmlPullParserException e )
        {
            throw new NPandayRepositoryException( "NPANDAY-021-001: Could not read plugins-compiler.xml", e );
        }
        assemblyPlugins = plugins.getAssemblyPlugins();
        Set languages = getAssemblyPluginLanguages();
        if ( languages.size() < assemblyPlugins.size() )
        {
            throw new NPandayRepositoryException(
                "NPANDAY-021-002: Duplicate language entries in the assembly-plugins.xml: Total Language Count = " +
                    languages.size() + ", Total Plugins = " + assemblyPlugins.size() );
        }
    }
View Full Code Here

        {
            model = xpp3Reader.read( reader );
        }
        catch( IOException e )
        {
            throw new NPandayRepositoryException( "NPANDAY-062-000: An error occurred while reading plugins-compiler.xml", e );
        }
        catch ( XmlPullParserException e )
        {
            throw new NPandayRepositoryException( "NPANDAY-062-001: Could not read plugins-compiler.xml", e );
        }
        List<ConfigurationAppender> appenders  = model.getConfigurationAppenders();
        appenderClasses = new HashSet<Class>();
        for(ConfigurationAppender appender : appenders)
        {
            try
            {
                appenderClasses.add(Class.forName( appender.getName() ));
            }
            catch ( ClassNotFoundException e )
            {
                throw new NPandayRepositoryException("NPANDAY-xxx-000: Could not load class appender: Name = " + appender.getName(), e );
            }
        }

    }
View Full Code Here

        {
            plugins = xpp3Reader.read( reader );
        }
        catch( IOException e )
        {
            throw new NPandayRepositoryException( "NPANDAY-062-000: An error occurred while reading plugins-compiler.xml", e );
        }
        catch ( XmlPullParserException e )
        {
            throw new NPandayRepositoryException( "NPANDAY-062-001: Could not read plugins-compiler.xml", e );
        }
        compilerPlugins = plugins.getCompilerPlugins();
    }
View Full Code Here

        {
            model = xpp3Reader.read( reader );
        }
        catch( IOException e )
        {
            throw new NPandayRepositoryException( "NPANDAY-003-000: An error occurred while reading net-dependencies.xml", e );
        }
        catch ( XmlPullParserException e )
        {
            throw new NPandayRepositoryException( "NPANDAY-003-001: Could not read net-dependencies.xml", e );
        }
        netDependencies = model.getNetDependencies();
        String npandayVersion = (String) properties.get( "npanday.version" );
        for ( NetDependency dependency : netDependencies )
        {
View Full Code Here

TOP

Related Classes of npanday.registry.NPandayRepositoryException

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.