public abstract class AbstractSassMojo extends AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected File |
buildDirectory
Build directory for the plugin.
|
protected File |
destination
Where to put the compiled CSS files.
|
protected boolean |
failOnError
Fail the build if errors occur during compilation of sass/scss templates.
|
Constructor and Description |
---|
AbstractSassMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildBasicSassScript(StringBuilder sassScript)
Builds the basic sass script.
|
protected void |
executeSassScript(String sassScript)
Execute the Sass Compilation Ruby Script.
|
protected List<Resource> |
getResources()
Resources accessor.
|
protected File |
getSassSourceDirectory()
Sass sources directory accessor.
|
protected boolean |
isSkip()
skip accessor.
|
getLog, getPluginContext, setLog, setPluginContext
@Parameter(defaultValue="${project.build.directory}") protected File buildDirectory
@Parameter(defaultValue="${project.build.directory}/${project.build.finalName}/css") protected File destination
@Parameter(defaultValue="true") protected boolean failOnError
protected void executeSassScript(String sassScript) throws MojoExecutionException, MojoFailureException
sassScript
- the sass scriptMojoExecutionException
- the mojo execution exceptionMojoFailureException
- the mojo failure exceptionprotected void buildBasicSassScript(StringBuilder sassScript) throws MojoExecutionException
sassScript
- the sass scriptMojoExecutionException
- the mojo execution exceptionprotected boolean isSkip()
protected File getSassSourceDirectory()
Copyright © 2014–2019 GeoDienstenCentrum. All rights reserved.