|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
ro.isdc.wro.maven.plugin.AbstractWro4jMojo
public abstract class AbstractWro4jMojo
Defines most common properties used by wro4j build-time solution infrastructure.
| Field Summary |
|---|
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractWro4jMojo()
|
|
| Method Summary | |
|---|---|
protected abstract void |
doExecute()
Perform actual plugin processing. |
void |
execute()
|
protected void |
extendPluginClasspath()
Update the classpath. |
java.io.File |
getContextFolder()
|
protected StandaloneContextAwareManagerFactory |
getManagerFactory()
This method will ensure that you have a right and initialized instance of StandaloneContextAwareManagerFactory. |
java.lang.String |
getTargetGroups()
|
protected java.util.List<java.lang.String> |
getTargetGroupsAsList()
|
java.io.File |
getWroFile()
|
boolean |
isIgnoreMissingResources()
|
boolean |
isMinimize()
|
protected StandaloneContextAwareManagerFactory |
newWroManagerFactory()
|
void |
setContextFolder(java.io.File contextFolder)
|
void |
setExtraConfigFile(java.io.File extraConfigFile)
|
void |
setIgnoreMissingResources(boolean ignoreMissingResources)
|
void |
setMinimize(boolean minimize)
|
void |
setTargetGroups(java.lang.String targetGroups)
|
void |
setWroFile(java.io.File wroFile)
|
void |
setWroManagerFactory(java.lang.String wroManagerFactory)
|
protected void |
validate()
Checks if all required fields are configured. |
| 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 |
|---|
public AbstractWro4jMojo()
| Method Detail |
|---|
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected abstract void doExecute()
throws java.lang.Exception
java.lang.Exception
protected StandaloneContextAwareManagerFactory getManagerFactory()
throws java.lang.Exception
StandaloneContextAwareManagerFactory.
WroManagerFactory implementation.
java.lang.Exception
protected StandaloneContextAwareManagerFactory newWroManagerFactory()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected final java.util.List<java.lang.String> getTargetGroupsAsList()
throws java.lang.Exception
java.lang.Exception
protected void validate()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected final void extendPluginClasspath()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void setContextFolder(java.io.File contextFolder)
contextFolder - the servletContextFolder to setpublic void setWroFile(java.io.File wroFile)
wroFile - the wroFile to setpublic java.io.File getWroFile()
public java.io.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 java.lang.String getTargetGroups()
public void setTargetGroups(java.lang.String targetGroups)
versionEncoder(targetGroups) - comma separated group names.public void setWroManagerFactory(java.lang.String wroManagerFactory)
wroManagerFactory - to setpublic void setExtraConfigFile(java.io.File extraConfigFile)
extraConfigFile - the extraConfigFile to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||