public void compileScript(CompressorSettings settings, IRequestProxy request) throws JSCompileException {
logger.debug("Start compile javascript");
mimeType = JAVASCRIPT_MIME;
CalcDeps cd = new CalcDeps();
String text = "";
List<FragmentDescriptor> list = cd.calcDeps(fragments, request, settings.getClosurePathes());
boolean isGoogleClosurePresent = !list.equals(fragments);
if (isGoogleClosurePresent)
list.add(0, new InternalFragment("CLOSURE_NO_DEPS=true;\n"));
if (settings.getJsCompressMethod().equals(CompressorSettings.CLOSURE_COMPILER_VALUE))
text = Compressor.compile(list, request, settings);