[yocto] [RFC refactor 03/21] Use / as separator instead of OS separator
Ioana Grigoropol
ioanax.grigoropol at intel.com
Wed Jun 5 10:00:04 PDT 2013
- when running remote commands it is not indicated to use the OS separator since the host and the target could be different
- instead use the remote target separator(/) since this will always be a Linux based machine
Signed-off-by: Ioana Grigoropol <ioanax.grigoropol at intel.com>
---
.../src/org/yocto/bc/bitbake/ShellSession.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ShellSession.java b/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ShellSession.java
index bc962f7..4e8dd47 100644
--- a/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ShellSession.java
+++ b/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ShellSession.java
@@ -53,11 +53,11 @@ public class ShellSession {
StringBuffer sb = new StringBuffer();
- String elems[] = file.split(File.separator);
+ String elems[] = file.split("//");
for (int i = 0; i < elems.length - 1; ++i) {
sb.append(elems[i]);
- sb.append(File.separator);
+ sb.append("//");
}
return sb.toString();
--
1.7.9.5
More information about the yocto
mailing list