private void checkLogChute( Properties props ) { if ( !VelocityLogChute.hasPlexusLogger() ) { VelocityLogChute.setPlexusLogger( new ConsoleLogger( Logger.LEVEL_INFO, "classworlds-writer-internal" ) ); } if ( !props.containsKey( "runtime.log.logsystem.class" ) ) { props.setProperty( "runtime.log.logsystem.class", VelocityLogChute.class.getName() ); } }
private void checkLogChute( Properties props ) { if ( !VelocityLogChute.hasPlexusLogger() ) { VelocityLogChute.setPlexusLogger( new ConsoleLogger( Logger.LEVEL_INFO, "classworlds-writer-internal" ) ); } if ( !props.containsKey( "runtime.log.logsystem.class" ) ) { props.setProperty( "runtime.log.logsystem.class", VelocityLogChute.class.getName() ); } }
private void checkLogChute( Properties props ) { if ( !VelocityLogChute.hasPlexusLogger() ) { VelocityLogChute.setPlexusLogger( new ConsoleLogger( Logger.LEVEL_INFO, "classworlds-writer-internal" ) ); } if ( !props.containsKey( "runtime.log.logsystem.class" ) ) { props.setProperty( "runtime.log.logsystem.class", VelocityLogChute.class.getName() ); } }
private File writeConfig( ClassworldsAppConfiguration config ) throws AppBooterServiceException { File classworldsConf = new File( tempDir, "classworlds.conf" ); try { ClassworldsConfWriter writer = new ClassworldsConfWriter(); Properties velocityProperties = writer.getDefaultVelocityProperties(); VelocityLogChute.setPlexusLogger( getLogger() ); velocityProperties.setProperty( "runtime.log.logsystem.class", VelocityLogChute.class.getName() ); writer.write( classworldsConf, config, velocityProperties ); getLogger().info( "Wrote classworlds.conf to: " + classworldsConf ); } catch ( ClassworldsIOException e ) { throw new AppBooterServiceException( e.getMessage(), e ); } if ( outputDebugMessages() ) { getLogger().info( "Saving Classworlds configuration at: " + classworldsConf.getAbsolutePath() ); } return classworldsConf; }
private File writeConfig( ClassworldsAppConfiguration config ) throws AppBooterServiceException { File classworldsConf = new File( tempDir, "classworlds.conf" ); try { ClassworldsConfWriter writer = new ClassworldsConfWriter(); Properties velocityProperties = writer.getDefaultVelocityProperties(); VelocityLogChute.setPlexusLogger( getLogger() ); velocityProperties.setProperty( "runtime.log.logsystem.class", VelocityLogChute.class.getName() ); writer.write( classworldsConf, config, velocityProperties ); getLogger().info( "Wrote classworlds.conf to: " + classworldsConf ); } catch ( ClassworldsIOException e ) { throw new AppBooterServiceException( e.getMessage(), e ); } if ( outputDebugMessages() ) { getLogger().info( "Saving Classworlds configuration at: " + classworldsConf.getAbsolutePath() ); } return classworldsConf; }