public class RequireJavaVendor extends AbstractNonCacheableEnforcerRule
| Constructor and Description |
|---|
RequireJavaVendor() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(EnforcerRuleHelper helper)
This is the interface into the rule.
|
void |
setExcludes(List<String> theExcludes)
Specify the banned vendors.
|
void |
setIncludes(List<String> theIncludes)
Specify the allowed vendor names.
|
getCacheId, isCacheable, isResultValidgetLevel, getMessage, setLevel, setMessagepublic RequireJavaVendor()
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRulehelper - The helper provides access to the log, MavenSession and has
helpers to get common components. It is also able to lookup components
by class name.EnforcerRuleException - the enforcer rule exceptionpublic void setExcludes(List<String> theExcludes)
theExcludes - the vendor to to exclude from the include list.public void setIncludes(List<String> theIncludes)
AdoptOpenJDK prohibits vendor name AdoptOpenJDK Amazon prohibits vendor name Amazon theIncludes - the list of required vendors.setExcludes(List)Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.