Class RequireContributorRoles
- java.lang.Object
-
- org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
-
- org.codehaus.mojo.extraenforcer.model.RequireContributorRoles
-
- All Implemented Interfaces:
org.apache.maven.enforcer.rule.api.EnforcerRuleBase
@Named("requireContributorRoles") public class RequireContributorRoles extends org.apache.maven.enforcer.rule.api.AbstractEnforcerRuleThis rule verifies that certain contributor roles are filled.- Since:
- 1.0-alpha-3
- Author:
- Mirko Friedenhagen
-
-
Constructor Summary
Constructors Constructor Description RequireContributorRoles(org.apache.maven.project.MavenProject project)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Execute the rule.org.apache.maven.enforcer.rule.api.EnforcerLoggergetLog()protected StringgetRoleName()Returns the rolename.protected List<org.apache.maven.model.Contributor>getRoles(org.apache.maven.project.MavenProject mavenProject)Returns the roles from the POM.voidsetLog(org.apache.maven.enforcer.rule.api.EnforcerLogger arg0)
-
-
-
Method Detail
-
getRoleName
protected final String getRoleName()
Returns the rolename.- Returns:
- rolename.
-
getRoles
protected List<org.apache.maven.model.Contributor> getRoles(org.apache.maven.project.MavenProject mavenProject)
Returns the roles from the POM.- Returns:
- the list of
Contributors orDevelopers.
-
execute
public void execute() throws org.apache.maven.enforcer.rule.api.EnforcerRuleExceptionExecute the rule.- Specified by:
executein classorg.apache.maven.enforcer.rule.api.AbstractEnforcerRule- Throws:
org.apache.maven.enforcer.rule.api.EnforcerRuleException- the enforcer rule exception
-
setLog
public void setLog(org.apache.maven.enforcer.rule.api.EnforcerLogger arg0)
- Specified by:
setLogin interfaceorg.apache.maven.enforcer.rule.api.EnforcerRuleBase
-
getLog
public org.apache.maven.enforcer.rule.api.EnforcerLogger getLog()
-
-