title: How to use startParameters in BuildGradle task?
body: <p>I would like to pass <code>deployDir</code> (with value <code>/my_archive</code>) to <code>uploadArchives</code> task in <code>my_project</code>:</p>
  
  <pre><code>task build (type: GradleBuild) {
          buildFile = './my_project/build.gradle'
          tasks = ['uploadArchives']
          /* startParameter =  [deployDir:"/my_archive"] ??? */      
  }
  </code></pre>
  
  <p>I do not know how to declare the start parameters. I have tried different ways, e.g., </p>
  
  <pre><code>startParameter = [deployDir:"/my_archive"]
  </code></pre>
  
  <p>Without success. </p>
  
  <p>How to declare <a href="http://gradle.org/docs/current/javadoc/org/gradle/StartParameter.html">startParameter</a> in the GradleBuild task?</p>