|
From: <mwl...@us...> - 2007-08-15 23:04:23
|
Revision: 474
http://cishell.svn.sourceforge.net/cishell/?rev=474&view=rev
Author: mwlinnem
Date: 2007-08-15 16:04:17 -0700 (Wed, 15 Aug 2007)
Log Message:
-----------
Reports no longer dumped into users home directory. Removed platform specific file separators. (Once again).
Modified Paths:
--------------
trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/ConverterTester2.java
trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/TestFileKeeper.java
trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/allconvs/AllConvsReportGenerator.java
trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/alltests/AllTestsReportGenerator.java
trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/readme/ReadMeReportGenerator.java
Modified: trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/ConverterTester2.java
===================================================================
--- trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/ConverterTester2.java 2007-08-15 22:44:39 UTC (rev 473)
+++ trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/ConverterTester2.java 2007-08-15 23:04:17 UTC (rev 474)
@@ -38,6 +38,10 @@
private TestRunner testRunner;
public ConverterTester2(LogService log) {
+
+ //TODO: Make this not a huge hack
+ new File(ReportGenerator.TEMP_DIR).mkdir();
+
this.log = log;
this.testFileKeeper =
new TestFileKeeper(TestFileKeeper.DEFAULT_ROOT_DIR, log);
Modified: trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/TestFileKeeper.java
===================================================================
--- trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/TestFileKeeper.java 2007-08-15 22:44:39 UTC (rev 473)
+++ trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/TestFileKeeper.java 2007-08-15 23:04:17 UTC (rev 474)
@@ -52,7 +52,7 @@
try {
//open config file that maps formats to test file directories
- String filePath = System.getProperty("user.home") + "/" + rootDir
+ String filePath = System.getProperty("user.home") + File.separator + rootDir
+ CONF_FILE_NAME;
reader = new BufferedReader(new FileReader(filePath));
Modified: trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/allconvs/AllConvsReportGenerator.java
===================================================================
--- trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/allconvs/AllConvsReportGenerator.java 2007-08-15 22:44:39 UTC (rev 473)
+++ trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/allconvs/AllConvsReportGenerator.java 2007-08-15 23:04:17 UTC (rev 474)
@@ -36,7 +36,6 @@
FileOutputStream reportOutStream = null;
try {
- new File(TEMP_DIR);
File reportFile = new File(TEMP_DIR + TEMP_FILE_PATH);
reportOutStream = new FileOutputStream(reportFile);
PrintStream report = new PrintStream(reportOutStream);
Modified: trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/alltests/AllTestsReportGenerator.java
===================================================================
--- trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/alltests/AllTestsReportGenerator.java 2007-08-15 22:44:39 UTC (rev 473)
+++ trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/alltests/AllTestsReportGenerator.java 2007-08-15 23:04:17 UTC (rev 474)
@@ -27,9 +27,6 @@
public AllTestsReportGenerator(LogService log) {
this.log = log;
this.testResultSubGen = new TestReportSubGenerator();
-
- //TODO: Make this not a huge hack
- new File(TEMP_DIR).mkdir();
}
public void generateReport(AllTestsResult atr) {
Modified: trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/readme/ReadMeReportGenerator.java
===================================================================
--- trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/readme/ReadMeReportGenerator.java 2007-08-15 22:44:39 UTC (rev 473)
+++ trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/readme/ReadMeReportGenerator.java 2007-08-15 23:04:17 UTC (rev 474)
@@ -14,7 +14,7 @@
public void generateReport(AllTestsResult atr) {
//TODO: TOTAL HACK, CHANCE AS SOON AS POSSIBLE
- String readmePath = (System.getProperty("user.home") + "/" +
+ String readmePath = (System.getProperty("user.home") + File.separator +
TestFileKeeper.DEFAULT_ROOT_DIR + "ReportREADME.txt");
System.out.println("ReadMe path is: " + readmePath);
File readmeFile = new File(readmePath);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|