@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(List<?> files,
boolean oldest) |
protected boolean |
isUpdToDate(List<?> dependsFiles,
List<?> producesFiles) |
static TransformerFactory |
newTransformerFactory(String factoryClassName,
ClassLoader classLoader) |
activateProxy, asAbsoluteFile, asFiles, getBasedir, getCatalogHandling, getExcludes, getFileNames, getFiles, getLocator, getProject, getResolver, getResource, isSkipping, passivateProxy, setCatalogs
public 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.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.