public abstract class AbstractXmlMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractXmlMojo.CatalogHandling |
| Constructor and Description |
|---|
AbstractXmlMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
activateProxy()
Called to install the plugins proxy settings.
|
protected java.io.File |
asAbsoluteFile(java.io.File f)
Converts the given file into an file with an absolute path.
|
protected java.io.File[] |
asFiles(java.io.File pDir,
java.lang.String[] pFileNames)
Converts the given set of file names into a set of
File instances. |
protected java.io.File |
getBasedir()
Returns the projects base directory.
|
protected AbstractXmlMojo.CatalogHandling |
getCatalogHandling() |
protected java.lang.String[] |
getExcludes(java.lang.String[] origExcludes,
boolean skipDefaultExcludes)
Calculates the exclusions to use when searching files.
|
protected java.lang.String[] |
getFileNames(java.io.File pDir,
java.lang.String[] pIncludes,
java.lang.String[] pExcludes)
Scans a directory for files and returns a set of path names.
|
protected java.io.File[] |
getFiles(java.io.File pDir,
java.lang.String[] pIncludes,
java.lang.String[] pExcludes)
Scans a directory for files and returns a set of
File instances. |
protected org.codehaus.plexus.resource.ResourceManager |
getLocator() |
protected org.apache.maven.project.MavenProject |
getProject()
Returns the maven project.
|
protected Resolver |
getResolver()
Creates a new resolver.
|
protected java.net.URL |
getResource(java.lang.String pResource) |
protected boolean |
isSkipping() |
protected void |
passivateProxy(java.lang.Object pProperties)
Called to restore the proxy settings, which have been installed when the plugin was invoked.
|
protected void |
setCatalogs(java.util.List<java.io.File> pCatalogFiles,
java.util.List<java.net.URL> pCatalogUrls)
Returns the plugins catalog files.
|
getLog, getPluginContext, setLog, setPluginContextprotected org.apache.maven.project.MavenProject getProject()
protected java.io.File getBasedir()
protected java.io.File asAbsoluteFile(java.io.File f)
protected void setCatalogs(java.util.List<java.io.File> pCatalogFiles,
java.util.List<java.net.URL> pCatalogUrls)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected Resolver getResolver() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected java.lang.String[] getFileNames(java.io.File pDir,
java.lang.String[] pIncludes,
java.lang.String[] pExcludes)
throws org.apache.maven.plugin.MojoFailureException,
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected java.io.File[] asFiles(java.io.File pDir,
java.lang.String[] pFileNames)
File instances. The file names may be relative to the
given base directory.protected java.io.File[] getFiles(java.io.File pDir,
java.lang.String[] pIncludes,
java.lang.String[] pExcludes)
throws org.apache.maven.plugin.MojoFailureException,
org.apache.maven.plugin.MojoExecutionException
File instances.org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected java.lang.String[] getExcludes(java.lang.String[] origExcludes,
boolean skipDefaultExcludes)
protected java.lang.Object activateProxy()
protected void passivateProxy(java.lang.Object pProperties)
protected java.net.URL getResource(java.lang.String pResource)
throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected org.codehaus.plexus.resource.ResourceManager getLocator()
protected boolean isSkipping()
protected AbstractXmlMojo.CatalogHandling getCatalogHandling()
Copyright © 2006–2025 MojoHaus. All rights reserved.