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
@Mojo(name="run",
defaultPhase=COMPILE,
requiresDependencyResolution=RUNTIME)
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, Paul Podgorsek
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPerform actual plugin processing.protected booleanprotected voidInvoked before execution is performed.voidsetBuildFinalName(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, onAfterExecuteMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
Wro4jMojo
public Wro4jMojo()
-
-
Method Details
-
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
Description copied from class:AbstractWro4jMojoPerform actual plugin processing.- Specified by:
doExecutein classAbstractWro4jMojo- Throws:
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
- Parameters:
buildFinalName- the buildFinalName to set
-