natVMProcess.cc 821 B

12345678910111213141516171819202122232425262728293031323334
  1. // natVMProcess.cc - native code for ProcessBuilder
  2. /* Copyright (C) 2007 Free Software Foundation
  3. This file is part of libgcj.
  4. This software is copyrighted work licensed under the terms of the
  5. Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
  6. details. */
  7. #include <config.h>
  8. #include <platform.h>
  9. #include <jvm.h>
  10. #include <java/lang/VMProcess.h>
  11. #include <java/lang/Process.h>
  12. #include <java/io/File.h>
  13. // It is convenient and safe to simply include all of these.
  14. #include <java/lang/Win32Process.h>
  15. #include <java/lang/EcosProcess.h>
  16. #include <java/lang/PosixProcess.h>
  17. ::java::lang::Process *
  18. java::lang::VMProcess::nativeExec (jstringArray cmd,
  19. jstringArray env,
  20. ::java::io::File *dir,
  21. jboolean redirect)
  22. {
  23. return new _Jv_platform_process (cmd, env, dir, redirect);
  24. }