cpw.mods.fml.common.versioning
Class VersionParser
java.lang.Object
cpw.mods.fml.common.versioning.VersionParser
public class VersionParser
- extends Object
Parses version strings according to the specification here:
http://docs.codehaus.org/display/MAVEN/Versioning
and allows for comparison of versions based on that document.
Bounded version specifications are defined as
http://maven.apache.org/plugins/maven-enforcer-plugin/rules/versionRanges.html
Borrows heavily from maven version range management code
- Author:
- cpw
VersionParser
public VersionParser()
parseVersionReference
public static ArtifactVersion parseVersionReference(String labelledRef)
satisfies
public static boolean satisfies(ArtifactVersion target,
ArtifactVersion source)
parseRange
public static VersionRange parseRange(String range)