com.google.common.css.compiler.ClosureStylesheetCompiler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-stylesheets Show documentation
Show all versions of closure-stylesheets Show documentation
Closure Stylesheets is an extension to CSS that adds variables, functions,
conditionals, and mixins to standard CSS. The tool also supports
minification, linting, RTL flipping, and CSS class renaming.
package com.google.common.css.compiler;
import com.google.common.css.DefaultExitCodeHandler;
import com.google.common.css.ExitCodeHandler;
import com.google.common.css.JobDescription;
import com.google.common.css.compiler.ast.ErrorManager;
import com.google.common.css.compiler.commandline.DefaultCommandLineCompiler;
import javax.annotation.Nullable;
import java.io.File;
public class ClosureStylesheetCompiler extends DefaultCommandLineCompiler {
public ClosureStylesheetCompiler(JobDescription job, ErrorManager errorManager) {
super(job, new DefaultExitCodeHandler(), errorManager);
}
public ClosureStylesheetCompiler(JobDescription job, ExitCodeHandler exitCodeHandler, ErrorManager errorManager) {
super(job, exitCodeHandler, errorManager);
}
@Override
public String execute(@Nullable File renameFile, @Nullable File sourcemapFile) {
return super.execute(renameFile, sourcemapFile);
}
}