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:
@@ -1,6 +1,6 @@
|
||||
// Win32Process.java - Subclass of Process for Win32 systems.
|
||||
|
||||
/* Copyright (C) 2002, 2003, 2006 Free Software Foundation
|
||||
/* Copyright (C) 2002, 2003, 2006, 2007 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
@@ -51,9 +51,8 @@ final class Win32Process extends Process
|
||||
|
||||
public native int waitFor () throws InterruptedException;
|
||||
|
||||
public Win32Process (String[] progarray,
|
||||
String[] envp,
|
||||
File dir)
|
||||
public Win32Process (String[] progarray, String[] envp, File dir,
|
||||
boolean redirect)
|
||||
throws IOException
|
||||
{
|
||||
for (int i = 0; i < progarray.length; i++)
|
||||
@@ -64,7 +63,7 @@ final class Win32Process extends Process
|
||||
progarray[i] = "\"" + s + "\"";
|
||||
}
|
||||
|
||||
startProcess (progarray, envp, dir);
|
||||
startProcess (progarray, envp, dir, redirect);
|
||||
}
|
||||
|
||||
// The standard streams (stdin, stdout and stderr, respectively)
|
||||
@@ -81,8 +80,9 @@ final class Win32Process extends Process
|
||||
|
||||
private native boolean hasExited ();
|
||||
private native void startProcess (String[] progarray,
|
||||
String[] envp,
|
||||
File dir)
|
||||
String[] envp,
|
||||
File dir,
|
||||
boolean redirect)
|
||||
throws IOException;
|
||||
private native void cleanup ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user