public abstract class AbstractWro4jMojo
extends org.apache.maven.plugin.AbstractMojo
| Constructor and Description |
|---|
AbstractWro4jMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doExecute()
Perform actual plugin processing.
|
void |
execute() |
protected void |
extendPluginClasspath()
Update the classpath.
|
File |
getContextFolder() |
protected ro.isdc.wro.manager.factory.standalone.StandaloneContextAwareManagerFactory |
getManagerFactory()
This method will ensure that you have a right and initialized instance of
StandaloneContextAwareManagerFactory. |
String |
getTargetGroups() |
protected List<String> |
getTargetGroupsAsList() |
File |
getWroFile() |
boolean |
isIgnoreMissingResources() |
boolean |
isMinimize() |
protected ro.isdc.wro.manager.factory.standalone.StandaloneContextAwareManagerFactory |
newWroManagerFactory() |
protected void |
onAfterExecute()
Invoked right after execution complete, no matter if it failed or not.
|
protected void |
onBeforeExecute()
Invoked before execution is performed.
|
void |
setContextFolder(File contextFolder) |
void |
setExtraConfigFile(File extraConfigFile) |
void |
setIgnoreMissingResources(boolean ignoreMissingResources) |
void |
setMinimize(boolean minimize) |
void |
setTargetGroups(String targetGroups) |
void |
setWroFile(File wroFile) |
void |
setWroManagerFactory(String wroManagerFactory) |
protected void |
validate()
Checks if all required fields are configured.
|
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void onBeforeExecute()
protected void onAfterExecute()
protected abstract void doExecute()
throws Exception
Exceptionprotected ro.isdc.wro.manager.factory.standalone.StandaloneContextAwareManagerFactory getManagerFactory()
StandaloneContextAwareManagerFactory. When overriding this method, ensure that creating managerFactory
performs injection during manager creation, otherwise the manager won't be initialized porperly.WroManagerFactory implementation.protected ro.isdc.wro.manager.factory.standalone.StandaloneContextAwareManagerFactory newWroManagerFactory()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected final List<String> getTargetGroupsAsList() throws Exception
Exceptionprotected void validate()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected final void extendPluginClasspath()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void setContextFolder(File contextFolder)
contextFolder - the servletContextFolder to setpublic void setWroFile(File wroFile)
wroFile - the wroFile to setpublic File getWroFile()
public File getContextFolder()
public void setMinimize(boolean minimize)
minimize - flag for minimization.public void setIgnoreMissingResources(boolean ignoreMissingResources)
ignoreMissingResources - the ignoreMissingResources to setpublic boolean isMinimize()
public boolean isIgnoreMissingResources()
public String getTargetGroups()
public void setTargetGroups(String targetGroups)
versionEncoder(targetGroups) - comma separated group names.public void setWroManagerFactory(String wroManagerFactory)
wroManagerFactory - fully qualified name of the WroManagerFactory class.public void setExtraConfigFile(File extraConfigFile)
extraConfigFile - the extraConfigFile to setCopyright © 2008-2013. All Rights Reserved.