示例#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());
  }
示例#2
0
 public static void refreshCachedParentEnvironmentVariableBlock() {
   synchronized (ProcessBuilder.class) {
     cached_parent_environment = impl.requestParentEnvironmentVariableBlock();
   }
 }