|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.semver.enforcer.CheckVersionRule
public class CheckVersionRule
Checks Version
for current Artifact
compared to a previous Artifact
.
Fails if Version
semantic is not respected.
Field Summary | |
---|---|
protected java.lang.String[] |
excludes
Class names to be excluded. |
protected java.lang.String[] |
includes
Class names to be included. |
protected java.lang.String |
previousVersion
Version number of artifact to be checked. |
Constructor Summary | |
---|---|
CheckVersionRule()
|
Method Summary | |
---|---|
void |
execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)
|
protected java.util.Set<java.lang.String> |
extractFilters(java.lang.String[] filtersAsStringArray)
|
java.lang.String |
getCacheId()
|
boolean |
isCacheable()
|
boolean |
isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule cachedRule)
|
protected void |
validateArtifact(org.apache.maven.artifact.Artifact artifact)
Validates that specified Artifact is a JAR file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String previousVersion
protected java.lang.String[] includes
protected java.lang.String[] excludes
Constructor Detail |
---|
public CheckVersionRule()
Method Detail |
---|
protected final java.util.Set<java.lang.String> extractFilters(java.lang.String[] filtersAsStringArray)
public void execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
execute
in interface org.apache.maven.enforcer.rule.api.EnforcerRule
org.apache.maven.enforcer.rule.api.EnforcerRuleException
protected final void validateArtifact(org.apache.maven.artifact.Artifact artifact)
Artifact
is a JAR file.
artifact
- public boolean isCacheable()
isCacheable
in interface org.apache.maven.enforcer.rule.api.EnforcerRule
public boolean isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule cachedRule)
isResultValid
in interface org.apache.maven.enforcer.rule.api.EnforcerRule
public java.lang.String getCacheId()
getCacheId
in interface org.apache.maven.enforcer.rule.api.EnforcerRule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |