Exemplo n.º 1
0
  public IProcess start() {
    if (executable == null) {
      throw new IllegalStateException("executable must be set before launching a child process");
    }

    return impl.launch(
        inherit_parent_environment,
        env.toCoalescedEnvironmentVariableBlock(getParentEnvironmentVariableBlock()),
        getCommandLine(),
        getListeners());
  }
Exemplo n.º 2
0
 public static void refreshCachedParentEnvironmentVariableBlock() {
   synchronized (ProcessBuilder.class) {
     cached_parent_environment = impl.requestParentEnvironmentVariableBlock();
   }
 }