You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/05/27 06:40:49 UTC

[3/6] git commit: [flex-sdk] [refs/heads/develop] - Even on windows, git seems to use forward slash

Even on windows, git seems to use forward slash


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/71366f99
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/71366f99
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/71366f99

Branch: refs/heads/develop
Commit: 71366f9949ad329cd728e9baecd0f977e80664af
Parents: e87ba6f
Author: Alex Harui <ah...@apache.org>
Authored: Sat May 25 01:06:05 2013 +0100
Committer: Alex Harui <ah...@apache.org>
Committed: Sat May 25 01:06:05 2013 +0100

----------------------------------------------------------------------
 .../src/MustellaTestChooser.mxml                   |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/71366f99/mustella/utilities/MustellaTestChooser/src/MustellaTestChooser.mxml
----------------------------------------------------------------------
diff --git a/mustella/utilities/MustellaTestChooser/src/MustellaTestChooser.mxml b/mustella/utilities/MustellaTestChooser/src/MustellaTestChooser.mxml
index e682c38..cd54994 100644
--- a/mustella/utilities/MustellaTestChooser/src/MustellaTestChooser.mxml
+++ b/mustella/utilities/MustellaTestChooser/src/MustellaTestChooser.mxml
@@ -115,13 +115,13 @@ limitations under the License.
 						if (c != -1)
 							file = file.substr(0, c);
 					}
-					c = file.indexOf(File.separator + "src" + File.separator);
+					c = file.indexOf("/src/");
 					if (c != -1)
 						file = file.substr(c + 5);
-					c = file.lastIndexOf(File.separator);
+					c = file.lastIndexOf("/");
 					if (c != -1)
 						file = file.substring(0, c) + ':' + file.substr(c + 1);
-					file = file.replace(new RegExp("\\" + File.separator,"g"), ".");
+					file = file.replace(new RegExp("\\" + "/","g"), ".");
 					modFiles[i] = file;
 				}
 				var runTests:Array = [];