Skip to content

Commit 6a73ddb

Browse files
committed
Added change to Calabash to ennable running on GAE
1 parent a3cd59e commit 6a73ddb

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

URIUtils.diff

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Index: util/URIUtils.java
2+
===================================================================
3+
--- util/URIUtils.java (revision 420)
4+
+++ util/URIUtils.java (working copy)
5+
@@ -82,14 +82,18 @@
6+
URI cwd = null;
7+
8+
try {
9+
- String path = encode(dir);
10+
- if (!path.endsWith("/")) {
11+
- path += "/";
12+
- }
13+
- if (!path.startsWith("/")) {
14+
- path = "/" + path;
15+
- }
16+
- cwd = new URI("file:" + path);
17+
+ if (dir.startsWith("http://")) { // Skip this stuff if passed in an http:// URI
18+
+ cwd = new URI(dir);
19+
+ } else {
20+
+ String path = encode(dir);
21+
+ if (!path.endsWith("/")) {
22+
+ path += "/";
23+
+ }
24+
+ if (!path.startsWith("/")) {
25+
+ path = "/" + path;
26+
+ }
27+
+ cwd = new URI("file:" + path);
28+
+ }
29+
} catch (URISyntaxException use) {
30+
throw new XProcException(use);
31+
}

0 commit comments

Comments
 (0)