org.jasig.maven.plugin.sass
Class AbstractSassMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.jasig.maven.plugin.sass.AbstractSassMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
UpdateStylesheetsMojo, WatchMojo

public abstract class AbstractSassMojo
extends org.apache.maven.plugin.AbstractMojo

Base for batching SASS Mojos


Field Summary
protected  File buildDirectory
           
protected  String[] excludes
          Defines which of the included files in the source directories to exclude (none by default).
protected  String[] includes
          Defines files in the source directories to include (none by default), recommended to be set in favor of skinConfigurationFile Defaults to: "**/scss"
protected  String relativeOutputDirectory
          Defines output directory relative to
protected  Map<String,String> sassOptions
          Defines options for Sass::Plugin.options.
protected  File sassSourceDirectory
          Directory containing SASS files, defaults to the Maven Web application sources directory (src/main/webapp)
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractSassMojo()
           
 
Method Summary
protected  void buildSassOptions(StringBuilder sassScript)
           
protected  String escapePath(String originalPath)
          Handles the usage of Windows style paths like c:\foo\bar\scss with the SASS mojos provided by this plugin.
protected  Set<String> findSassDirs()
           
protected  File newCanonicalFile(File parent, String child)
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Field Detail

sassSourceDirectory

protected File sassSourceDirectory
Directory containing SASS files, defaults to the Maven Web application sources directory (src/main/webapp)


relativeOutputDirectory

protected String relativeOutputDirectory
Defines output directory relative to


includes

protected String[] includes
Defines files in the source directories to include (none by default), recommended to be set in favor of skinConfigurationFile Defaults to: "**/scss"


excludes

protected String[] excludes
Defines which of the included files in the source directories to exclude (none by default).


buildDirectory

protected File buildDirectory

sassOptions

protected Map<String,String> sassOptions
Defines options for Sass::Plugin.options. See http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#options If the value is a string it must by quoted in the maven configuration: <cache_location>'/tmp/sass'</cache_location>
If no options are set the default configuration set is used which is: <unix_newlines>true</unix_newlines> <cache>true</cache> <always_update>true</always_update> <cache_location>${project.build.directory}/sass_cache</cache_location> <style>:expanded</style>

Constructor Detail

AbstractSassMojo

public AbstractSassMojo()
Method Detail

buildSassOptions

protected void buildSassOptions(StringBuilder sassScript)
                         throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

newCanonicalFile

protected File newCanonicalFile(File parent,
                                String child)
                         throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

findSassDirs

protected Set<String> findSassDirs()

escapePath

protected String escapePath(String originalPath)
Handles the usage of Windows style paths like c:\foo\bar\scss with the SASS mojos provided by this plugin.

Parameters:
originalPath - the original path in native system style
Returns:
the converted pathname


Copyright © 2013 Jasig. All Rights Reserved.