eriwen/gradle-js-plugin — Issue #12: Multiple js blocks
Author: zwigby
Created: 2012-01-24 16:31:11+00:00
State: open

I'm having an issue with multiple js blocks in my build script I get the following error in gradle milestone 7

* What went wrong:
Execution failed for task ':js'.
Cause: Output must be exactly 1 File object. Example: outputs.file = file("myFile")

I'm pretty new to this so I certainly could be screwing something up but if I remove one of my blocks then it will execute fine.

My blocks look like the following where filea, fileb, etc... are all just references to files needed and they are broke out to preserve order.

```groovy
js {
inputs.file filea + fileb + filec + filed + filee + filef + fileg + fileh + filef + fileg + fileh + filei + filej + filek + filel + filem + filen + filen + fileo + filep + fileq + filer + files + filet + fileu + filev + filew
outputs.file file("../bin/pulse-debug.js")
compilationLevel = 'WHITESPACE_ONLY'
}

js {
inputs.file filea + fileb + filec + filed + filee + filef + fileg + fileh + filef + fileg + fileh + filei + filej + filek + filel + filem + filen + filen + fileo + filep + fileq + filer + files + filet + fileu + filev + filew
outputs.file file("../bin/pulse-min.js")
compilationLevel = 'SIMPLE_OPTIMIZATIONS'
}
```