Examples of enableLogging()


Examples of org.codehaus.plexus.archiver.bzip2.BZip2UnArchiver.enableLogging()

        try
        {
            BZip2UnArchiver zipUnArchiver = new BZip2UnArchiver();

            zipUnArchiver.enableLogging( this.getLogger() );

            zipUnArchiver.setDestFile( tempTarFile );

            zipUnArchiver.setSourceFile( this.getSourceFile() );
View Full Code Here

Examples of org.codehaus.plexus.archiver.gzip.GZipUnArchiver.enableLogging()

       
        try
        {
            GZipUnArchiver zipUnArchiver = new GZipUnArchiver();
           
            zipUnArchiver.enableLogging( this.getLogger() );
           
            zipUnArchiver.setDestFile( tempTarFile );
           
            zipUnArchiver.setSourceFile( this.getSourceFile() );
                      
View Full Code Here

Examples of org.codehaus.plexus.archiver.jar.JarArchiver.enableLogging()

            File jarFile = File.createTempFile( "AntMojoWrapperTest.", ".test.jar" );
            jarFile.deleteOnExit();

            JarArchiver archiver = new JarArchiver();
            archiver.enableLogging( new ConsoleLogger( Logger.LEVEL_ERROR, "archiver" ) );
            archiver.setDestFile( jarFile );
            archiver.addFile( pluginXmlFile, pluginXml );
            archiver.createArchive();

            artifactCtl = MockControl.createControl( Artifact.class );
View Full Code Here

Examples of org.codehaus.plexus.archiver.tar.TarArchiver.enableLogging()

            gzip.addFile(metadata, "metadata.gz");
            gzip.createArchive();

            final TarArchiver tar = new TarArchiver();
            // turn off logging
            tar.enableLogging(new AbstractLogger(0, "nologging") {

                public void warn(final String message, final Throwable throwable) {
                }

                public void info(final String message, final Throwable throwable) {
View Full Code Here

Examples of org.codehaus.plexus.archiver.zip.ZipUnArchiver.enableLogging()

            try
            {
                manager.getUnArchiver( (File) null );
                control.setMatcher( MockControl.ALWAYS_MATCHER );
                ZipUnArchiver zipUnArchiver = new ZipUnArchiver();
                zipUnArchiver.enableLogging( new ConsoleLogger( org.codehaus.plexus.logging.Logger.LEVEL_INFO,
                                                                "console" ) );
                control.setReturnValue( zipUnArchiver, MockControl.ONE_OR_MORE );
            }
            catch ( NoSuchArchiverException e )
            {
View Full Code Here

Examples of org.codehaus.plexus.logging.LogEnabled.enableLogging()

            LoggerManager loggerManager = componentManager.getContainer().getLoggerManager();

            ComponentDescriptor<?> descriptor = componentManager.getComponentDescriptor();
            Logger logger = loggerManager.getLoggerForComponent( descriptor.getRole(), descriptor.getRoleHint() );

            logEnabled.enableLogging( logger );
        }
    }
}
View Full Code Here

Examples of org.codehaus.plexus.msn.DefaultMsnClient.enableLogging()

public class MsnNotifierTest {

  @Test
  public void testSend() throws Exception {
    DefaultMsnClient msnClient = new DefaultMsnClient();
    msnClient.enableLogging(new org.codehaus.plexus.logging.console.ConsoleLogger(1, "if"));
    msnClient.setLogin("xx@hotmail.com");
    msnClient.setPassword("bb");

    MsnNotifier notifier = new MsnNotifier();
    notifier.setMsnClient(msnClient);
View Full Code Here

Examples of org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry.enableLogging()

            // Configure commonsRegistry
            Field fld = commonsRegistry.getClass().getDeclaredField( "configuration" );
            fld.setAccessible( true );
            fld.set( commonsRegistry, new CombinedConfiguration() );
            commonsRegistry.enableLogging( getLogger() );
            commonsRegistry.addConfigurationFromResource( "org/apache/maven/archiva/configuration/default-archiva.xml" );
           
            // Read configuration as it was intended.
            ConfigurationRegistryReader configReader = new ConfigurationRegistryReader();
            Configuration defaultConfig = configReader.read( commonsRegistry );
View Full Code Here

Examples of org.hyperic.sigar.Sigar.enableLogging()

        super(name);
    }

    public void testCreate() throws Exception {
        Sigar sigar = new Sigar();
        sigar.enableLogging(true);
        sigar.enableLogging(false);
        sigar.enableLogging(true);
        sigar.close();
    }
}
View Full Code Here

Examples of org.midonet.client.MidonetApi.enableLogging()

            qNet.add("tenant_id", tenantId);
            String url = nicAuthority.split("\\.")[1];
            String netName = url.split(":")[0];

            MidonetApi api = new MidonetApi(_midoApiLocation);
            api.enableLogging();

            for (Bridge b : api.getBridges(qNet)) {
                if (b.getName().equals(netName)) {
                    for (BridgePort p : b.getPorts()) {
                        UUID pvif = p.getVifId();
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.