Executor.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // System.CodeDom.Compiler.Executor.cs
  3. //
  4. // Author(s):
  5. // Andreas Nahr ([email protected])
  6. //
  7. // (C) 2003 Andreas Nahr
  8. //
  9. using System;
  10. using System.IO;
  11. namespace System.CodeDom.Compiler
  12. {
  13. public sealed class Executor
  14. {
  15. private Executor ()
  16. {
  17. }
  18. public static void ExecWait (string cmd, TempFileCollection tempFiles)
  19. {
  20. string outputName = null;
  21. string errorName = null;
  22. ExecWaitWithCapture (IntPtr.Zero, cmd, Environment.CurrentDirectory, tempFiles, ref outputName, ref errorName);
  23. }
  24. [MonoTODO]
  25. public static Int32 ExecWaitWithCapture (IntPtr userToken, string cmd, string currentDir, TempFileCollection tempFiles, ref string outputName, ref string errorName)
  26. {
  27. throw new NotImplementedException();
  28. }
  29. public static Int32 ExecWaitWithCapture (IntPtr userToken, string cmd, TempFileCollection tempFiles, ref string outputName, ref string errorName)
  30. {
  31. return ExecWaitWithCapture (userToken, cmd, Environment.CurrentDirectory, tempFiles, ref outputName, ref errorName);
  32. }
  33. public static Int32 ExecWaitWithCapture (string cmd, string currentDir, TempFileCollection tempFiles, ref string outputName, ref string errorName )
  34. {
  35. return ExecWaitWithCapture (IntPtr.Zero, cmd, currentDir, tempFiles, ref outputName, ref errorName);
  36. }
  37. public static Int32 ExecWaitWithCapture (string cmd, TempFileCollection tempFiles, ref string outputName, ref string errorName)
  38. {
  39. return ExecWaitWithCapture (IntPtr.Zero, cmd, Environment.CurrentDirectory, tempFiles, ref outputName, ref errorName);
  40. }
  41. }
  42. }