Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
[BZ 1609798] EAP7 plugin should detect all apiVersions above and incl…
Browse files Browse the repository at this point in the history
…uding 4.0
  • Loading branch information
Michael Burman authored and spinder committed Nov 14, 2018
1 parent bdf07a8 commit 611240f
Showing 1 changed file with 10 additions and 5 deletions.
Expand Up @@ -92,13 +92,18 @@ public static JBossProductType determineJBossProductType(File homeDir, String ap
if (slot.isEmpty()) {
throw new Exception("'slot' property not found in " + productConfFile + ".");
}
// EAP 7.1 use domain api 5.0 in "urn:jboss:domain:5.0" from <server xmlns="..." >
if(apiVersion.startsWith("4") || apiVersion.startsWith("5")) {
try {
// "urn:jboss:domain:<version>" parsing, EAP 7.0 = 4.0, EAP 7.1 = 5.0 and EAP 7.2 = 7.0
try {
Double version = Double.valueOf(apiVersion);
if(version >= 4) {
productType = getValueByShortName(slot);
} catch(IllegalArgumentException e) {
productType = WILDFLY;
}
} catch(NumberFormatException e) {
// This is not a supported situation for this plugin
throw e;
} catch(IllegalArgumentException ie) {
// Wildfly could be newer than what we know
productType = WILDFLY;
}
}

Expand Down

0 comments on commit 611240f

Please sign in to comment.