public class RequireJavaVendor extends AbstractNonCacheableEnforcerRule
Constructor and Description |
---|
RequireJavaVendor() |
Modifier and Type | Method and Description |
---|---|
void |
execute(EnforcerRuleHelper helper) |
void |
setExcludes(List<String> theExcludes)
Specify the banned vendors.
|
void |
setIncludes(List<String> theIncludes)
Specify the allowed vendor names.
|
getCacheId, isCacheable, isResultValid
getLevel, getMessage, setLevel, setMessage
public RequireJavaVendor()
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRuleException
public 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.