public class TransformMojo extends AbstractXmlMojo
| 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, getExcludes, getFileNames, getFiles, getLocator, getProject, getResolver, getResource, 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-2015 The Apache Software Foundation. All Rights Reserved.