f4a2a1deec
* 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
35 lines
842 B
C++
35 lines
842 B
C++
// natVMProcess.cc - native code for ProcessBuilder
|
|
|
|
/* Copyright (C) 2007 Free Software Foundation
|
|
|
|
This file is part of libgcj.
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
details. */
|
|
|
|
#include <config.h>
|
|
|
|
#include <gcj/cni.h>
|
|
#include <jvm.h>
|
|
|
|
#include <platform.h>
|
|
|
|
#include <java/lang/VMProcess.h>
|
|
#include <java/lang/Process.h>
|
|
#include <java/io/File.h>
|
|
|
|
// It is convenient and safe to simply include all of these.
|
|
#include <java/lang/Win32Process.h>
|
|
#include <java/lang/EcosProcess.h>
|
|
#include <java/lang/PosixProcess.h>
|
|
|
|
::java::lang::Process *
|
|
java::lang::VMProcess::nativeExec (jstringArray cmd,
|
|
jstringArray env,
|
|
::java::io::File *dir,
|
|
jboolean redirect)
|
|
{
|
|
return new _Jv_platform_process (cmd, env, dir, redirect);
|
|
}
|