|
From: David C. <dc...@us...> - 2005-08-05 20:47:57
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/testunit/launcher In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16447/src/org/rubypeople/rdt/testunit/launcher Modified Files: TestUnitRunnerConfiguration.java Log Message: Corrected launch filename on windows platform for Test::Unit Index: TestUnitRunnerConfiguration.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/testunit/launcher/TestUnitRunnerConfiguration.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** TestUnitRunnerConfiguration.java 17 Jul 2005 23:50:46 -0000 1.11 --- TestUnitRunnerConfiguration.java 5 Aug 2005 20:47:49 -0000 1.12 *************** *** 6,10 **** import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Path; - import org.eclipse.core.runtime.Platform; import org.eclipse.debug.core.ILaunchConfiguration; import org.rubypeople.rdt.internal.launching.InterpreterRunnerConfiguration; --- 6,9 ---- *************** *** 19,31 **** public String getAbsoluteFileName() { ! String filename = getFileName(); ! if (Platform.getOS().equals(Platform.OS_WIN32)) { ! // just searching for a colon without consideration of the Platform ! // could chop off linux filenames which may contain colons ! if (filename.indexOf(':') != -1) { ! filename = filename.substring(filename.indexOf(':') + 1); ! } ! } ! return filename; } --- 18,22 ---- public String getAbsoluteFileName() { ! return new File(getFileName()).getAbsolutePath(); } |