Class JdkPrefixProfileActivator
- java.lang.Object
-
- org.apache.maven.profiles.activation.DetectedProfileActivator
-
- org.apache.maven.profiles.activation.JdkPrefixProfileActivator
-
- All Implemented Interfaces:
ProfileActivator
public class JdkPrefixProfileActivator extends DetectedProfileActivator
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringJDK_VERSION-
Fields inherited from interface org.apache.maven.profiles.activation.ProfileActivator
ROLE
-
-
Constructor Summary
Constructors Constructor Description JdkPrefixProfileActivator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanDetectActivation(Profile profile)private java.lang.StringconvertJdkToMavenVersion(java.lang.String jdk)protected java.lang.StringgetJdkVersion()booleanisActive(Profile profile)private booleanmatchJdkVersionRange(java.lang.String jdk)-
Methods inherited from class org.apache.maven.profiles.activation.DetectedProfileActivator
canDetermineActivation
-
-
-
-
Method Detail
-
isActive
public boolean isActive(Profile profile) throws ProfileActivationException
- Throws:
ProfileActivationException
-
matchJdkVersionRange
private boolean matchJdkVersionRange(java.lang.String jdk) throws InvalidVersionSpecificationException
-
convertJdkToMavenVersion
private java.lang.String convertJdkToMavenVersion(java.lang.String jdk)
-
getJdkVersion
protected java.lang.String getJdkVersion()
-
canDetectActivation
protected boolean canDetectActivation(Profile profile)
- Specified by:
canDetectActivationin classDetectedProfileActivator
-
-