ro.isdc.wro.maven.plugin
Class Wro4jMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by ro.isdc.wro.maven.plugin.AbstractWro4jMojo
          extended by ro.isdc.wro.maven.plugin.Wro4jMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class Wro4jMojo
extends AbstractWro4jMojo

A build-time solution for organizing and minimizing static resources. By default uses the same configuration as the run-time solution. Additionally, allows you to change the processors used by changing the wroManagerFactory implementation used by the plugin.

Author:
Alex Objelean

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
Wro4jMojo()
           
 
Method Summary
protected  void doExecute()
          Perform actual plugin processing.
 void setBuildDirectory(java.io.File buildDirectory)
          The folder where the project is built.
 void setBuildFinalName(java.io.File buildFinalName)
           
 void setCssDestinationFolder(java.io.File cssDestinationFolder)
           
 void setDestinationFolder(java.io.File destinationFolder)
           
 void setGroupNameMappingFile(java.lang.String groupNameMappingFile)
           
 void setJsDestinationFolder(java.io.File jsDestinationFolder)
           
protected  void validate()
          Checks if all required fields are configured.
 
Methods inherited from class ro.isdc.wro.maven.plugin.AbstractWro4jMojo
execute, extendPluginClasspath, getContextFolder, getManagerFactory, getTargetGroups, getTargetGroupsAsList, getWroFile, isIgnoreMissingResources, isMinimize, newWroManagerFactory, setContextFolder, setExtraConfigFile, setIgnoreMissingResources, setMinimize, setTargetGroups, setWroFile, setWroManagerFactory
 
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
 

Constructor Detail

Wro4jMojo

public Wro4jMojo()
Method Detail

validate

protected void validate()
                 throws org.apache.maven.plugin.MojoExecutionException
Checks if all required fields are configured.

Overrides:
validate in class AbstractWro4jMojo
Throws:
org.apache.maven.plugin.MojoExecutionException

doExecute

protected void doExecute()
                  throws java.lang.Exception
Perform actual plugin processing.

Specified by:
doExecute in class AbstractWro4jMojo
Throws:
java.lang.Exception

setDestinationFolder

public void setDestinationFolder(java.io.File destinationFolder)
Parameters:
destinationFolder - the destinationFolder to set

setCssDestinationFolder

public void setCssDestinationFolder(java.io.File cssDestinationFolder)
Parameters:
cssDestinationFolder - the cssDestinationFolder to set

setJsDestinationFolder

public void setJsDestinationFolder(java.io.File jsDestinationFolder)
Parameters:
jsDestinationFolder - the jsDestinationFolder to set

setBuildDirectory

public void setBuildDirectory(java.io.File buildDirectory)
The folder where the project is built.

Parameters:
buildDirectory - the buildDirectory to set

setBuildFinalName

public void setBuildFinalName(java.io.File buildFinalName)
Parameters:
buildFinalName - the buildFinalName to set

setGroupNameMappingFile

public void setGroupNameMappingFile(java.lang.String groupNameMappingFile)
Parameters:
groupNameMappingFile - the groupNameMappingFile to set


Copyright © 2008-2011. All Rights Reserved.