Package org.apache.maven.continuum

Examples of org.apache.maven.continuum.Continuum


    {
        WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext( sce
            .getServletContext() );

        // to simulate Plexus load on start with Spring
        Continuum continuum = (Continuum) wac.getBean( PlexusToSpringUtils.buildSpringId( Continuum.class ) );

        BuildsManager buildsManager = (BuildsManager) wac.getBean( PlexusToSpringUtils.buildSpringId( BuildsManager.class, "parallel" ) );

        TaskQueueExecutor prepareRelease = (TaskQueueExecutor) wac.getBean( PlexusToSpringUtils
            .buildSpringId( TaskQueueExecutor.class, "prepare-release" ) );
View Full Code Here


        String jobName = jobDetail.getName();

        logger.info( ">>>>>>>>>>>>>>>>>>>>> Executing purge job (" + jobName + ")..." );

        Continuum continuum = (Continuum) jobDetail.getJobDataMap().get( ContinuumSchedulerConstants.CONTINUUM );

        ContinuumPurgeManager purgeManager = continuum.getPurgeManager();
       
        Schedule schedule = (Schedule) jobDetail.getJobDataMap().get( ContinuumSchedulerConstants.SCHEDULE );

        try
        {
View Full Code Here

        String jobName = jobDetail.getName();

        logger.info( ">>>>>>>>>>>>>>>>>>>>> Executing build job (" + jobName + ")..." );

        Continuum continuum = (Continuum) jobDetail.getJobDataMap().get( ContinuumSchedulerConstants.CONTINUUM );

        Schedule schedule = (Schedule) jobDetail.getJobDataMap().get( ContinuumSchedulerConstants.SCHEDULE );

        try
        {
            continuum.buildProjects( schedule );
        }
        catch ( ContinuumException e )
        {
            logger.error( "Error building projects for job" + jobName + ".", e );
        }
View Full Code Here

    extends AbstractIntegrationTest
{
    public void testAntSvn()
        throws Exception
    {
        Continuum continuum = getContinuum();

        initializeSvnRoot();

        progress( "Initializing Ant SVN project" );

        File root = getItFile( "ant-svn" );

        initAntProject( root );

        svnImport( root, "ant-svn", getSvnRoot() );

        progress( "Adding Ant SVN project" );

        Project p = new Project();
        p.setScmUrl( makeScmUrl( "svn", getSvnRoot(), "ant-svn" ) );
        p.setName( "Ant SVN Project" );
//        p.getNotifiers().add( makeMailNotifier( email ) );
        p.setVersion( "3.0" );

        BuildDefinition bd = new BuildDefinition();
        bd.setArguments( "-v" );
        bd.setBuildFile( "build.xml" );
        bd.setGoals( "clean build" );
        bd.setDefaultForProject( true );
       
        p.addBuildDefinition( bd );

        int projectId = continuum.addProject( p, AntBuildExecutor.ID );

        waitForSuccessfulCheckout( projectId );

        Project project = continuum.getProject( projectId );

        assertProject( projectId, "Ant SVN Project", "3.0", "-v", "ant", project );

        progress( "Building SVN Ant project" );
View Full Code Here

    }

    public void testAntCvs()
        throws Exception
    {
        Continuum continuum = getContinuum();

        initializeCvsRoot();

        progress( "Initializing Ant CVS project" );

        File root = getItFile( "ant-cvs" );

        initAntProject( root );

        cvsImport( root, "ant-cvs", getCvsRoot() );

        Project p = new Project();
        p.setScmUrl( makeScmUrl( "cvs", getCvsRoot(), "ant-cvs" ) );
        p.setName( "Ant CVS Project" );
//        p.getNotifiers().add( makeMailNotifier( email ) );
        p.setVersion( "3.0" );

        BuildDefinition bd = new BuildDefinition();
        bd.setArguments( "-debug" );
        bd.setBuildFile( "build.xml" );
        bd.setGoals( "clean build" );
        bd.setDefaultForProject( true );
        p.addBuildDefinition( bd );

        int projectId = continuum.addProject( p, AntBuildExecutor.ID );

        waitForSuccessfulCheckout( projectId );

        Project project = continuum.getProject( projectId );
        assertProject( projectId, "Ant CVS Project", "3.0", "-debug", AntBuildExecutor.ID, project );

        progress( "Building CVS Ant project" );

        int buildId = buildProject( projectId, ContinuumProjectState.TRIGGER_SCHEDULED ).getId();
View Full Code Here

        line();

        deleteAndCreateDirectory( rootDirectory );

        progress( "Connecting to and starting Continuum" );
        Continuum continuum = getContinuum();

        progress( "Removing all existing projects from Continuum." );

        Collection collection = continuum.getAllProjects( 0, 0 );

        for ( Iterator it = collection.iterator(); it.hasNext(); )
        {
            Project project = (Project) it.next();

            continuum.removeProject( project.getId() );
        }

        AbstractContinuumTest.setUpConfigurationService( (ConfigurationService) lookup( ConfigurationService.ROLE ) );

        configurationService = (ConfigurationService) lookup( ConfigurationService.ROLE );
View Full Code Here

    {
        WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext( sce
            .getServletContext() );

        // to simulate Plexus load on start with Spring
        Continuum continuum = (Continuum) wac.getBean( PlexusToSpringUtils.buildSpringId( Continuum.class ) );

        TaskQueueExecutor buildProject = (TaskQueueExecutor) wac.getBean( PlexusToSpringUtils
            .buildSpringId( TaskQueueExecutor.class, "build-project" ) );

        TaskQueueExecutor checkOutProject = (TaskQueueExecutor) wac.getBean( PlexusToSpringUtils
View Full Code Here

        String jobName = jobDetail.getName();

        logger.info( ">>>>>>>>>>>>>>>>>>>>> Executing purge job (" + jobName + ")..." );

        Continuum continuum = (Continuum) jobDetail.getJobDataMap().get( ContinuumSchedulerConstants.CONTINUUM );

        ContinuumPurgeManager purgeManager = continuum.getPurgeManager();
       
        Schedule schedule = (Schedule) jobDetail.getJobDataMap().get( ContinuumSchedulerConstants.SCHEDULE );

        try
        {
View Full Code Here

        String jobName = jobDetail.getName();

        logger.info( ">>>>>>>>>>>>>>>>>>>>> Executing build job (" + jobName + ")..." );

        Continuum continuum = (Continuum) jobDetail.getJobDataMap().get( ContinuumSchedulerConstants.CONTINUUM );

        Schedule schedule = (Schedule) jobDetail.getJobDataMap().get( ContinuumSchedulerConstants.SCHEDULE );

        try
        {
            continuum.buildProjects( schedule );
        }
        catch ( ContinuumException e )
        {
            logger.error( "Error building projects for job" + jobName + ".", e );
        }
View Full Code Here

    extends AbstractIntegrationTest
{
    public void testBasic()
        throws Exception
    {
        Continuum continuum = getContinuum();

        initializeCvsRoot();

        progress( "Initializing Maven 1 CVS project" );

        File root = getItFile( "maven-1" );

        initMaven1Project( root, "maven-1", "cvs", getCvsRoot() );

        progress( "Adding Maven 1 project" );

        int projectId = getProjectId( continuum.addMavenOneProject( getFileUrl( root ) + "/project.xml" ) );

        waitForSuccessfulCheckout( projectId );

        assertEquals(1, continuum.getProjectWithAllDetails( projectId ).getBuildDefinitions().size());

        Project project = continuum.getProjectWithCheckoutResult( projectId );

        assertProject( projectId, "Maven 1 Project", "1.0", "", MavenOneBuildExecutor.ID, project );

        assertCheckedOutFiles( project, new String[]{"/project.xml", "/src/main/java/Foo.java"} );

        // ----------------------------------------------------------------------
        //
        // ----------------------------------------------------------------------

        progress( "Building Maven 1 project" );

        int buildId = buildProject( projectId, ContinuumProjectState.TRIGGER_SCHEDULED ).getId();

        assertSuccessfulMaven1Build( buildId, projectId );

        assertEquals(1, continuum.getProjectWithAllDetails( projectId ).getBuildDefinitions().size());

        // ----------------------------------------------------------------------
        //
        // ----------------------------------------------------------------------
View Full Code Here

TOP

Related Classes of org.apache.maven.continuum.Continuum

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.