title: How to run grunt commands in git-bash using java class program and display in console
body: <p>I need to open to run grunt task runner and Git commands from this class file, but am not sure how to pass the commands.I tried all those specified on the web but they only workout for cmd.Also i can't understand all those /k and /c those tags.where can i find all those refereances.
  1.Change Directory 
  2.run grunt task -(grunt , grunt watch...)</p>
  
  <pre><code>import java.io.BufferedReader;
  import java.io.IOException;
  import java.io.InputStreamReader;
  
  public class Cmdtesttwo {
  
  public static void main(String[] args) throws IOException {
  
  ProcessBuilder builder = new ProcessBuilder("C:\\Program Files\\Git\\git- 
  bash.exe"," grunt");
  builder.redirectErrorStream(true);
  Process p = builder.start();
  BufferedReader r = new BufferedReader(new 
  InputStreamReader(p.getInputStream()));
  String line;
  while (true) {
  line = r.readLine();
       if (line == null) { break; }
       System.out.println(line);
   }
  
  
  }
  }
  </code></pre>