title: Selecting a Gradle build file from directory above using the command line
body: <p>I'm building a shell script that does a gradle build and then run my grunt build after it is done and I'm storing this shell script in a subdirectory but the the graddle wrapper is in the root directory of the file.  My shell script looks like this</p>
  
  <pre><code>sh .././gradle ../build.gradle clean build 
  grunt build
  </code></pre>
  
  <p>So when I call the script from the root directory it looks like this </p>
  
  <pre><code>$ sh gradle fullbuild
  </code></pre>
  
  <p>It errors out saying that </p>
  
  <pre><code>Execution failed for task ':fullbuild'. &gt; Process 'command 'sh'' finished with non-zero exit value 127
  </code></pre>
  
  <p>When I do the first command from the script in the sub directory it says </p>
  
  <pre><code>FAILURE: Could not determine which tasks to execute. * What went wrong: Task '../build.gradle' not found in root project 'tools'. 
  </code></pre>
  
  <p>Can I call gradle from a subdirectory and use that directories build.gradle file?  </p>