Author: snjeza
Date: 2012-03-03 15:14:40 -0500 (Sat, 03 Mar 2012)
New Revision: 39272
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/JBossRuntimeStartup.java
Log:
JBDS-2048 Runtime detection: Location not added to the paths list
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/JBossRuntimeStartup.java
===================================================================
---
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/JBossRuntimeStartup.java 2012-03-02
21:45:00 UTC (rev 39271)
+++
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/JBossRuntimeStartup.java 2012-03-03
20:14:40 UTC (rev 39272)
@@ -51,12 +51,14 @@
if (isJBDS()) {
final Set<RuntimePath> runtimePaths = new HashSet<RuntimePath>();
parseRuntimeLocationsFile(runtimePaths);
+ RuntimePath eapPath = null;
try {
String configuration = getConfiguration();
File directory = new File(configuration, JBOSS_EAP_HOME);
if (directory.isDirectory()) {
RuntimePath runtimePath = new RuntimePath(directory.getAbsolutePath());
runtimePaths.add(runtimePath);
+ eapPath = runtimePath;
}
} catch (IOException e) {
RuntimeUIActivator.log(e);
@@ -71,14 +73,14 @@
serverDefinition.setRuntimePath(runtimePath);
}
runtimePath.getServerDefinitions().addAll(serverDefinitions);
- initializeRuntimes(serverDefinitions);
+ if (runtimePath.equals(eapPath)) {
+ initializeRuntimes(serverDefinitions);
+ }
}
if (runtimePaths.size() > 0) {
RuntimeUIActivator.getDefault().getRuntimePaths().addAll(runtimePaths);
RuntimeUIActivator.getDefault().saveRuntimePaths();
}
-
-
}
}
Show replies by date