Package org.apache.maven.monitor.logging

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


        Mojo mojo = (Mojo) lookup( Mojo.ROLE, groupId + ":" + artifactId + ":" + version + ":" + goal );

        LoggerManager loggerManager = (LoggerManager) getContainer().lookup( LoggerManager.class );
       
        Log mojoLogger = new DefaultLog( loggerManager.getLoggerForComponent( Mojo.ROLE ) );

        mojo.setLog( mojoLogger );

        if ( pluginConfiguration != null )
        {
View Full Code Here


        Mojo mojo = (Mojo) lookup( Mojo.ROLE, groupId + ":" + artifactId + ":" + version + ":" + goal );

        LoggerManager loggerManager = (LoggerManager) getContainer().lookup( LoggerManager.class );
       
        Log mojoLogger = new DefaultLog( loggerManager.getLoggerForComponent( Mojo.ROLE ) );

        mojo.setLog( mojoLogger );

        if ( pluginConfiguration != null )
        {
View Full Code Here

    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

    project.setBuild(new Build());
    project.getBuild().setDirectory(outputDir.getAbsolutePath());
    System.out.println("OutputDir = " + project.getBuild().getDirectory());
    mojo = new QueryTranslatorTranslateMojo();
    mojo.setProject(project);
    mojo.setLog(new DefaultLog(new ConsoleLogger(0, "junit")));
    mojo.setDictionary(TestInfo.DICTIONARY_DERBY);
    mojo.setDriverName(TestInfo.DRIVER_DERBY);
    mojo.setUrl(TestInfo.URL_DERBY);
    mojo.getPackageNames().add(TableA.class.getPackage().getName());
  }
View Full Code Here

  private QueryTranslatorValidateMojo mojo = null;
 
  @Before
  public void setUp() throws Exception {
    mojo = new QueryTranslatorValidateMojo();
    mojo.setLog(new DefaultLog(new ConsoleLogger(4, "junit")));
    mojo.getPackageNames().clear();
  }
View Full Code Here

                }
            }

            if ( mojo instanceof Mojo )
            {
                ( (Mojo) mojo ).setLog( new DefaultLog( logger ) );
            }

            Xpp3Dom dom = mojoExecution.getConfiguration();

            PlexusConfiguration pomConfiguration;
View Full Code Here

    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

    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

            }

            if ( mojo instanceof Mojo )
            {
                Logger mojoLogger = loggerManager.getLoggerForComponent( mojoDescriptor.getImplementation() );
                ( (Mojo) mojo ).setLog( new DefaultLog( mojoLogger ) );
            }

            Xpp3Dom dom = mojoExecution.getConfiguration();

            PlexusConfiguration pomConfiguration;
View Full Code Here

    when(pluginMgmtMock.getPlugins()).thenReturn(new LinkedList<Plugin>());
    when(this.mockMavenProject.getDependencyManagement()).thenReturn(depMgmtMock);
    when(this.mockMavenProject.getPluginManagement()).thenReturn(pluginMgmtMock);

    ConsoleLogger plexusLogger = new ConsoleLogger(Logger.LEVEL_DEBUG, "testLogger");
    when(this.mockHelper.getLog()).thenReturn(new DefaultLog(plexusLogger));

    when(this.mockHelper.evaluate("${project}")).thenReturn(this.mockMavenProject);

    this.testRule = createRule();
    this.testRule.initialize(this.mockHelper, createEmptyPom(), this.projectModel);
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.