Package org.apache.maven.continuum.model.project

Examples of org.apache.maven.continuum.model.project.BuildDefinition


            return Collections.EMPTY_LIST;
        }
        List<BuildDefinition> selectedBuildDefinitions = new ArrayList<BuildDefinition>();
        for ( String selectedBuildDefinitionId : selectedBuildDefinitionIds )
        {
            BuildDefinition buildDefinition =
                getContinuum().getBuildDefinition( Integer.parseInt( selectedBuildDefinitionId ) );
            selectedBuildDefinitions.add( buildDefinition );
        }
        return selectedBuildDefinitions;
    }
View Full Code Here


    public BuildDefinition getBuildDefinition()
    {
        if ( this.buildDefinition == null )
        {
            this.buildDefinition = new BuildDefinition();
        }
        return buildDefinition;
    }
View Full Code Here

        AbstractContinuumAction.setProjectId( context, projectId );

        try
        {
            BuildDefinition buildDefinition = buildDefinitionDao.getDefaultBuildDefinition( projectId );
            AbstractContinuumAction.setBuildDefinition( context, buildDefinition );

            executeAction( "add-project-to-checkout-queue", context );
        }
        catch ( ContinuumStoreException e )
View Full Code Here

        throws ContinuumException, NoBuildAgentException, NoBuildAgentInGroupException
    {
        if ( !isAnyProjectInGroupInReleaseStage( projectGroupId ) )
        {
            List<BuildDefinition> bds = new ArrayList<BuildDefinition>();
            BuildDefinition bd = getBuildDefinition( buildDefinitionId );
            if ( bd != null )
            {
                bds.add( bd );
            }
            buildProjectGroupWithBuildDefinition( projectGroupId, bds, false, buildTrigger );
View Full Code Here

        if ( isProjectInReleaseStage( project ) )
        {
            throw new ContinuumException( "Project (id=" + projectId + ") is currently in release stage." );
        }

        BuildDefinition buildDef = getDefaultBuildDefinition( projectId );

        if ( buildDef == null )
        {
            throw new ContinuumException( "Project (id=" + projectId + " doens't have a default build definition." );
        }

        if ( !isProjectOkToBuild( projectId, buildDef.getId() ) )
        {
            return;
        }

        Map<Integer, Integer> projectsBuildDefinitionsMap = new HashMap<Integer, Integer>();
        projectsBuildDefinitionsMap.put( projectId, buildDef.getId() );

        ProjectScmRoot scmRoot = getProjectScmRootByProject( projectId );
        List<ProjectScmRoot> sortedScmRoot = new ArrayList<ProjectScmRoot>();
        sortedScmRoot.add(scmRoot);
View Full Code Here

        }

        if ( !configurationService.isDistributedBuildEnabled() )
        {
            // used by BuildManager to determine on which build queue will the project be put
            BuildDefinition bd = (BuildDefinition) getProjectWithBuildDetails(
                AbstractContinuumAction.getProjectId( context ) ).getBuildDefinitions().get( 0 );
            AbstractContinuumAction.setBuildDefinition( context, bd );

            executeAction( "add-project-to-checkout-queue", context );
        }
View Full Code Here

                // FIXME
                // olamy  : read again the project to have values because store.updateProjectGroup( projectGroup );
                // remove object data -> we don't display the project name in the build queue
                AbstractContinuumAction.setProject( context, projectDao.getProject( project.getId() ) );

                BuildDefinition defaultBuildDefinition = null;
                BuildDefinitionTemplate template = null;
                if ( projectBuilderId.equals( MavenTwoContinuumProjectBuilder.ID ) )
                {
                    template = buildDefinitionService.getDefaultMavenTwoBuildDefinitionTemplate();
View Full Code Here

    public BuildDefinition getBuildDefinition( int projectId, int buildDefinitionId )
        throws ContinuumException
    {
        List<BuildDefinition> buildDefinitions = getBuildDefinitions( projectId );

        BuildDefinition buildDefinition = null;

        for ( BuildDefinition bd : buildDefinitions )
        {
            if ( bd.getId() == buildDefinitionId )
            {
View Full Code Here

    public void removeBuildDefinitionFromProject( int projectId, int buildDefinitionId )
        throws ContinuumException
    {
        HashMap<String, Object> context = new HashMap<String, Object>();
        BuildDefinition buildDefinition = getBuildDefinition( buildDefinitionId );

        AbstractContinuumAction.setBuildDefinition( context, buildDefinition );
        AbstractContinuumAction.setProjectId( context, projectId );

        executeAction( "remove-build-definition-from-project", context );
View Full Code Here

    public void removeBuildDefinition( int projectId, int buildDefinitionId )
        throws ContinuumException
    {
        Project project = getProjectWithAllDetails( projectId );

        BuildDefinition buildDefinition = getBuildDefinition( projectId, buildDefinitionId );

        if ( buildDefinition != null )
        {
            project.removeBuildDefinition( buildDefinition );
View Full Code Here

TOP

Related Classes of org.apache.maven.continuum.model.project.BuildDefinition

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.