Class CLI


  • public class CLI
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean IS_WINDOWS  
      org.apache.maven.plugin.logging.Log log  
      boolean verbose  
    • Constructor Summary

      Constructors 
      Constructor Description
      CLI()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static boolean isWindows()  
      void setExecutable​(java.io.File path)  
      int system​(java.io.File wd, java.lang.String[] command)  
      int system​(java.io.File wd, java.lang.String[] command, java.util.List<java.lang.String> args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • IS_WINDOWS

        public static final boolean IS_WINDOWS
      • verbose

        public boolean verbose
      • log

        public org.apache.maven.plugin.logging.Log log
    • Constructor Detail

      • CLI

        public CLI()
    • Method Detail

      • isWindows

        private static boolean isWindows()
      • setExecutable

        public void setExecutable​(java.io.File path)
      • system

        public int system​(java.io.File wd,
                          java.lang.String[] command)
                   throws org.codehaus.plexus.util.cli.CommandLineException
        Throws:
        org.codehaus.plexus.util.cli.CommandLineException
      • system

        public int system​(java.io.File wd,
                          java.lang.String[] command,
                          java.util.List<java.lang.String> args)
                   throws org.codehaus.plexus.util.cli.CommandLineException
        Throws:
        org.codehaus.plexus.util.cli.CommandLineException