if (!output.getParentFile().exists() && !output.getParentFile().mkdirs()) {
throw new LessCssException("Cannot create output directory " + output.getParentFile());
}
try {
LessSource lessSource = new LessSource(input);
if (force || !output.exists() || output.lastModified() < lessSource.getLastModifiedIncludingImports()) {
long compilationStarted = System.currentTimeMillis();
logger.info("Compiling LESS source: " + file + "...");
if (lessCompiler instanceof LessCompiler) {
((LessCompiler) lessCompiler).compile(lessSource, output, force);
} else {