Author: dazarov
Date: 2008-10-24 08:49:19 -0400 (Fri, 24 Oct 2008)
New Revision: 11149
Modified:
branches/jbosstools-3.0.0.Beta1/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:
branches/jbosstools-3.0.0.Beta1/jst/plugins/org.jboss.tools.jst.firstrun/src/org/jboss/tools/jst/firstrun/JBossASAdapterInitializer.java
===================================================================
---
branches/jbosstools-3.0.0.Beta1/jst/plugins/org.jboss.tools.jst.firstrun/src/org/jboss/tools/jst/firstrun/JBossASAdapterInitializer.java 2008-10-24
12:45:55 UTC (rev 11148)
+++
branches/jbosstools-3.0.0.Beta1/jst/plugins/org.jboss.tools.jst.firstrun/src/org/jboss/tools/jst/firstrun/JBossASAdapterInitializer.java 2008-10-24
12:49:19 UTC (rev 11149)
@@ -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);