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
This commit is contained in:
parent
cf87d551b0
commit
eb812b2c15
7 changed files with 60 additions and 17 deletions
|
@ -21,6 +21,7 @@ details. */
|
|||
#include <java/lang/UnsatisfiedLinkError.h>
|
||||
#include <gnu/gcj/runtime/FileDeleter.h>
|
||||
#include <gnu/gcj/runtime/FinalizerThread.h>
|
||||
#include <java/io/File.h>
|
||||
#include <java/util/Properties.h>
|
||||
#include <java/util/TimeZone.h>
|
||||
#include <java/lang/StringBuffer.h>
|
||||
|
@ -538,9 +539,10 @@ java::lang::Runtime::insertSystemProperties (java::util::Properties *newprops)
|
|||
|
||||
java::lang::Process *
|
||||
java::lang::Runtime::execInternal (jstringArray cmd,
|
||||
jstringArray env)
|
||||
jstringArray env,
|
||||
java::io::File *dir)
|
||||
{
|
||||
return new java::lang::ConcreteProcess (cmd, env);
|
||||
return new java::lang::ConcreteProcess (cmd, env, dir);
|
||||
}
|
||||
|
||||
jint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue