Author: dazarov
Date: 2008-10-30 11:27:28 -0400 (Thu, 30 Oct 2008)
New Revision: 11340
Modified:
trunk/jst/plugins/org.jboss.tools.jst.firstrun/src/org/jboss/tools/jst/firstrun/JBossASAdapterInitializer.java
Log:
https://jira.jboss.org/jira/browse/JBDS-461
Modified:
trunk/jst/plugins/org.jboss.tools.jst.firstrun/src/org/jboss/tools/jst/firstrun/JBossASAdapterInitializer.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.firstrun/src/org/jboss/tools/jst/firstrun/JBossASAdapterInitializer.java 2008-10-30
14:11:38 UTC (rev 11339)
+++
trunk/jst/plugins/org.jboss.tools.jst.firstrun/src/org/jboss/tools/jst/firstrun/JBossASAdapterInitializer.java 2008-10-30
15:27:28 UTC (rev 11340)
@@ -117,8 +117,8 @@
return;
}
JstFirstRunPlugin.getDefault().getPreferenceStore().setValue(FIRST_START_PREFERENCE_NAME,
false);
-
- File serversFile = new File(SERVERS_FILE);
+ String pluginLocation =
FileLocator.resolve(JstFirstRunPlugin.getDefault().getBundle().getEntry("/")).getPath();
+ File serversFile = new File(pluginLocation, SERVERS_FILE);
if(serversFile.exists()){
String str = FileUtil.readFile(serversFile);
int position = 0;
@@ -177,7 +177,7 @@
}
String jbossASLocation = null;
- String pluginLocation =
FileLocator.resolve(JstFirstRunPlugin.getDefault().getBundle().getEntry("/")).getPath();
+
File jbossASDir = new File(pluginLocation, JBOSS_AS_HOME);
if (jbossASDir.isDirectory()) {
jbossASLocation = jbossASDir.getAbsolutePath();