org.xwiki.tool.enforcer
Class VersionCheck
java.lang.Object
org.xwiki.tool.enforcer.VersionCheck
public class VersionCheck
- extends Object
A single check for verifying a dependency version. The Rule will check that any dependency starting with the
specified group Id prefix will have a version that matches the specified version regex.
- Since:
- 4.5RC1
- Version:
- $Id: e2afaa2a5034731e894b20e1cd6391ff7337a54e $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
allowedVersionRegex
public String allowedVersionRegex
- See Also:
getAllowedVersionRegex()
VersionCheck
public VersionCheck()
setGroupIdPrefix
public void setGroupIdPrefix(String groupIdPrefix)
- Parameters:
groupIdPrefix - see getGroupIdPrefix()
getGroupIdPrefix
public String getGroupIdPrefix()
- Note: This method is called automatically by the Maven Enforcer plugin framework.
- Returns:
- the group id prefix to check against (eg "org.xwiki.commons")
setAllowedVersionRegex
public void setAllowedVersionRegex(String allowedVersionRegex)
- Parameters:
allowedVersionRegex - see getAllowedVersionRegex()
getAllowedVersionRegex
public String getAllowedVersionRegex()
- Note: This method is called automatically by the Maven Enforcer plugin framework.
- Returns:
- the regex to match the version dependency against for matching group ids
Copyright © 2004–2014 XWiki. All rights reserved.