View Full Version : license ends up in non-js/css files

20 Apr 2010, 3:23 PM
There's a bug in JSBuilder2.writeHeadersToTargets() which causes the license header to be written to files other than js/css if they happen to be in the deployDir.

private Pattern pattern = Pattern.compile(".*[\\.js|\\.css]");

should be

private Pattern pattern = Pattern.compile(".*(\\.js|\\.css)");

1 Jul 2010, 6:13 PM
Can I change this in the jar file somehow?

Sencha doesn't seem to do anything about this problem :-/

2 Jul 2010, 12:30 AM
So long as no new JSBuilder2 has been released you can use this patched version (http://www.sencha.com/forum/showthread.php?86640-Updated-JsBuilder.jar-with-CSS-compression-and-more-YUI-Compressor-Options).

3 Jul 2010, 6:56 AM
thx :)