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