/** * @param overlay is P_OVERLAY if true and P_NOWAIT if false * @param command full command string * @param program program to be invoked * @param path is path to be searched when needed (delimited by ; on windows) * * @return the pid */ public int spawn(boolean overlay, String command, String program, String path, String[] envp) { if (command == null) return -1; String[] cmds = WindowsHelpers.processCommandLine(this, command, program, path); return childResult(createProcess("spawn", cmds[0], cmds[1], null, null, null, null, envp), overlay); }
/** * @param overlay is P_OVERLAY if true and P_NOWAIT if false * @param command full command string * @param program program to be invoked * @param path is path to be searched when needed (delimited by ; on windows) * * @return the pid */ public int spawn(boolean overlay, String command, String program, String path, String[] envp) { if (command == null) return -1; String[] cmds = WindowsHelpers.processCommandLine(this, command, program, path); return childResult(createProcess("spawn", cmds[0], cmds[1], null, null, null, null, envp), overlay); }
/** * @param overlay is P_OVERLAY if true and P_NOWAIT if false * @param command full command string * @param program program to be invoked * @param path is path to be searched when needed (delimited by ; on windows) * * @return the pid */ public int spawn(boolean overlay, String command, String program, String path, String[] envp) { if (command == null) return -1; String[] cmds = WindowsHelpers.processCommandLine(this, command, program, path); return childResult(createProcess("spawn", cmds[0], cmds[1], null, null, null, null, envp), overlay); }
/** * @param overlay is P_OVERLAY if true and P_NOWAIT if false * @param command full command string * @param program program to be invoked * @param path is path to be searched when needed (delimited by ; on windows) * @param envp is a set of KEY=VALUE strings to be set in the child process * @return the pid */ public int spawn(boolean overlay, String command, String program, String path, String[] envp) { if (command == null) return -1; String[] cmds = WindowsHelpers.processCommandLine(this, command, program, path); return childResult(createProcess("spawn", cmds[0], cmds[1], null, null, null, null, envp), overlay); }
/** * @param overlay is P_OVERLAY if true and P_NOWAIT if false * @param program to be invoked * @param argv is all args including argv0 being what is executed * @param path is path to be searched when needed (delimited by ; on windows) * @return the pid */ public int aspawn(boolean overlay, String program, String[] argv, String path, String[] envp) { try { if (argv.length == 0) return -1; String[] cmds = WindowsHelpers.processCommandArgs(this, program, argv, path); return childResult(createProcess("aspawn", cmds[0], cmds[1], null, null, null, null, envp), overlay); } catch (Exception e) { return -1; } }
/** * @param overlay is P_OVERLAY if true and P_NOWAIT if false * @param program to be invoked * @param argv is all args including argv0 being what is executed * @param path is path to be searched when needed (delimited by ; on windows) * @return the pid */ public int aspawn(boolean overlay, String program, String[] argv, String path, String[] envp) { try { if (argv.length == 0) return -1; String[] cmds = WindowsHelpers.processCommandArgs(this, program, argv, path); return childResult(createProcess("aspawn", cmds[0], cmds[1], null, null, null, null, envp), overlay); } catch (Exception e) { return -1; } }
/** * @param overlay is P_OVERLAY if true and P_NOWAIT if false * @param program to be invoked * @param argv is all args including argv0 being what is executed * @param path is path to be searched when needed (delimited by ; on windows) * @return the pid */ public int aspawn(boolean overlay, String program, String[] argv, String path, String[] envp) { try { if (argv.length == 0) return -1; String[] cmds = WindowsHelpers.processCommandArgs(this, program, argv, path); return childResult(createProcess("aspawn", cmds[0], cmds[1], null, null, null, null, envp), overlay); } catch (Exception e) { return -1; } }
/** * @param overlay is P_OVERLAY if true and P_NOWAIT if false * @param program to be invoked * @param argv is all args including argv0 being what is executed * @param path is path to be searched when needed (delimited by ; on windows) * @param envp is a set of KEY=VALUE strings to be set in the child process * @return the pid */ public int aspawn(boolean overlay, String program, String[] argv, String path, String[] envp) { try { if (argv.length == 0) return -1; String[] cmds = WindowsHelpers.processCommandArgs(this, program, argv, path); return childResult(createProcess("aspawn", cmds[0], cmds[1], null, null, null, null, envp), overlay); } catch (Exception e) { return -1; } }