Author: jhalliday
Date: 2008-08-11 10:15:19 -0400 (Mon, 11 Aug 2008)
New Revision: 18
Modified:
trunk/src/org/jboss/dtf/testframework/local/LocalTestManager.java
Log:
Improved handling for config files with relative rather than absolute paths. DTF-4
Modified: trunk/src/org/jboss/dtf/testframework/local/LocalTestManager.java
===================================================================
--- trunk/src/org/jboss/dtf/testframework/local/LocalTestManager.java 2008-08-07 15:19:54
UTC (rev 17)
+++ trunk/src/org/jboss/dtf/testframework/local/LocalTestManager.java 2008-08-11 14:15:19
UTC (rev 18)
@@ -30,6 +30,7 @@
import java.net.URL;
import java.util.*;
+import java.io.File;
/**
* A simple DTF test coordinator designed to run DTF tests without requiring a web
server, database or
@@ -88,10 +89,10 @@
}
public static LocalTestManager getInstance(String testdefsFile, String
productConfigFile, String testnodeConfigFile) throws Exception {
- TestDefinitionRepository testDefinitionRepository = new
TestDefinitionRepository(new URL("file://"+testdefsFile));
- TaskDefinitionRepository taskDefinitionRepository = new
TaskDefinitionRepository(new URL("file://"+testdefsFile));
+ TestDefinitionRepository testDefinitionRepository = new
TestDefinitionRepository(new URL("file://"+(new
File(testdefsFile).getAbsolutePath())));
+ TaskDefinitionRepository taskDefinitionRepository = new
TaskDefinitionRepository(new URL("file://"+(new
File(testdefsFile).getAbsolutePath())));
- return new LocalTestManager(testDefinitionRepository, taskDefinitionRepository,
productConfigFile, "file://"+testnodeConfigFile);
+ return new LocalTestManager(testDefinitionRepository, taskDefinitionRepository,
productConfigFile, "file://"+(new File(testnodeConfigFile).getAbsolutePath()));
}
public LocalTestManager(TestDefinitionRepository testDefinitionRepository,
TaskDefinitionRepository taskDefinitionRepository,
Show replies by date