org.nanoko.coffee.mill.mojos.compile
Class HtmlCompressorMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.nanoko.coffee.mill.mojos.AbstractCoffeeMillMojo
          extended by org.nanoko.coffee.mill.mojos.compile.HtmlCompressorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class HtmlCompressorMojo
extends AbstractCoffeeMillMojo

Compress HTML pages using HtmlCompressor.


Field Summary
 Boolean htmlCompressionGenerateStatistics
          HTML compression statistics
 String[] htmlCompressionPredefinedPreservePatterns
          Predefined patterns for most often used custom preservation rules: PHP_TAG_PATTERN and SERVER_SCRIPT_TAG_PATTERN.
 Boolean htmlCompressionPreserveLineBreak
          If set to false keeps line breaks (default is true)
 String[] htmlCompressionPreservePatterns
          Preserve patterns
 Boolean htmlCompressionRemoveComments
          If set to false keeps HTML comments (default is true)
 Boolean htmlCompressionRemoveFormAttributes
          Removes optional attributes from form tags
 Boolean htmlCompressionRemoveHttpProtocol
          Replaces "http://" with "//" inside tag attributes
 Boolean htmlCompressionRemoveHttpsProtocol
          Replace "https://" with "//" inside tag attributes
 Boolean htmlCompressionRemoveInputAttributes
          Removes optional attributes from input tags
 Boolean htmlCompressionRemoveIntertagSpaces
          Removes iter-tag whitespace characters
 Boolean htmlCompressionRemoveJavaScriptProtocol
          Removes "javascript:" from inline event handlers
 Boolean htmlCompressionRemoveLinkAttributes
          Removes optional attributes from link tags
 Boolean htmlCompressionRemoveMultiSpaces
          If sets to false keeps multiple whitespace characters (default is true)
 Boolean htmlCompressionRemoveQuotes
          Removes unnecessary tag attribute quotes
 Boolean htmlCompressionRemoveScriptAttributes
          Removes optional attributes from script tags
 Boolean htmlCompressionRemoveStyleAttributes
          Removes optional attributes from style tags
 Boolean htmlCompressionSimpleBooleanAttributes
          Removes values from boolean tag attributes
 Boolean htmlCompressionSimpleDoctype
          Simplifies existing doctype
 Boolean skipHtmlCompressor
          Enables / disables the HTML Compression The compression is disabled by default.
 
Fields inherited from class org.nanoko.coffee.mill.mojos.AbstractCoffeeMillMojo
assetsDir, baseDirectory, buildDirectory, coffeeScriptDir, coffeeScriptTestDir, javaScriptDir, javaScriptTestDir, libDir, project, projectHelper, stylesheetsDir, workDir, workTestDir
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
HtmlCompressorMojo()
           
 
Method Summary
 void execute()
           
 
Methods inherited from class org.nanoko.coffee.mill.mojos.AbstractCoffeeMillMojo
getLibDirectory, getTarget, getWorkDirectory, getWorkTestDirectory
 
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
 

Field Detail

skipHtmlCompressor

public Boolean skipHtmlCompressor
Enables / disables the HTML Compression The compression is disabled by default. Once enabled, don't forget to set up the compression options.


htmlCompressionRemoveComments

public Boolean htmlCompressionRemoveComments
If set to false keeps HTML comments (default is true)


htmlCompressionPreserveLineBreak

public Boolean htmlCompressionPreserveLineBreak
If set to false keeps line breaks (default is true)


htmlCompressionRemoveMultiSpaces

public Boolean htmlCompressionRemoveMultiSpaces
If sets to false keeps multiple whitespace characters (default is true)


htmlCompressionRemoveIntertagSpaces

public Boolean htmlCompressionRemoveIntertagSpaces
Removes iter-tag whitespace characters


htmlCompressionRemoveQuotes

public Boolean htmlCompressionRemoveQuotes
Removes unnecessary tag attribute quotes


htmlCompressionSimpleDoctype

public Boolean htmlCompressionSimpleDoctype
Simplifies existing doctype


htmlCompressionRemoveScriptAttributes

public Boolean htmlCompressionRemoveScriptAttributes
Removes optional attributes from script tags


htmlCompressionRemoveStyleAttributes

public Boolean htmlCompressionRemoveStyleAttributes
Removes optional attributes from style tags


htmlCompressionRemoveLinkAttributes

public Boolean htmlCompressionRemoveLinkAttributes
Removes optional attributes from link tags


htmlCompressionRemoveFormAttributes

public Boolean htmlCompressionRemoveFormAttributes
Removes optional attributes from form tags


htmlCompressionRemoveInputAttributes

public Boolean htmlCompressionRemoveInputAttributes
Removes optional attributes from input tags


htmlCompressionSimpleBooleanAttributes

public Boolean htmlCompressionSimpleBooleanAttributes
Removes values from boolean tag attributes


htmlCompressionRemoveJavaScriptProtocol

public Boolean htmlCompressionRemoveJavaScriptProtocol
Removes "javascript:" from inline event handlers


htmlCompressionRemoveHttpProtocol

public Boolean htmlCompressionRemoveHttpProtocol
Replaces "http://" with "//" inside tag attributes


htmlCompressionRemoveHttpsProtocol

public Boolean htmlCompressionRemoveHttpsProtocol
Replace "https://" with "//" inside tag attributes


htmlCompressionPredefinedPreservePatterns

public String[] htmlCompressionPredefinedPreservePatterns
Predefined patterns for most often used custom preservation rules: PHP_TAG_PATTERN and SERVER_SCRIPT_TAG_PATTERN.


htmlCompressionPreservePatterns

public String[] htmlCompressionPreservePatterns
Preserve patterns


htmlCompressionGenerateStatistics

public Boolean htmlCompressionGenerateStatistics
HTML compression statistics

Constructor Detail

HtmlCompressorMojo

public HtmlCompressorMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException


Copyright © 2012-2013 OW2. All Rights Reserved.