Package wrm
Class AbstractSassMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- wrm.AbstractSassMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
CompilationMojo
,WatchMojo
public abstract class AbstractSassMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Field Summary
Fields Modifier and Type Field Description protected org.sonatype.plexus.build.incremental.BuildContext
buildContext
protected SassCompiler
compiler
protected boolean
failOnError
should fail the build in case of compilation errors.protected String
includePath
Additional include path, ';'-separated.protected String
inputPath
The directory from which the source .scss files will be read.protected File
outputPath
The directory in which the compiled CSS files will be placed.protected org.apache.maven.project.MavenProject
project
-
Constructor Summary
Constructors Constructor Description AbstractSassMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
compile()
protected String
getFileExtension()
protected SassCompiler
initCompiler()
protected boolean
processFile(Path inputRootPath, Path inputFilePath)
protected void
validateConfig()
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
outputPath
protected File outputPath
The directory in which the compiled CSS files will be placed. The default value is ${project.build.directory}
-
inputPath
protected String inputPath
The directory from which the source .scss files will be read. This directory will be traversed recursively, and all .scss files found in this directory or subdirectories will be compiled. The default value is src/main/sass
-
includePath
protected String includePath
Additional include path, ';'-separated. The default value is null
-
failOnError
protected boolean failOnError
should fail the build in case of compilation errors.
-
project
protected org.apache.maven.project.MavenProject project
-
buildContext
protected org.sonatype.plexus.build.incremental.BuildContext buildContext
-
compiler
protected SassCompiler compiler
-
-
Method Detail
-
getFileExtension
protected String getFileExtension()
-
validateConfig
protected void validateConfig()
-
initCompiler
protected SassCompiler initCompiler()
-
processFile
protected boolean processFile(Path inputRootPath, Path inputFilePath) throws IOException
- Throws:
IOException
-
-