Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#88 Windows compatibility issue

open
nobody
Harness (16)
5
2012-01-06
2012-01-06
Ingo Proetel
No

On Windows it is not possible to start the benchmarks if the dacapo.jar file was unpacked into a directory. This is caused by a platform-dependen file name manipulation in org.dacapo.harness.CommandLineArgs:

--- CommandLineArgs.old Fri Jan 6 14:25:09 2012
+++ src\org\dacapo\harness\CommandLineArgs.java Fri Jan 6 13:50:46 2012
@@ -258,8 +258,7 @@
if (dir.isDirectory()) {
File[] files = dir.listFiles();
for (int i = 0; i < files.length; i++) {
- String entry = files[i].toString();
- entry = entry.substring(entry.lastIndexOf('/') + 1, entry.length());
+ String entry = files[i].getName();
entry = entry.replace(".cnf", "");
benchmarks.add(entry);
}

Discussion