title: Run shell command in gradle but NOT inside a task
body: <p>What I currently have is:</p>
  
  <pre><code>task myTask (type : Exec) {
     executable "something.sh"
     ... (a lot of other things)
     args "-t"
     args ext.target
  }
  
  task doIt {
     myTask.ext.target = "/tmp/foo"
     myTask.execute();
  
     myTask.ext.target = "/tmp/gee"
     myTask.execute();
  }
  </code></pre>
  
  <p>With this I thought I could run "myTask" with different parameters when I start "doIt". But only the first time the script is executed because gradle takes care that a task only runs once.
  How can I rewrite the "myTask" so that I can call it more than once? It is not necessary to have it as a separate task.</p>