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
  • Constructor Details

    • Wro4jMojo

      public Wro4jMojo()
  • Method Details

    • validate

      protected void validate() throws org.apache.maven.plugin.MojoExecutionException
      Description copied from class: AbstractWro4jMojo
      Checks if all required fields are configured.
      Overrides:
      validate in class AbstractWro4jMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • onBeforeExecute

      protected void onBeforeExecute()
      Description copied from class: AbstractWro4jMojo
      Invoked before execution is performed.
      Overrides:
      onBeforeExecute in class AbstractWro4jMojo
    • doExecute

      protected void doExecute() throws Exception
      Description copied from class: AbstractWro4jMojo
      Perform actual plugin processing.
      Specified by:
      doExecute in class AbstractWro4jMojo
      Throws:
      Exception
    • isIncrementalCheckRequired

      protected boolean isIncrementalCheckRequired()
      Overrides:
      isIncrementalCheckRequired in class AbstractWro4jMojo
      Returns:
      true if the only incremental changed group should be used as target groups for next processing.
    • setBuildFinalName

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