projects
/
org.ibex.xt-crawshaw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add mkdir and replace functions
[org.ibex.xt-crawshaw.git]
/
src
/
java
/
org
/
ibex
/
xt
/
shell
/
JSRemote.java
diff --git
a/src/java/org/ibex/xt/shell/JSRemote.java
b/src/java/org/ibex/xt/shell/JSRemote.java
index
4b3e475
..
e54a9f5
100644
(file)
--- a/
src/java/org/ibex/xt/shell/JSRemote.java
+++ b/
src/java/org/ibex/xt/shell/JSRemote.java
@@
-176,6
+176,7
@@
public class JSRemote extends JS {
}
int pos = k.lastIndexOf('.');
if (pos >= 0) {
}
int pos = k.lastIndexOf('.');
if (pos >= 0) {
+ if (path == null) path = "";
path += k.substring(0, pos);
k = k.substring(pos + 1);
}
path += k.substring(0, pos);
k = k.substring(pos + 1);
}
@@
-196,7
+197,7
@@
public class JSRemote extends JS {
if (s.length() > 0 && !s.equals(".")) {
Object ob = scope.get(s);
if (ob == null || !(ob instanceof JS))
if (s.length() > 0 && !s.equals(".")) {
Object ob = scope.get(s);
if (ob == null || !(ob instanceof JS))
- throw new JSExn("path not found");
+ throw new JSExn("path not found ");
scope = (JS)ob;
}
}
scope = (JS)ob;
}
}