My favorites
▼
|
Sign in
mxunit
Unit Test Framework for ColdFusion
Project Home
Downloads
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
141
attachment: PathUtils.patch
(808 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Index: org.mxunit.eclipseplugin/trunk/src/org/mxunit/eclipseplugin/utils/PathUtils.java
===================================================================
--- org.mxunit.eclipseplugin/trunk/src/org/mxunit/eclipseplugin/utils/PathUtils.java (revision 446)
+++ org.mxunit.eclipseplugin/trunk/src/org/mxunit/eclipseplugin/utils/PathUtils.java (working copy)
@@ -85,7 +85,13 @@
//replace all slashes with periods
stripped = stripped.replaceAll("\\\\|/", ".");
- String path = componentRoot + "." + stripped;
+ String path;
+ if ("/".equals(componentRoot)) {
+ path = stripped;
+ }
+ else {
+ path = componentRoot + "." + stripped;
+ }
path = path.replaceAll("\\.{2,}", ".");
return path;
}
Powered by
Google Project Hosting