sw.append("/* ").append(file).append(" */\n");
InputStream input = new FileInputStream(new File(getServletContext().getRealPath(file)));
try {
JavaScriptCompressor compressor = new JavaScriptCompressor(
new InputStreamReader(input), null);
compressor.compress(sw, -1, false, false, false, false);
} catch (EvaluatorException e) {
_logger.error(e.getMessage(), e);
} catch (IOException e) {
_logger.error(e.getMessage(), e);
} finally {