Author: snjeza
Date: 2011-05-30 13:09:51 -0400 (Mon, 30 May 2011)
New Revision: 31642
Modified:
branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/DroolsHandler.java
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/JbpmHandler.java
Log:
JBIDE-8918 Recognize and define Drools Runtime from SOA-P standalone product
Modified:
branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/DroolsHandler.java
===================================================================
---
branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/DroolsHandler.java 2011-05-30
16:57:16 UTC (rev 31641)
+++
branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/DroolsHandler.java 2011-05-30
17:09:51 UTC (rev 31642)
@@ -35,11 +35,11 @@
for (ServerDefinition serverDefinition : serverDefinitions) {
String type = serverDefinition.getType();
if (serverDefinition.isEnabled() && !droolsExists(serverDefinition)) {
- if (SOA_P.equals(type) || DROOLS.equals(type)) {
+ if (SOA_P.equals(type) || DROOLS.equals(type) || SOA_P_STD.equals(type)) {
File droolsRoot = serverDefinition.getLocation(); //$NON-NLS-1$
if (droolsRoot.isDirectory()) {
DroolsRuntime runtime = new DroolsRuntime();
- if (SOA_P.equals(type)) {
+ if (SOA_P.equals(type) || SOA_P_STD.equals(type)) {
runtime.setName("Drools - " + serverDefinition.getName());
//$NON-NLS-1$
} else {
runtime.setName("Drools " + serverDefinition.getVersion()+ " -
" + serverDefinition.getName()); //$NON-NLS-1$
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-05-30
16:57:16 UTC (rev 31641)
+++
branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/JBossASHandler.java 2011-05-30
17:09:51 UTC (rev 31642)
@@ -386,7 +386,7 @@
String includeSeam = SeamHandler.included(serverDefinition);
append(builder, includeSeam);
}
- if (SOA_P.equals(type)) {
+ if (SOA_P.equals(type) || SOA_P_STD.equals(type)) {
String includeDrools = DroolsHandler.included(serverDefinition);
append(builder, includeDrools);
String includeJbpm = JbpmHandler.included(serverDefinition);
Modified:
branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/JbpmHandler.java
===================================================================
---
branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/JbpmHandler.java 2011-05-30
16:57:16 UTC (rev 31641)
+++
branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/JbpmHandler.java 2011-05-30
17:09:51 UTC (rev 31642)
@@ -31,7 +31,7 @@
public static File getJbpmRoot(ServerDefinition serverDefinition) {
String type = serverDefinition.getType();
- if (SOA_P.equals(type)) {
+ if (SOA_P.equals(type) || SOA_P_STD.equals(type)) {
return new File(serverDefinition.getLocation(),"jbpm-jpdl"); //$NON-NLS-1$
}
if (JBPM.equals(type)) {
@@ -48,7 +48,7 @@
continue;
}
String type = serverDefinition.getType();
- if (SOA_P.equals(type)) {
+ if (SOA_P.equals(type) || SOA_P_STD.equals(type)) {
if (jbpmRoot.isDirectory()) {
String version = JBPM3;
if (isJbpm4(serverDefinition.getLocation().getAbsolutePath())) {
Show replies by date