Mohan Embar
1611915067
Win32Process.java: Added nested class EOFInputStream.
...
* java/lang/Win32Process.java: Added nested class EOFInputStream.
* java/lang/natWin32Process.cc (ChildProcessPipe): Added DUMMY
enum and implementation.
(startProcess): Use redirect flag.
* classpath/lib/java/lang/Win32Process.class: Regenerated.
* classpath/lib/java/lang/Win32Process$EOFInputStream.class: New.
* gcj/javaprims.h: Regenerated.
* java/lang/Win32Process$EOFInputStream.h: New.
From-SVN: r122668
2007-03-07 18:05:39 +00:00
Tom Tromey
f4a2a1deec
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
2007-03-05 15:57:13 +00:00
Tom Tromey
97b8365caf
Merged gcj-eclipse branch to trunk.
...
From-SVN: r120621
2007-01-09 19:58:05 +00:00
Mohan Embar
cafa50327c
re PR libgcj/12231 ([win32] Console applications spawned via Runtime.exec( ) in a GUI application flash console window)
...
PR libgcj/12231
* java/lang/Win32Process.java (hasExited) Changed from
public to private.
(startProcess): Likewise.
(cleanup): Likewise.
* java/lang/natWin32Process.cc (cleanup) Don't close
input, output and error streams.
(ChildProcessPipe): New helper class.
(startProcess): Refactored to use ChildProcessPipe.
Use CREATE_NO_WINDOW when launching child process.
From-SVN: r73326
2003-11-07 03:16:49 +00:00
Ranjit Mathew
cc33095ccf
Win32Process.java (ConcreteProcess): Surround a command line element with quotes if it contains an embedded space or tab.
...
2003-07-26 Ranjit Mathew <rmathew@hotmail.com>
* java/lang/Win32Process.java (ConcreteProcess): Surround
a command line element with quotes if it contains an
embedded space or tab.
* java/lang/natWin32Process.cc (startProcess): Do not
surround command line elements with quotes here.
From-SVN: r69844
2003-07-27 04:13:03 +00:00
Ranjit Mathew
d6a2d36ee7
Win32Process.java (destroy): Declare as native.
...
2003-02-10 Ranjit Mathew <rmathew@hotmail.com>
* java/lang/Win32Process.java (destroy): Declare as native.
(hasExited): New native method.
(exitValue): Define.
(getErrorStream): Likewise.
(getInputStream): Likewise.
(getOutputStream): Likewise.
(waitFor): Declare as native.
(startProcess): New native method.
(cleanup): Likewise.
(ConcreteProcess): Define.
(outputStream, inputStream, errorStream): New members.
(procHandle, exitCode): Likewise.
* java/lang/natWin32Process.cc
(java::lang::ConcreteProcess::cleanup): Define.
(java::lang::ConcreteProcess::destroy): Likewise.
(java::lang::ConcreteProcess::hasExited): Likewise.
(java::lang::ConcreteProcess::waitFor): Likewise.
(new_string): Likewise.
(java::lang::ConcreteProcess::startProcess): Likewise.
From-SVN: r62657
2003-02-10 23:52:56 +00:00
Jesse Rosenstock
eb812b2c15
Fix for PR libgcj/7570 and PR libgcj/7578:
...
2002-08-13 Jesse Rosenstock <jmr@ugcs.caltech.edu>
Fix for PR libgcj/7570 and PR libgcj/7578:
* java/lang/natPosixProcess.cc: Include java/io/File.h.
(startProcess): Handle new `dir' argument.
* java/lang/Win32Process.java (ConcreteProcess): Added `dir'
argument.
* java/lang/PosixProcess.java (ConcreteProcess): Added `dir'
argument.
(startProcess): Likewise.
* java/lang/EcosProcess.java (ConcreteProcess): Added `dir'
argument.
* java/lang/Runtime.java (execInternal): Added `dir' argument.
(exec): Don't create new environment if ENV==null. Pass DIR to
execInternal.
* java/lang/natRuntime.cc: Include java/io/File.h.
(execInternal): Added `dir' argument.
From-SVN: r56268
2002-08-14 01:07:59 +00:00
Tom Tromey
0c1fcb02b1
Win32Process.java: Added comment.
...
* java/lang/Win32Process.java: Added comment.
* include/posix.h (_Jv_platform_close_on_exec): New function.
Include fcntl.h.
* include/win32.h (_Jv_platform_close_on_exec): New function.
* java/net/natPlainSocketImpl.cc (create): Set close-on-exec
flag.
(accept): Likewise.
* java/net/natPlainDatagramSocketImpl.cc (create): Set
close-on-exec flag.
* java/io/natFileDescriptorPosix.cc (open): Set close-on-exec
flag.
From-SVN: r50536
2002-03-10 17:59:23 +00:00
Adam Megacz
abfabb9850
Win32Process.java (ConcreteProcess): Now throws an IOException so that Throwable.printStackTrace fails correctly.
...
2002-03-09 Adam Megacz <adam@xwt.org>
* java/lang/Win32Process.java (ConcreteProcess): Now throws an
IOException so that Throwable.printStackTrace fails correctly.
From-SVN: r50488
2002-03-09 08:47:40 +00:00
Adam Megacz
f5d8c6600c
Win32Process.java: Created a dummy class to allow build process to run to completion.
...
2002-02-24 Adam Megacz <adam@xwt.org>
* java/lang/Win32Process.java: Created a dummy class to allow
build process to run to completion.
From-SVN: r50013
2002-02-24 23:17:26 +00:00
Adam Megacz
54a190dd7b
configure.in: Added support for mingw.
...
2002-02-01 Adam Megacz <adam@xwt.org>
* configure.in: Added support for mingw.
* java/lang/Win32Process.java: Created as empty file.
* java/lang/natWin32Process.cc: Created as empty file.
From-SVN: r49425
2002-02-02 04:19:24 +00:00