From 71ea1cc56ea9a55261bcc9e2d82830b8370f59d3 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Wed, 11 Mar 2009 11:54:19 +0000 Subject: [PATCH] saving contiki relative paths --- .../java/se/sics/cooja/contikimote/ContikiMoteType.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteType.java b/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteType.java index 6f5c40e64..06743d73c 100644 --- a/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteType.java +++ b/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteType.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ContikiMoteType.java,v 1.30 2009/03/10 21:10:06 fros4943 Exp $ + * $Id: ContikiMoteType.java,v 1.31 2009/03/11 11:54:19 fros4943 Exp $ */ package se.sics.cooja.contikimote; @@ -1246,7 +1246,8 @@ public class ContikiMoteType implements MoteType { config.add(element); element = new Element("contikiapp"); - element.setText(getContikiSourceFile().getAbsolutePath()); /* TODO Fix Contiki-relative path */ + File tmp = GUI.stripAbsoluteContikiPath(getContikiSourceFile()); + element.setText(tmp.getPath().replaceAll("\\\\", "/")); /* TODO Fix Contiki-relative path */ config.add(element); element = new Element("commands");