Package org.apache.continuum.buildagent.build.execution

Examples of org.apache.continuum.buildagent.build.execution.ContinuumAgentBuildExecutorException


        File f = getPomFile( getBuildFileForProject( continuumProject, buildDefinition ), workingDirectory );

        if ( !f.exists() )
        {
            throw new ContinuumAgentBuildExecutorException( "Could not find Maven project descriptor '" + f + "'." );
        }

        MavenProject project = buildAgentMavenBuilderHelper.getMavenProject( result, f );

        if ( result.hasErrors() )
        {
            throw new ContinuumAgentBuildExecutorException(
                "Unable to read the Maven project descriptor '" + f + "': " + result.getErrorsAsString() );
        }
        return project;
    }
View Full Code Here


    {
        File f = getPomFile( getBuildFileForProject( buildDefinition ), workingDirectory );

        if ( !f.exists() )
        {
            throw new ContinuumAgentBuildExecutorException( "Could not find Maven project descriptor." );
        }

        ContinuumProjectBuildingResult result = new ContinuumProjectBuildingResult();

        buildAgentMavenBuilderHelper.mapMetadataToProject( result, f, project );

        if ( result.hasErrors() )
        {
            throw new ContinuumAgentBuildExecutorException(
                "Error while mapping metadata:" + result.getErrorsAsString() );
        }
        else
        {
            updateProject( project );
View Full Code Here

        File f = getPomFile( getBuildFileForProject( buildDefinition ), workingDirectory );

        if ( !f.exists() )
        {
            throw new ContinuumAgentBuildExecutorException( "Could not find Maven project descriptor '" + f + "'." );
        }

        MavenProject project = buildAgentMavenBuilderHelper.getMavenProject( result, f );

        if ( result.hasErrors() )
        {
            throw new ContinuumAgentBuildExecutorException(
                "Unable to read the Maven project descriptor '" + f + "': " + result.getErrorsAsString() );
        }
        return project;
    }
View Full Code Here

            projectXmlFile = new File( workingDirectory, "project.xml" );
        }

        if ( !projectXmlFile.exists() )
        {
            throw new ContinuumAgentBuildExecutorException( "Could not find Maven project descriptor." );
        }

        try
        {
            ContinuumProjectBuildingResult result = new ContinuumProjectBuildingResult();

            buildAgentMavenOneMetadataHelper.mapMetadata( result, projectXmlFile, project );

            if ( result.hasErrors() )
            {
                throw new ContinuumAgentBuildExecutorException(
                    "Error while mapping metadata:" + result.getErrorsAsString() );
            }

            updateProject( project );
        }
        catch ( BuildAgentMavenOneMetadataHelperException e )
        {
            throw new ContinuumAgentBuildExecutorException( "Error while mapping metadata.", e );
        }
    }
View Full Code Here

            projectXmlFile = new File( workingDirectory, "project.xml" );
        }

        if ( !projectXmlFile.exists() )
        {
            throw new ContinuumAgentBuildExecutorException( "Could not find Maven project descriptor." );
        }

        try
        {
            ContinuumProjectBuildingResult result = new ContinuumProjectBuildingResult();
           
            buildAgentMavenOneMetadataHelper.mapMetadata( result, projectXmlFile, project );

            if ( result.hasErrors() )
            {
                throw new ContinuumAgentBuildExecutorException( "Error while mapping metadata:" + result.getErrorsAsString() );
            }

            updateProject( project );
        }
        catch ( BuildAgentMavenOneMetadataHelperException e )
        {
            throw new ContinuumAgentBuildExecutorException( "Error while mapping metadata.", e );
        }
    }
View Full Code Here

    {
        File f = getPomFile( getBuildFileForProject( buildDefinition ), workingDirectory );
   
        if ( !f.exists() )
        {
            throw new ContinuumAgentBuildExecutorException( "Could not find Maven project descriptor." );
        }
   
        ContinuumProjectBuildingResult result = new ContinuumProjectBuildingResult();
   
        buildAgentMavenBuilderHelper.mapMetadataToProject( result, f, project );
   
        if ( result.hasErrors() )
        {
            throw new ContinuumAgentBuildExecutorException( "Error while mapping metadata:" + result.getErrorsAsString() );
        }
        else
        {
            updateProject( project );
        }
View Full Code Here

        File f = getPomFile( getBuildFileForProject( buildDefinition ), workingDirectory );

        if ( !f.exists() )
        {
            throw new ContinuumAgentBuildExecutorException( "Could not find Maven project descriptor '" + f + "'." );
        }

        MavenProject project = buildAgentMavenBuilderHelper.getMavenProject( result, f );

        if ( result.hasErrors() )
        {
            throw new ContinuumAgentBuildExecutorException(
                "Unable to read the Maven project descriptor '" + f + "': " + result.getErrorsAsString() );
        }
        return project;
    }
View Full Code Here

TOP

Related Classes of org.apache.continuum.buildagent.build.execution.ContinuumAgentBuildExecutorException

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.