public void write( File target, ClassworldsAppConfiguration config, Map<String, Object> context ) throws ClassworldsIOException { VelocityEngine engine = new VelocityEngine(); try { Properties props = getDefaultVelocityProperties(); checkLogChute( props ); engine.init( props ); } catch ( Exception e ) { throw new ClassworldsIOException( "Error initializing Velocity: " + e.getMessage(), e ); } _write( target, config, context, engine ); }
public void write( File target, ClassworldsAppConfiguration config ) throws ClassworldsIOException { VelocityEngine engine = new VelocityEngine(); try { Properties props = getDefaultVelocityProperties(); checkLogChute( props ); engine.init( props ); } catch ( Exception e ) { throw new ClassworldsIOException( "Error initializing Velocity: " + e.getMessage(), e ); } _write( target, config, null, engine ); }
public void write( File target, ClassworldsAppConfiguration config ) throws ClassworldsIOException { VelocityEngine engine = new VelocityEngine(); try { Properties props = getDefaultVelocityProperties(); checkLogChute( props ); engine.init( props ); } catch ( Exception e ) { throw new ClassworldsIOException( "Error initializing Velocity: " + e.getMessage(), e ); } _write( target, config, null, engine ); }
public void write( File target, ClassworldsAppConfiguration config ) throws ClassworldsIOException { VelocityEngine engine = new VelocityEngine(); try { Properties props = getDefaultVelocityProperties(); checkLogChute( props ); engine.init( props ); } catch ( Exception e ) { throw new ClassworldsIOException( "Error initializing Velocity: " + e.getMessage(), e ); } _write( target, config, null, engine ); }
public void write( File target, ClassworldsAppConfiguration config, Map<String, Object> context ) throws ClassworldsIOException { VelocityEngine engine = new VelocityEngine(); try { Properties props = getDefaultVelocityProperties(); checkLogChute( props ); engine.init( props ); } catch ( Exception e ) { throw new ClassworldsIOException( "Error initializing Velocity: " + e.getMessage(), e ); } _write( target, config, context, engine ); }
public void write( File target, ClassworldsAppConfiguration config, Map<String, Object> context ) throws ClassworldsIOException { VelocityEngine engine = new VelocityEngine(); try { Properties props = getDefaultVelocityProperties(); checkLogChute( props ); engine.init( props ); } catch ( Exception e ) { throw new ClassworldsIOException( "Error initializing Velocity: " + e.getMessage(), e ); } _write( target, config, context, engine ); }
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; }