Package org.apache.maven.monitor.logging

Examples of org.apache.maven.monitor.logging.DefaultLog


    public void contextualize( Context context )
        throws ContextException
    {
        container = (PlexusContainer) context.get( PlexusConstants.PLEXUS_KEY );

        mojoLogger = new DefaultLog( container.getLoggerManager().getLoggerForComponent( Mojo.ROLE ) );
    }
View Full Code Here


    mojo.root = FitNesseHelper.DEFAULT_ROOT;
    mojo.project = new MavenProject();
    mojo.project.setFile(new File(getClass().getResource("pom.xml").getPath()));
   
    logStream = new ByteArrayOutputStream();
    mojo.setLog(new DefaultLog(new PrintStreamLogger(
      Logger.LEVEL_INFO, "test", new PrintStream(logStream))));
  }
View Full Code Here

    this.mojo.pluginDescriptor = new PluginDescriptor();
    this.mojo.pluginManager = mock(BuildPluginManager.class);
    this.mojo.session = mock(MavenSession.class);
       
    this.logStream = new ByteArrayOutputStream();
    this.mojo.setLog(new DefaultLog(new PrintStreamLogger(
      Logger.LEVEL_INFO, "test", new PrintStream(this.logStream))));
  }
View Full Code Here

  }
 
  @Test
  public void testArtifactResolutionExceptions() throws MojoExecutionException {
   
    helper.mojo.setLog(new DefaultLog(new PrintStreamLogger(
      Logger.LEVEL_DEBUG, "test", new PrintStream(helper.logStream))));
   
        Artifact g1a1 = helper.createArtifact("g1", "a1");
        Artifact g1a2 = helper.createArtifact("g1", "a2");
        Artifact g1a3 = helper.createArtifact("g1", "a3");
View Full Code Here

    mojo.project.setFile(new File(getClass().getResource("pom.xml").getPath()));
    mojo.project.setBuild(new Build());
    mojo.project.getBuild().setTestOutputDirectory("test_out");
   
    logStream = new ByteArrayOutputStream();
    mojo.setLog(new DefaultLog(new PrintStreamLogger(
      Logger.LEVEL_INFO, "test", new PrintStream(logStream))));
   
    FileUtils.deleteQuietly(workingDir);
    FileUtils.deleteQuietly(mojo.resultsDir);
    FileUtils.deleteQuietly(mojo.reportsDir);
View Full Code Here

  private static final String PORT = "9124"; // Using default port disturbs other tests for some reason

  @After
  public void tearDown() {
    ByteArrayOutputStream logStream = new ByteArrayOutputStream();
    Log log = new DefaultLog(new PrintStreamLogger(
      Logger.LEVEL_INFO, "test", new PrintStream(logStream)));
         new FitNesseHelper(log).shutdownFitNesseServer(PORT);
  }
View Full Code Here

  public void setUp() throws IOException {
   
    mojo = new VerifyMojo();
   
    logStream = new ByteArrayOutputStream();
    mojo.setLog(new DefaultLog(new PrintStreamLogger(
      Logger.LEVEL_INFO, "test", new PrintStream(logStream))));
  }
View Full Code Here

  @Before
  public void setUp() {
    artifactHandler = mock(ArtifactHandler.class);
   
    logStream = new ByteArrayOutputStream();
    Log log = new DefaultLog(new PrintStreamLogger(
      Logger.LEVEL_INFO, "test", new PrintStream(logStream)));
   
    fitNesseHelper = new FitNesseHelper(log);
  }
View Full Code Here

    private File baseDirWhitespace;
   
  @Before
  public void setUp() {
    logStream = new ByteArrayOutputStream();
    Log log = new DefaultLog(new PrintStreamLogger(
      Logger.LEVEL_INFO, "test", new PrintStream(logStream)));
   
    fitNesseHelper = new FitNesseHelper(log);
   
        baseDir = new File("/tmp", BASE_DIR);
View Full Code Here

        addDependency("og1", "oa1", Artifact.SCOPE_COMPILE, true);
        addDependency("og1", "oa2", Artifact.SCOPE_COMPILE, true);
        addDependency("og2", "oa3", Artifact.SCOPE_COMPILE, true);
   
    this.logStream = new ByteArrayOutputStream();
    this.mojo.setLog(new DefaultLog(new PrintStreamLogger(
      Logger.LEVEL_INFO, "test", new PrintStream(this.logStream))));
  }
View Full Code Here

TOP

Related Classes of org.apache.maven.monitor.logging.DefaultLog

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.