title: Command window closing while executing gradle command from batch file
body: <p>I am trying to write a very simple batch file to execute gradle commands for my java projects. I have written below script in a batch file and saved as build.bat</p>
  
  <pre><code>cd data-connector
  gradle clean build -x test
  gradle dist
  cd..
  </code></pre>
  
  <p>Now the .bat file is placed in the correct folder. Trouble occurs as the execution reaches 3rd line of the script. The command prompt just stops on 3rd line, no errors nothing.
  All the environment variables are correctly set and permissions in place.
  Please point my mistake here, what I am missing. Why is this script not going beyond the 2nd line of the script.</p>