Class ProcessUtils


  • public class ProcessUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ProcessUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String escapeCommandLine​(java.lang.String arg)
      This should correctly put double-quotes around an argument if ProcessBuilder doesn't seem to work (as it doesn't on paths with spaces on Windows)
      static java.lang.String unescapeCommandLine​(java.lang.String arg)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProcessUtils

        public ProcessUtils()
    • Method Detail

      • escapeCommandLine

        public static java.lang.String escapeCommandLine​(java.lang.String arg)
        This should correctly put double-quotes around an argument if ProcessBuilder doesn't seem to work (as it doesn't on paths with spaces on Windows)
        Parameters:
        arg -
        Returns:
      • unescapeCommandLine

        public static java.lang.String unescapeCommandLine​(java.lang.String arg)