Author: snjeza
Date: 2011-08-24 20:25:38 -0400 (Wed, 24 Aug 2011)
New Revision: 34264
Modified:
branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/JBossASHandler.java
Log:
JBIDE-9381 JBoss runtime detector does not detect SOA 5.2 version correctly
Modified:
branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/JBossASHandler.java
===================================================================
---
branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/JBossASHandler.java 2011-08-25
00:20:38 UTC (rev 34263)
+++
branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/JBossASHandler.java 2011-08-25
00:25:38 UTC (rev 34264)
@@ -133,7 +133,7 @@
index = 3;
} else if ("5.1".equals(version)) { //$NON-NLS-1$
index = 4;
- } else if ("6.0".equals(version)) { //$NON-NLS-1$
+ } else if ("6.0".equals(version) || "6.1".equals(version)) {
//$NON-NLS-1$
index = 5;
}
createJBossServer(serverDefinition.getLocation(),index,serverDefinition.getName(),serverDefinition.getName()
+ " " + RUNTIME); //$NON-NLS-1$
@@ -153,7 +153,10 @@
} else if ("5.1".equals(version)) { //$NON-NLS-1$
// FIXME - this needs to be changed when adding a new runtime type for JBoss EAP 5.1
index = 7;
- }
+ } else if ("5.2".equals(version)) { //$NON-NLS-1$
+ // SOA-P 5.2
+ index = 7;
+ }
}
return index;
}
Show replies by date