Package ro.isdc.wro.maven.plugin
Class Wro4jMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- ro.isdc.wro.maven.plugin.AbstractWro4jMojo
-
- 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
-
-
Constructor Summary
Constructors Constructor Description Wro4jMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute()Perform actual plugin processing.protected booleanisIncrementalCheckRequired()protected voidonBeforeExecute()Invoked before execution is performed.voidsetBuildFinalName(java.io.File buildFinalName)protected voidvalidate()Checks if all required fields are configured.-
Methods inherited from class ro.isdc.wro.maven.plugin.AbstractWro4jMojo
execute, extendPluginClasspath, getManagerFactory, getTargetGroupsAsList, getTaskExecutor, isIncrementalBuild, isParallelProcessing, newWroManagerFactory, onAfterExecute
-
-
-
-
Method Detail
-
validate
protected void validate() throws org.apache.maven.plugin.MojoExecutionExceptionDescription copied from class:AbstractWro4jMojoChecks if all required fields are configured.- Overrides:
validatein classAbstractWro4jMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
onBeforeExecute
protected void onBeforeExecute()
Description copied from class:AbstractWro4jMojoInvoked before execution is performed.- Overrides:
onBeforeExecutein classAbstractWro4jMojo
-
doExecute
protected void doExecute() throws java.lang.ExceptionDescription copied from class:AbstractWro4jMojoPerform actual plugin processing.- Specified by:
doExecutein classAbstractWro4jMojo- Throws:
java.lang.Exception
-
isIncrementalCheckRequired
protected boolean isIncrementalCheckRequired()
- Overrides:
isIncrementalCheckRequiredin classAbstractWro4jMojo- Returns:
- true if the only incremental changed group should be used as target groups for next processing.
-
setBuildFinalName
public void setBuildFinalName(java.io.File buildFinalName)
- Parameters:
buildFinalName- the buildFinalName to set
-
-