Author: lzoubek(a)redhat.com
Date: 2011-08-03 14:59:38 -0400 (Wed, 03 Aug 2011)
New Revision: 33551
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/RuntimeBean.java
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/ServerBean.java
Log:
swtbot ext: allow runtime locations be relative paths
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/RuntimeBean.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/RuntimeBean.java 2011-08-03
18:52:34 UTC (rev 33550)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/RuntimeBean.java 2011-08-03
18:59:38 UTC (rev 33551)
@@ -21,7 +21,7 @@
return null;
}
String[] params = propValue.split(",");
- bean.runtimeHome=params[1];
+ bean.runtimeHome=new File(params[1]).getAbsolutePath();
bean.version=params[0];
return bean;
}
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/ServerBean.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/ServerBean.java 2011-08-03
18:52:34 UTC (rev 33550)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/ServerBean.java 2011-08-03
18:59:38 UTC (rev 33551)
@@ -54,7 +54,7 @@
}
String[] serverParams = propValue.split(",");
bean.withJavaVersion = serverParams[2];
- bean.runtimeHome=serverParams[3];
+ bean.runtimeHome=new File(serverParams[3]).getAbsolutePath();
bean.version=serverParams[1];
bean.type = serverParams[0];
Show replies by date