org.apache.maven.model.converter.plugins
Class PCCPmd
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.model.converter.plugins.AbstractPluginConfigurationConverter
org.apache.maven.model.converter.plugins.PCCPmd
- All Implemented Interfaces:
- PluginConfigurationConverter, org.codehaus.plexus.logging.LogEnabled
public class PCCPmd
- extends AbstractPluginConfigurationConverter
A PluginConfigurationConverter
for the maven-pmd-plugin.
- Version:
- $Id: PCCPmd.java 514216 2007-03-03 18:32:26Z dennisl $
- Author:
- Dennis Lundberg
Method Summary |
protected void |
buildConfiguration(org.codehaus.plexus.util.xml.Xpp3Dom configuration,
org.apache.maven.model.v3_0_0.Model v3Model,
java.util.Properties projectProperties)
|
java.lang.String |
getArtifactId()
|
java.lang.String |
getType()
|
private java.lang.String |
translate(java.lang.String mavenOneRuleset)
In the Maven 1 plugin the built-in rulesets where accessed by prefixing
them with "rulesets/", but in the Maven 2 plugin the prefix "/rulesets/"
is used. |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PCCPmd
public PCCPmd()
getArtifactId
public java.lang.String getArtifactId()
- Specified by:
getArtifactId
in class AbstractPluginConfigurationConverter
- See Also:
AbstractPluginConfigurationConverter.getArtifactId()
getType
public java.lang.String getType()
- Specified by:
getType
in class AbstractPluginConfigurationConverter
buildConfiguration
protected void buildConfiguration(org.codehaus.plexus.util.xml.Xpp3Dom configuration,
org.apache.maven.model.v3_0_0.Model v3Model,
java.util.Properties projectProperties)
throws ProjectConverterException
- Specified by:
buildConfiguration
in class AbstractPluginConfigurationConverter
- Throws:
ProjectConverterException
translate
private java.lang.String translate(java.lang.String mavenOneRuleset)
- In the Maven 1 plugin the built-in rulesets where accessed by prefixing
them with "rulesets/", but in the Maven 2 plugin the prefix "/rulesets/"
is used.
- Parameters:
mavenOneRuleset
- A ruleset from the Maven 1 configuration
- Returns:
- A ruleset suitable for the Maven 2 configuration