public class DefaultPluginToolsRequest extends Object implements PluginToolsRequest
PluginToolsRequest
, which is used to pass parameters to components used to extract
MojoDescriptor
instances from different types of metadata for a given plugin.Constructor and Description |
---|
DefaultPluginToolsRequest(org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor) |
Modifier and Type | Method and Description |
---|---|
String |
getEncoding()
Gets the file encoding of the source files.
|
org.apache.maven.plugin.descriptor.PluginDescriptor |
getPluginDescriptor()
Return the
PluginDescriptor currently being populated as part of the build of the
current plugin project. |
org.apache.maven.project.MavenProject |
getProject()
Return the current
MavenProject instance in use. |
PluginToolsRequest |
setEncoding(String encoding)
Sets the file encoding of the source files.
|
PluginToolsRequest |
setPluginDescriptor(org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor) |
PluginToolsRequest |
setProject(org.apache.maven.project.MavenProject project) |
public DefaultPluginToolsRequest(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
public org.apache.maven.plugin.descriptor.PluginDescriptor getPluginDescriptor()
PluginDescriptor
currently being populated as part of the build of the
current plugin project.getPluginDescriptor
in interface PluginToolsRequest
public PluginToolsRequest setPluginDescriptor(org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
setPluginDescriptor
in interface PluginToolsRequest
PluginToolsRequest.getPluginDescriptor()
public org.apache.maven.project.MavenProject getProject()
MavenProject
instance in use.getProject
in interface PluginToolsRequest
public PluginToolsRequest setProject(org.apache.maven.project.MavenProject project)
setProject
in interface PluginToolsRequest
PluginToolsRequest.getProject()
public String getEncoding()
getEncoding
in interface PluginToolsRequest
null
.public PluginToolsRequest setEncoding(String encoding)
setEncoding
in interface PluginToolsRequest
encoding
- The file encoding of the source files, may be empty or null
to use the platform's
default encoding.Copyright © 2004-2012 Apache Software Foundation. All Rights Reserved.