sources.am, [...]: Rebuilt.
* sources.am, Makefile.in: Rebuilt. * scripts/makemake.tcl (emit_package_rule): Don't omit VMProcess.java. * Makefile.am (nat_source_files): Added natVMProcess.cc. (inner_nat_headers): Added ImmediateEOFInputStream.h. * gcj/javaprims.h: Regenerated. * java/lang/System.java (EnvironmentMap): Now package-private. (EnvironmentMap(Map)): New constructor. (EnvironmentMap.put): New method. * java/lang/natWin32Process.cc (startProcess): Update. * java/lang/Win32Process.java (Win32Process): Added 'redirect' argument. (startProcess): Likewise. * java/lang/EcosProcess.java (EcosProcess): Added 'redirect' argument. * java/lang/natPosixProcess.cc (nativeSpawn): Handle redirection. * java/lang/PosixProcess.java (redirect): New field. (PosixProcess): Added 'redirect' argument. * java/lang/natRuntime.cc (execInternal): Added 'redirect' argument to Process creation. * java/lang/natVMProcess.cc: New file. * java/lang/ProcessBuilder.java: Removed. * java/lang/VMProcess.java: New file. From-SVN: r122553
This commit is contained in:
parent
344189f9ec
commit
f4a2a1deec
29 changed files with 233 additions and 127 deletions
|
@ -1,5 +1,5 @@
|
|||
// PosixProcess.java - Subclass of Process for POSIX systems.
|
||||
/* Copyright (C) 1998, 1999, 2004, 2006 Free Software Foundation
|
||||
/* Copyright (C) 1998, 1999, 2004, 2006, 2007 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
|
@ -354,8 +354,8 @@ final class PosixProcess extends Process
|
|||
*/
|
||||
private native void nativeSpawn();
|
||||
|
||||
PosixProcess(String[] progarray, String[] envp, File dir)
|
||||
throws IOException
|
||||
PosixProcess(String[] progarray, String[] envp, File dir, boolean redirect)
|
||||
throws IOException
|
||||
{
|
||||
// Check to ensure there is something to run, and avoid
|
||||
// dereferencing null pointers in native code.
|
||||
|
@ -365,6 +365,7 @@ final class PosixProcess extends Process
|
|||
this.progarray = progarray;
|
||||
this.envp = envp;
|
||||
this.dir = dir;
|
||||
this.redirect = redirect;
|
||||
|
||||
// Start a ProcessManager if there is not one already running.
|
||||
synchronized (queueLock)
|
||||
|
@ -419,6 +420,7 @@ final class PosixProcess extends Process
|
|||
private String[] progarray;
|
||||
private String[] envp;
|
||||
private File dir;
|
||||
private boolean redirect;
|
||||
|
||||
/** Set by the ProcessManager on problems starting. */
|
||||
private Throwable exception;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue