title: Suppress Gradle's JavaExec output
body: <p>I have gradle code below and I don't know how to avoid huge output generated by <code>JavaExec</code> task. I haven't found any option of <code>JavaExec</code> for it. If anyone knows better way of ignoring it, please share it.</p>
  
  <pre><code>def getStubOutput() {
      return new FileOutputStream(new File("${buildDir}/temp"))
  }
  
  configure(project(':jradius:dictionary-min')) {
      evaluationDependsOn(':jradius')
      sourceSets {
          main {
              java {
                  srcDir "${projectDir}/target/dictionary-src"
              }
          }
      }
      dependencies {
          compile project(':jradius:core')
      }
      task genSources(type: JavaExec) {
          main = 'net.jradius.freeradius.RadiusDictionary'
          classpath configurations.all
          args = ["net.jradius.dictionary", "${projectDir}/../freeradius/dict-min", "${projectDir}/target/dictionary-src"]
          maxHeapSize = "800m"
          standardOutput = getStubOutput()
      }
      jar {
          archiveName = "jradius-dictionary-min-1.1.5-SNAPSHOT.jar"
      }
      genSources.dependsOn ':jradius:cloneJradius' 
      compileJava.dependsOn genSources
  }
  </code></pre>