public class SassTask
extends org.apache.tools.ant.Task
| Constructor and Description |
|---|
SassTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPath(org.apache.tools.ant.types.Path path)
Add a path which references one or more sass include directories.
|
void |
execute() |
void |
setExtension(String extension) |
void |
setIn(String in)
Set the input scss file/s to compile.
|
void |
setIsindentedsyntaxsrc(boolean isIndentedSyntaxSrc) |
void |
setOmitsourcemapurl(boolean omitSourceMapUrl) |
void |
setOutdir(String outputPath)
Set the output directory where the compiled css will be placed.
|
void |
setOutputstyle(int outputStyle)
See http://sass-lang.com/documentation/file.SASS_REFERENCE.html#style-option
for further information.
|
void |
setPrecision(int precision) |
void |
setSourcecomments(boolean sourceComments)
See http://sass-lang.com/documentation/file.SASS_REFERENCE.html#line_numbers-option
for further information.
|
void |
setSourcemapcontents(boolean sourceMapContents) |
void |
setSourcemapembed(boolean sourceMapEmbed) |
void |
setSourcemapfile(String sourceMapFile) |
void |
setSourcemaproot(String sourceMapRoot) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setOutdir(String outputPath)
outputPath - root directory that will contain the output.public void setIn(String in)
in - Either a directory that contains scss files or a single scss file.public void setPrecision(int precision)
public void setOutputstyle(int outputStyle)
outputStyle - 0 = nested, 1 = expanded, 2 = compact, 3 = compressedpublic void setSourcecomments(boolean sourceComments)
sourceComments - true to turn on line comments.public void setSourcemapembed(boolean sourceMapEmbed)
public void setSourcemapcontents(boolean sourceMapContents)
public void setOmitsourcemapurl(boolean omitSourceMapUrl)
public void setIsindentedsyntaxsrc(boolean isIndentedSyntaxSrc)
public void setSourcemapfile(String sourceMapFile)
public void setSourcemaproot(String sourceMapRoot)
public void setExtension(String extension)
public void addPath(org.apache.tools.ant.types.Path path)
path - The path to add.public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionCopyright © 2013-2015 The Cat Hive Developers. All Rights Reserved.