Package org.apache.geronimo.gshell.shell

Examples of org.apache.geronimo.gshell.shell.Environment


      ctx.setBranding(branding);
      ctx.setLayoutManager(osgiLayoutManager.createLayoutManagerForShell(branding.getName()));
     
      // Would be nice to copy the env variables.. but can't cause it has imutable values
      // that the DefaultEnvironment tries to overwrite.
      Environment environment = new DefaultEnvironment(ctx.getIo(), new DefaultVariables());
      ctx.setEnvironment(environment);
          IOTargetSource.setIO(ctx.getIo());
          EnvironmentTargetSource.setEnvironment(environment);
      InteractiveShell interactiveShell = createInteractiveShell(ctx);
      if( args!=null && args.length>0 ) {
View Full Code Here


    public void init() {
        executor = new DefaultCommandExecutor(layoutManager, commandRegistry, commandLineBuilder, env) {
            @Override
            protected Thread createThread(final Runnable run) {
                final IO proxyio = ProxyIO.getIO();
                final Environment env = EnvironmentTargetSource.getEnvironment();
                return new Thread() {
                    @Override
                    public void run() {
                        EnvironmentTargetSource.setEnvironment(env);
                        ProxyIO.setIO(proxyio);
View Full Code Here

TOP

Related Classes of org.apache.geronimo.gshell.shell.Environment

Copyright © 2018 www.massapicom. 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.