@Mojo(defaultPhase=GENERATE_RESOURCES,
name="transform",
threadSafe=true)
public class TransformMojo
extends AbstractXmlMojo
AbstractXmlMojo.CatalogHandling| Constructor and Description |
|---|
TransformMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Called by Maven to run the plugin.
|
protected long |
findLastModified(java.util.List<?> files,
boolean oldest) |
protected boolean |
isUpdToDate(java.util.List<?> dependsFiles,
java.util.List<?> producesFiles) |
static javax.xml.transform.TransformerFactory |
newTransformerFactory(java.lang.String factoryClassName,
java.lang.ClassLoader classLoader) |
activateProxy, asAbsoluteFile, asFiles, getBasedir, getCatalogHandling, getExcludes, getFileNames, getFiles, getLocator, getProject, getResolver, getResource, isSkipping, passivateProxy, setCatalogspublic static javax.xml.transform.TransformerFactory newTransformerFactory(java.lang.String factoryClassName,
java.lang.ClassLoader classLoader)
throws java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionprotected long findLastModified(java.util.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(java.util.List<?> dependsFiles,
java.util.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–2025 MojoHaus. All rights reserved.