Java Code Examples for org.pentaho.di.core.util.EnvUtil#environmentInit()
The following examples show how to use
org.pentaho.di.core.util.EnvUtil#environmentInit() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JPanelTransformation.java From nordpos with GNU General Public License v3.0 | 6 votes |
@Override public void init(AppView app) throws BeanFactoryException { this.app = app; // dlSystem = (DataLogicSystem) app.getBean(DataLogicSystem.class.getName()); // hostProp = dlSystem.getResourceAsProperties(app.getProperties() + "/properties"); this.app.waitCursorBegin(); try { KettleEnvironment.init(false); EnvUtil.environmentInit(); } catch (KettleException ex) { MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.syncerror"), ex); msg.show(this); } this.app.waitCursorEnd(); }
Example 2
Source File: KettleClientEnvironment.java From pentaho-kettle with Apache License 2.0 | 4 votes |
public static synchronized void init( List<PluginTypeInterface> pluginsToLoad ) throws KettleException { if ( initialized != null ) { return; } if ( KettleClientEnvironment.instance == null ) { KettleClientEnvironment.instance = new KettleClientEnvironment(); } createKettleHome(); // Read the kettle.properties file before anything else // EnvUtil.environmentInit(); // Initialize the logging back-end. // KettleLogStore.init(); // Add console output so that folks see what's going on... // TODO: make this configurable... // if ( !"Y".equalsIgnoreCase( System.getProperty( Const.KETTLE_DISABLE_CONSOLE_LOGGING, "N" ) ) ) { KettleLogStore.getAppender().addLoggingEventListener( new ConsoleLoggingEventListener() ); } KettleLogStore.getAppender().addLoggingEventListener( new Slf4jLoggingEventListener() ); // Load plugins // pluginsToLoad.forEach( PluginRegistry::addPluginType ); PluginRegistry.init(); List<PluginInterface> logginPlugins = PluginRegistry.getInstance().getPlugins( LoggingPluginType.class ); initLogginPlugins( logginPlugins ); String passwordEncoderPluginID = Const.NVL( EnvUtil.getSystemProperty( Const.KETTLE_PASSWORD_ENCODER_PLUGIN ), "Kettle" ); Encr.init( passwordEncoderPluginID ); initialized = new Boolean( true ); }