prabhuish / webutilities

Automatically exported from code.google.com/p/webutilities
0 stars 0 forks source link

ClosureCompilerFilter throws java.lang.IllegalArgumentException #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I switched to ClosureCompilerFilter as a consequence of the Rhino versions 
not playing nice when creating the LessCssFilter: 
http://code.google.com/p/webutilities/issues/detail?id=46 and uncovered this 
bug.

I'm using 0.0.6 from maven.

Line 133 seems to be the problem, it won't accept a null as a filename 
argument, however it doesn't have to be a real filename either...
So changed it from:
Result result = closureCompiler.compile(nullExtern, 
JSSourceFile.fromInputStream(null, is), compilerOptions);
to
Result result = closureCompiler.compile(nullExtern, 
JSSourceFile.fromInputStream("NULL", is), compilerOptions);

Original issue reported on code.google.com by inta...@gmail.com on 16 Apr 2013 at 3:34

GoogleCodeExporter commented 9 years ago

Original comment by rr.patil...@gmail.com on 22 Aug 2013 at 12:15

GoogleCodeExporter commented 9 years ago
https://github.com/rpatil26/webutilities/commit/ac6aeee0e58bbf83466975f9c85f90fa
9e1de019

Original comment by rr.patil...@gmail.com on 29 Apr 2014 at 5:46