Package org.apache.continuum.release.model

Examples of org.apache.continuum.release.model.PreparedRelease


    }

    private void addReleasePrepare( String releaseId, String buildAgentUrl, String releaseName, String releaseType )
        throws ContinuumReleaseException
    {
        PreparedRelease release = new PreparedRelease();
        release.setReleaseId( releaseId );
        release.setBuildAgentUrl( buildAgentUrl );
        release.setReleaseName( releaseName );
        release.setReleaseType( releaseType );

        List<PreparedRelease> preparedReleases = getPreparedReleases();

        if ( preparedReleases == null )
        {
            preparedReleases = new ArrayList<PreparedRelease>();
        }

        boolean found = false;

        for ( PreparedRelease preparedRelease : preparedReleases )
        {
            if ( preparedRelease.getReleaseId().equals( release.getReleaseId() ) &&
                 preparedRelease.getReleaseName().equals( release.getReleaseName() ) )
            {
                preparedRelease.setBuildAgentUrl( release.getBuildAgentUrl() );
                found = true;
            }
        }

        if ( !found )
View Full Code Here


        if ( getConfiguration().isDistributedBuildEnabled() )
        {
            try
            {
                result = (ReleaseResult) distributedReleaseManager.getReleaseResult( releaseId );
                PreparedRelease preparedRelease = distributedReleaseManager.getPreparedRelease( releaseId,
                                                                                                releaseType );
                if ( preparedRelease != null )
                {
                    releaseBy = preparedRelease.getReleaseBy();
                }
            }
            catch ( ContinuumReleaseException e )
            {
                throw new ContinuumException( "Failed to release project: " + projectId, e );
View Full Code Here

    private void addReleasePrepare( String releaseId, String buildAgentUrl, String releaseName, String releaseType,
                                    String releaseGoals, String username )
        throws ContinuumReleaseException
    {
        PreparedRelease release = new PreparedRelease();
        release.setReleaseId( releaseId );
        release.setBuildAgentUrl( buildAgentUrl );
        release.setReleaseName( releaseName );
        release.setReleaseType( releaseType );
        release.setReleaseGoals( releaseGoals );
        release.setReleaseBy( username );

        List<PreparedRelease> preparedReleases = getPreparedReleases();

        if ( preparedReleases == null )
        {
            preparedReleases = new ArrayList<PreparedRelease>();
        }

        for ( PreparedRelease preparedRelease : preparedReleases )
        {
            if ( preparedRelease.getReleaseId().equals( release.getReleaseId() ) )
            {
                preparedReleases.remove( preparedRelease );
                break;
            }
        }
View Full Code Here

        if ( !file.exists() )
        {
            file.getParentFile().mkdirs();
        }

        PreparedRelease release = new PreparedRelease();
        release.setReleaseId( releaseId );
        release.setBuildAgentUrl( buildAgentUrl );
        release.setReleaseName( releaseName );

        List<PreparedRelease> preparedReleases = getPreparedReleases();

        if ( preparedReleases == null )
        {
            preparedReleases = new ArrayList<PreparedRelease>();
        }
        else
        {
            boolean found = false;

            for ( PreparedRelease preparedRelease : preparedReleases )
            {
                if ( preparedRelease.getReleaseId().equals( release.getReleaseId() ) &&
                     preparedRelease.getReleaseName().equals( release.getReleaseName() ) )
                {
                    preparedRelease.setBuildAgentUrl( release.getBuildAgentUrl() );
                    found = true;
                }
            }
           
            if ( !found )
View Full Code Here

        if ( !file.exists() )
        {
            file.getParentFile().mkdirs();
        }

        PreparedRelease release = new PreparedRelease();
        release.setReleaseId( releaseId );
        release.setBuildAgentUrl( buildAgentUrl );
        release.setReleaseName( releaseName );

        List<PreparedRelease> preparedReleases = getPreparedReleases();

        if ( preparedReleases == null )
        {
            preparedReleases = new ArrayList<PreparedRelease>();
        }
        else
        {
            boolean found = false;

            for ( PreparedRelease preparedRelease : preparedReleases )
            {
                if ( preparedRelease.getReleaseId().equals( release.getReleaseId() ) &&
                    preparedRelease.getReleaseName().equals( release.getReleaseName() ) )
                {
                    preparedRelease.setBuildAgentUrl( release.getBuildAgentUrl() );
                    found = true;
                }
            }

            if ( !found )
View Full Code Here

        if ( !file.exists() )
        {
            file.getParentFile().mkdirs();
        }

        PreparedRelease release = new PreparedRelease();
        release.setReleaseId( releaseId );
        release.setBuildAgentUrl( buildAgentUrl );
        release.setReleaseName( releaseName );

        List<PreparedRelease> preparedReleases = getPreparedReleases();

        if ( preparedReleases == null )
        {
            preparedReleases = new ArrayList<PreparedRelease>();
        }
        else
        {
            boolean found = false;

            for ( PreparedRelease preparedRelease : preparedReleases )
            {
                if ( preparedRelease.getReleaseId().equals( release.getReleaseId() ) &&
                    preparedRelease.getReleaseName().equals( release.getReleaseName() ) )
                {
                    preparedRelease.setBuildAgentUrl( release.getBuildAgentUrl() );
                    found = true;
                }
            }

            if ( !found )
View Full Code Here

TOP

Related Classes of org.apache.continuum.release.model.PreparedRelease

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.