@Mojo(defaultPhase=GENERATE_RESOURCES,
name="transform",
threadSafe=true)
public class TransformMojo
extends AbstractXmlMojo
AbstractXmlMojo.CatalogHandling| Constructor | Description |
|---|---|
TransformMojo() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
execute() |
Called by Maven to run the plugin.
|
protected long |
findLastModified(List<?> files,
boolean oldest) |
|
protected boolean |
isUpdToDate(List<?> dependsFiles,
List<?> producesFiles) |
|
static TransformerFactory |
newTransformerFactory(String factoryClassName,
ClassLoader classLoader) |
getLog, getPluginContext, setLog, setPluginContextactivateProxy, asAbsoluteFile, asFiles, getBasedir, getCatalogHandling, getExcludes, getFileNames, getFiles, getLocator, getProject, getResolver, getResource, isSkipping, passivateProxy, setCatalogspublic static TransformerFactory newTransformerFactory(String factoryClassName, ClassLoader classLoader) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
protected long findLastModified(List<?> files, boolean oldest)
files - the fileNames or URLs to scan their lastModified timestamp.oldest - if true, returns the latest modificationDate of all files, otherwise returns the earliest.protected boolean isUpdToDate(List<?> dependsFiles, List<?> producesFiles)
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.