playframework/playframework — pull request #1729 by huntc (2013-10-05 06:44:07+00:00)
Title: Closure Compiler is broken on Windows

I'm using play 2.2 and the closure compiler breaks on windows (Windows 7, 32/64 bit)

### Steps do reproduce

1. Create a new scala application
2. Add folder `app/assets/javascripts`
3. Add file in folder `test.js`

```javascript
var x = 3;
```
4. play run
5. call `localhost:9000`

### Exception

```
play.PlayExceptions$AssetCompilationException: Compilation error[Internal Closure Compiler error (see logs)]
at play.core.jscompile.JavascriptCompiler$.compile(JavascriptCompiler.scala:63) ~[na:na]
at play.PlayAssetsCompiler$$anonfun$JavascriptCompiler$3.apply(PlayAssetsCompiler.scala:96) ~[na:na]
at play.PlayAssetsCompiler$$anonfun$JavascriptCompiler$3.apply(PlayAssetsCompiler.scala:96) ~[na:na]
at play.PlayAssetsCompiler$$anonfun$AssetsCompiler$1$$anonfun$3.liftedTree1$1(PlayAssetsCompiler.scala:52) ~[na:na]
at play.PlayAssetsCompiler$$anonfun$AssetsCompiler$1$$anonfun$3.apply(PlayAssetsCompiler.scala:51) ~[na:na]
at play.PlayAssetsCompiler$$anonfun$AssetsCompiler$1$$anonfun$3.apply(PlayAssetsCompiler.scala:48) ~[na:na]
java.lang.RuntimeException: java.lang.RuntimeException: com.google.javascript.jscomp.deps.SortedDependencies$MissingProvideExcepti
at com.google.javascript.jscomp.Compiler.runInCompilerThread(Compiler.java:715)
at com.google.javascript.jscomp.Compiler.compile(Compiler.java:647)
at com.google.javascript.jscomp.Compiler.compile(Compiler.java:603)
at com.google.javascript.jscomp.Compiler.compile(Compiler.java:585)
at play.core.jscompile.JavascriptCompiler$$anonfun$1.apply$mcZ$sp(JavascriptCompiler.scala:54)
at play.core.jscompile.JavascriptCompiler$$anonfun$1.apply(JavascriptCompiler.scala:54)
at play.core.jscompile.JavascriptCompiler$$anonfun$1.apply(JavascriptCompiler.scala:54)
at scala.util.control.Exception$Catch$$anonfun$either$1.apply(Exception.scala:124)
at scala.util.control.Exception$Catch$$anonfun$either$1.apply(Exception.scala:124)
at scala.util.control.Exception$Catch.apply(Exception.scala:102)
at scala.util.control.Exception$Catch.either(Exception.scala:124)
at play.core.jscompile.JavascriptCompiler$.compile(JavascriptCompiler.scala:54)
at play.PlayAssetsCompiler$$anonfun$JavascriptCompiler$3.apply(PlayAssetsCompiler.scala:96)
at play.PlayAssetsCompiler$$anonfun$JavascriptCompiler$3.apply(PlayAssetsCompiler.scala:96)
at play.PlayAssetsCompiler$$anonfun$AssetsCompiler$1$$anonfun$3.liftedTree1$1(PlayAssetsCompiler.scala:52)
at play.PlayAssetsCompiler$$anonfun$AssetsCompiler$1$$anonfun$3.apply(PlayAssetsCompiler.scala:51)
at play.PlayAssetsCompiler$$anonfun$AssetsCompiler$1$$anonfun$3.apply(PlayAssetsCompiler.scala:48)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)
at scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)
at play.PlayAssetsCompiler$$anonfun$AssetsCompiler$1.apply(PlayAssetsCompiler.scala:48)
at play.PlayAssetsCompiler$$anonfun$AssetsCompiler$1.apply(PlayAssetsCompiler.scala:21)
at scala.Function7$$anonfun$tupled$1.apply(Function7.scala:35)
at scala.Function7$$anonfun$tupled$1.apply(Function7.scala:34)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: com.google.javascript.jscomp.deps.SortedDependencies$MissingProvideException: module$test
at com.google.common.base.Throwables.propagate(Throwables.java:160)
at com.google.javascript.jscomp.Compiler.processAMDAndCommonJSModules(Compiler.java:1560)
at com.google.javascript.jscomp.Compiler.parseInputs(Compiler.java:1336)
at com.google.javascript.jscomp.Compiler.parse(Compiler.java:764)
at com.google.javascript.jscomp.Compiler.compileInternal(Compiler.java:723)
at com.google.javascript.jscomp.Compiler.access$000(Compiler.java:83)
at com.google.javascript.jscomp.Compiler$2.call(Compiler.java:650)
at com.google.javascript.jscomp.Compiler$2.call(Compiler.java:647)
at com.google.javascript.jscomp.Compiler$3.call(Compiler.java:677)
... 4 more
Caused by: com.google.javascript.jscomp.deps.SortedDependencies$MissingProvideException: module$test
at com.google.javascript.jscomp.deps.SortedDependencies.getInputProviding(SortedDependencies.java:120)
at com.google.javascript.jscomp.JSModuleGraph.createEntryPointInputs(JSModuleGraph.java:466)
at com.google.javascript.jscomp.JSModuleGraph.manageDependencies(JSModuleGraph.java:375)
at com.google.javascript.jscomp.Compiler.processAMDAndCommonJSModules(Compiler.java:1544)
... 11 more
```