Author: richard.opalka(a)jboss.com
Date: 2008-07-30 06:31:20 -0400 (Wed, 30 Jul 2008)
New Revision: 7948
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/tools/scripts/ScriptTestCase.java
Log:
[JBWS-1987] make tests portable accross platforms
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/tools/scripts/ScriptTestCase.java
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/tools/scripts/ScriptTestCase.java 2008-07-30
10:24:23 UTC (rev 7947)
+++
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/tools/scripts/ScriptTestCase.java 2008-07-30
10:31:20 UTC (rev 7948)
@@ -37,7 +37,7 @@
private static final String FS = System.getProperty("file.separator"); //
'/' on unix, '\' on windows
private static final String PS = System.getProperty("path.separator"); //
':' on unix, ';' on windows
private static final String LS = System.getProperty("line.separator"); //
'\n' on unix, '\r\n' on windows
- private String TOOLS_CONFIG =
getResourceFile("tools/scripts/wstools-config.xml").getAbsolutePath();
+ private String TOOLS_CONFIG = getResourceFile("tools" + FS +
"scripts" + FS + "wstools-config.xml").getAbsolutePath();
private String JBOSS_HOME;
private String JDK_HOME;
@@ -57,7 +57,7 @@
public void testWSToolsFromCommandLine() throws Exception
{
// use absolute path for the output to be re-usable
- File dest = createResourceFile("wstools/java");
+ File dest = createResourceFile("wstools" + FS + "java");
dest.mkdirs();
String command = JBOSS_HOME + FS + "bin" + FS + "wstools.sh -config
" + TOOLS_CONFIG + " -dest "+ dest.getAbsolutePath();
Show replies by date