From a9e358eb9eb4275ca06830c8f391072ea1164071 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Wed, 3 Feb 2010 16:26:36 +0000 Subject: [PATCH] convert paths when saving configuration --- tools/cooja/java/se/sics/cooja/motes/ImportAppMoteType.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/cooja/java/se/sics/cooja/motes/ImportAppMoteType.java b/tools/cooja/java/se/sics/cooja/motes/ImportAppMoteType.java index f88bc6507..8563ab528 100644 --- a/tools/cooja/java/se/sics/cooja/motes/ImportAppMoteType.java +++ b/tools/cooja/java/se/sics/cooja/motes/ImportAppMoteType.java @@ -77,7 +77,8 @@ public class ImportAppMoteType extends AbstractApplicationMoteType { if (moteClassPath != null) { Element element = new Element("motepath"); - element.setText(simulation.getGUI().createPortablePath(moteClassPath).getPath()); + File file = simulation.getGUI().createPortablePath(moteClassPath); + element.setText(file.getPath().replaceAll("\\\\", "/")); config.add(element); }