public void run(LessCompiler compiler) {
		lfs.setStatus(LessFileStatus.PROCESSING);
		try {
			compiler.setEncoding(charset);
			compiler.setCompress(minify);
			compiler.init();
			compiler.compile(lfs.getFrom(), lfs.getTo(), true);
			lfs.setStatus(LessFileStatus.UP_TO_DATE);
		} catch (IOException e) {
			lfs.setErrorStatus(e.getLocalizedMessage());
			e.printStackTrace();
		} catch (LessException e) {
			lfs.setErrorStatus(e.getLocalizedMessage());
			e.printStackTrace();
		}
	}