Package org.apache.maven.plugin.logging

Examples of org.apache.maven.plugin.logging.SystemStreamLog


    /**
     * Test configuration properties.
     */
    public void testConfigurationProperties() {
       
        org.apache.maven.plugin.logging.Log log = new SystemStreamLog();
       
        DeployMojo deployMojo = new DeployMojo();
        deployMojo.setLog(log);
        deployMojo.setConfigurationFile(
                "src/test/resources/testConfiguration.properties");
View Full Code Here


        this.log = log;
    }

    public Log getLog() {
        if (log == null) {
            setLog(new SystemStreamLog());
        }
        return log;
    }
View Full Code Here

        this.log = log;
    }

    public Log getLog() {
        if (log == null) {
            setLog(new SystemStreamLog());
        }
        return log;
    }
View Full Code Here

    public Log getLog()
    {
        if ( this.log == null )
        {
            this.log = new SystemStreamLog();
        }
        return this.log;
    }
View Full Code Here

        verifyFormattedFiles(nonFormattedFiles, testSourceDir.listFiles());

        // test with debug on
        setUpTestFiles();
        nonFormattedFiles = testSourceDir.listFiles();
        Log log = new SystemStreamLog() {
            public boolean isDebugEnabled() {
                return true;
            }
        };
View Full Code Here

    public void testExecuteFailOnErrorTest() throws Exception {

        setUpTestFiles();

        testObject.setFailOnError(false);
        Log log = new SystemStreamLog() {
            public boolean isDebugEnabled() {
                throw new IllegalArgumentException("Just testing, no worries.");
            }
        };
        testObject.setLog(log);
View Full Code Here

        ArtifactRepository localRepo = createLocalRepository();
        MavenProjectBuilder projectBuilder = createProjectBuilder( typeList.indexOf( type ) > -1, installAsJar );
        ArchiverManager archiverManager = createArchiverManager( typeList.indexOf( type ) > -1, installAsJar );
        InputHandler inputHandler = createInputHandler();

        Log log = new SystemStreamLog();

        mm.replayAll();

        InstallPluginsMojo mojo =
            new InstallPluginsMojo( eclipseDir, overwrite, Collections.singletonList( artifact ), typeList, localRepo,
View Full Code Here

{
    private static final String ENCODING = "UTF-8";

    public void testEmptyQuery()
    {
        String actual = new JqlQueryBuilder( new SystemStreamLog() ).build();
        String expected = "";
        assertEquals( expected, actual );
    }
View Full Code Here

        assertEquals( expected, actual );
    }

    private JiraQueryBuilder createBuilder()
    {
        return new JqlQueryBuilder( new SystemStreamLog() );
    }
View Full Code Here

        }
    }
   
    private class PlanProcessorMojoTester extends PlanProcessorMojo {
        public PlanProcessorMojoTester() {
            log = new SystemStreamLog();
        }
View Full Code Here

TOP

Related Classes of org.apache.maven.plugin.logging.SystemStreamLog

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.