Examples of BuildJob


Examples of org.apache.maven.plugin.invoker.model.BuildJob

        sink.tableRow_();

        for ( Iterator iterator = buildJobs.iterator(); iterator.hasNext(); )
        {
            BuildJob buildJob = (BuildJob) iterator.next();
            renderBuildJob( buildJob, locale );
        }

        sink.table_();
View Full Code Here

Examples of org.apache.maven.plugin.invoker.model.BuildJob

        int failed = 0;
        double totalTime = 0;

        for ( Iterator iterator = buildJobs.iterator(); iterator.hasNext(); )
        {
            BuildJob buildJob = (BuildJob) iterator.next();
            if ( BuildJob.Result.SUCCESS.equals( buildJob.getResult() ) )
            {
                success++;
            }
            else if ( !BuildJob.Result.SKIPPED.equals( buildJob.getResult() ) )
            {
                failed++;
            }
            totalTime += buildJob.getTime();
        }

        sink.tableRow_();
        sink.tableRow();
View Full Code Here

Examples of org.apache.maven.plugin.invoker.model.BuildJob

        skippedJobs = new ArrayList();
        errorJobs = new ArrayList();

        for ( Iterator iterator = buildJobs.iterator(); iterator.hasNext(); )
        {
            BuildJob buildJob = (BuildJob) iterator.next();

            if ( BuildJob.Result.SUCCESS.equals( buildJob.getResult() ) )
            {
                successfulJobs.add( buildJob );
            }
            else if ( BuildJob.Result.SKIPPED.equals( buildJob.getResult() ) )
            {
                skippedJobs.add( buildJob );
            }
            else if ( BuildJob.Result.ERROR.equals( buildJob.getResult() ) )
            {
                errorJobs.add( buildJob );
            }
            else if ( buildJob.getResult() != null )
            {
                failedJobs.add( buildJob );
            }
        }
    }
View Full Code Here

Examples of org.apache.maven.plugin.invoker.model.BuildJob

                logger.error( heading );
            }

            for ( Iterator it = failedJobs.iterator(); it.hasNext(); )
            {
                BuildJob buildJob = (BuildJob) it.next();

                String item = "*  " + buildJob.getProject();
                if ( ignoreFailures )
                {
                    logger.warn( item );
                }
                else
View Full Code Here

Examples of org.apache.maven.plugin.invoker.model.BuildJob

            {
                throw new MojoExecutionException( "Failed to discover projectsDirectory from pom File parameter."
                    + " Reason: " + e.getMessage(), e );
            }

            buildJobs = new BuildJob[]{ new BuildJob( pom.getName(), BuildJob.Type.NORMAL )};
        }
        else
        {
            try
            {
View Full Code Here

Examples of org.apache.maven.plugin.invoker.model.BuildJob

        try
        {
            for ( int i = 0; i < buildJobs.length; i++ )
            {
                BuildJob project = buildJobs[i];
                runBuild( projectsDir, project, interpolatedSettingsFile );
            }
        }
        finally
        {
View Full Code Here

Examples of org.apache.maven.plugin.invoker.model.BuildJob

    {
        BuildJob[] buildJobs;

        if ( ( pom != null ) && pom.exists() )
        {
            buildJobs = new BuildJob[] { new BuildJob( pom.getAbsolutePath(), BuildJob.Type.NORMAL ) };
        }
        else if ( invokerTest != null )
        {
            String[] testRegexes = StringUtils.split( invokerTest, "," );
            List /* String */includes = new ArrayList( testRegexes.length );
View Full Code Here

Examples of org.apache.maven.plugin.invoker.model.BuildJob

        Map matches = new LinkedHashMap();

        String[] includedFiles = scanner.getIncludedFiles();
        for ( int i = 0; i < includedFiles.length; i++ )
        {
            matches.put( includedFiles[i], new BuildJob( includedFiles[i], type ) );
        }

        String[] includedDirs = scanner.getIncludedDirectories();
        for ( int i = 0; i < includedDirs.length; i++ )
        {
            String includedFile = includedDirs[i] + File.separatorChar + "pom.xml";
            if ( new File( scanner.getBasedir(), includedFile ).isFile() )
            {
                matches.put( includedFile, new BuildJob( includedFile, type ) );
            }
            else
            {
                matches.put( includedDirs[i], new BuildJob( includedDirs[i], type ) );
            }
        }

        return (BuildJob[]) matches.values().toArray( new BuildJob[matches.size()] );
    }
View Full Code Here

Examples of org.apache.maven.plugin.invoker.model.BuildJob

                throw new MojoExecutionException(
                                                  "Failed to discover projectsDirectory from pom File parameter. Reason: "
                                                      + e.getMessage(), e );
            }

            buildJobs = new BuildJob[] { new BuildJob( pom.getName(), BuildJob.Type.NORMAL ) };
        }
        else
        {
            try
            {
View Full Code Here

Examples of org.apache.maven.plugin.invoker.model.BuildJob

    {
        BuildJob[] buildJobs;

        if ( ( pom != null ) && pom.exists() )
        {
            buildJobs = new BuildJob[] { new BuildJob( pom.getAbsolutePath(), BuildJob.Type.NORMAL ) };
        }
        else if ( invokerTest != null )
        {
            String[] testRegexes = StringUtils.split( invokerTest, "," );
            List<String> includes = new ArrayList<String>( testRegexes.length );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.