Examples of enableLogging()


Examples of org.apache.maven.doxia.parser.Parser.enableLogging()

    public void parse( Reader source, String parserId, Sink sink )
        throws ParserNotFoundException, ParseException
    {
        Parser parser = parserManager.getParser( parserId );

        parser.enableLogging( new PlexusLoggerWrapper( getLogger() ) );

        parser.parse( source, sink );
    }

    /** {@inheritDoc} */
 
View Full Code Here

Examples of org.apache.maven.doxia.parser.Parser.enableLogging()

        StringReader reader = new StringReader( writer.toString() );

        writer = new StringWriter();
        sink = new TextSink( writer );
        Parser parser = createParser();
        parser.enableLogging( new PlexusLoggerWrapper( getContainer().getLogger() ) );
        parser.parse( reader, sink );
        String actual = writer.toString();

        // write to file for comparison
        fileWriter = getTestWriter( "actual" );
View Full Code Here

Examples of org.apache.maven.doxia.sink.Sink.enableLogging()

            }
            catch ( IOException e )
            {
                throw new ConverterException( "IOException: " + e.getMessage(), e );
            }
            sink.enableLogging( log );

            if ( getLog().isDebugEnabled() )
            {
                getLog().debug( "Sink used: " + sink.getClass().getName() );
            }
View Full Code Here

Examples of org.apache.maven.doxia.sink.Sink.enableLogging()

        catch ( IOException e )
        {
            throw new ConverterException( "IOException: " + e.getMessage(), e );
        }

        sink.enableLogging( log );

        if ( getLog().isDebugEnabled() )
        {
            getLog().debug( "Sink used: " + sink.getClass().getName() );
        }
View Full Code Here

Examples of org.apache.maven.doxia.siterenderer.sink.SiteRendererSink.enableLogging()

    {
        SiteRendererSink sink = new SiteRendererSink( renderingContext );

        if ( log != null )
        {
            sink.enableLogging( new MojoLogWrapper( log ) );
        }

        sink.head();

        sink.title();
View Full Code Here

Examples of org.apache.maven.shared.dependency.graph.internal.DefaultDependencyGraphBuilder.enableLogging()

    {
        DefaultDependencyGraphBuilder builder =
            (DefaultDependencyGraphBuilder) helper.getContainer().lookup( DependencyGraphBuilder.class.getCanonicalName(),
                                                                          "default" );

        builder.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_DISABLED, "DefaultDependencyGraphBuilder" ) );

        return builder;
    }

}
View Full Code Here

Examples of org.apache.maven.shared.filtering.DefaultMavenReaderFilter.enableLogging()

    private PojoConfigSource getPojoConfigSource()
    {
        final PojoConfigSource cfg =  new PojoConfigSource();
        cfg.setEncoding( "UTF-8" );
        DefaultMavenReaderFilter mavenReaderFilter = new DefaultMavenReaderFilter();
        mavenReaderFilter.enableLogging( new ConsoleLogger( 2, "fud" ) );
        cfg.setMavenReaderFilter( mavenReaderFilter );
        cfg.setEscapeString( null );
        cfg.setMavenProject( createBasicMavenProject() );

/*        expect( configSource.getFilters()).andReturn( filters );
View Full Code Here

Examples of org.codehaus.loom.components.application.DefaultApplication.enableLogging()

    private void runApplicationTest( final PartitionProfile sarMetaData )
        throws Exception
    {
        final DefaultApplication application = new DefaultApplication();
        application.enableLogging( new ConsoleLogger() );
        final MockApplicationContext context =
            new MockApplicationContext( sarMetaData, new ConsoleLogger() );
        application.setApplicationContext( context );
        application.initialize();
        application.dispose();
View Full Code Here

Examples of org.codehaus.loom.components.deployer.PhoenixProfileBuilder.enableLogging()

        parameters.put( ContainerConstants.CONFIG_DESCRIPTOR,
                        new DefaultConfiguration( "config", "", "" ) );
        parameters.put( ContainerConstants.ASSEMBLY_CLASSLOADER,
                        getClass().getClassLoader() );

        assembler.enableLogging( logger );

        return assembler.buildProfile( parameters );
    }

    public void testMalformedBlockListener()
View Full Code Here

Examples of org.codehaus.loom.components.util.verifier.SarVerifier.enableLogging()

    private void verify( final PartitionProfile profile )
        throws Exception
    {
        final ClassLoader classLoader = getClass().getClassLoader();
        final SarVerifier verifier = new SarVerifier();
        verifier.enableLogging( new ConsoleLogger() );
        verifier.verifySar( profile, classLoader );
    }
}
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.