If non compressing your ext-js scripts is an option for you, you can either :
- add your scripts with the doHeaders method instead of using gatein-resources.xml : Remove duplicate header entries from doHeaders()
- keep on using the gatein-resources.xml to import your javascripts, and make an exception for the compression by adding a route in the gatein/conf/controller.xml (a route which does not get the compress param) :
<route path="/scripts/{gtn:version}/{gtn:scope}/">
<route-param qname="gtn:handler">
<value>script</value>
</route-param>
<path-param qname="gtn:version" encoding="preserve-path">
<pattern>[^/]*</pattern>
</path-param>
<route path="/{gtn:resource}{gtn:lang}-min.js">
<path-param qname="gtn:resource">
<pattern>(ext-core-debug)</pattern>
</path-param>
<path-param qname="gtn:lang" capture-group="true">
<pattern>-([A-Za-z]{2}(-[A-Za-z]{2})?)|</pattern>
</path-param>
</route>
</route>
<route path="/scripts/{gtn:version}/{gtn:scope}/">
<route-param qname="gtn:handler">
<value>script</value>
</route-param>
<path-param qname="gtn:version" encoding="preserve-path">
<pattern>[^/]*</pattern>
</path-param>
<route path="/{gtn:resource}{gtn:lang}{gtn:compress}.js">
<path-param qname="gtn:resource">
<pattern>.+?</pattern>
</path-param>
<path-param qname="gtn:lang" capture-group="true">
<pattern>-([A-Za-z]{2}(-[A-Za-z]{2})?)|</pattern>
</path-param>
<path-param qname="gtn:compress" capture-group="true">
<pattern>-(min)|</pattern>
</path-param>
</route>
</route>
Adapt the pattern of the gtn:resource param to match your needs. With one of these solutions, all the scripts will be minified except the ones you define in your pattern.