Author: dazarov
Date: 2008-10-24 08:45:55 -0400 (Fri, 24 Oct 2008)
New Revision: 11148
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-24
12:44:22 UTC (rev 11147)
+++
trunk/jst/plugins/org.jboss.tools.jst.firstrun/src/org/jboss/tools/jst/firstrun/JBossASAdapterInitializer.java 2008-10-24
12:45:55 UTC (rev 11148)
@@ -109,22 +109,22 @@
while(true){
String jbossASLocation = null;
- position = str.indexOf("=",position);
+ position = str.indexOf("=",position+1);
if(position < 0) break;
// server name
- position = str.indexOf(",",position);
+ position = str.indexOf(",",position+1);
if(position < 0) break;
// server type
- position = str.indexOf(",",position);
+ position = str.indexOf(",",position+1);
if(position < 0) break;
// server location
- position = str.indexOf(",",position);
+ position = str.indexOf(",",position+1);
if(position < 0) break;
- int next = str.indexOf("server",position);
+ int next = str.indexOf("server",position+1);
if(next < 0)
jbossASLocation = str.substring(position+1,str.length()-1);