in paths, dirs are separated by '/'s only

This commit is contained in:
fros4943 2008-09-20 09:15:45 +00:00
parent 43fe1882f9
commit 1f1112618a
3 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: MspMoteType.java,v 1.10 2008/09/20 08:53:20 fros4943 Exp $
* $Id: MspMoteType.java,v 1.11 2008/09/20 09:16:28 fros4943 Exp $
*/
package se.sics.cooja.mspmote;
@ -961,7 +961,7 @@ public abstract class MspMoteType implements MoteType {
if (fileSource != null) {
element = new Element("source");
fileSource = GUI.stripAbsoluteContikiPath(fileSource);
element.setText(fileSource.getPath());
element.setText(fileSource.getPath().replaceAll("\\\\", "/"));
config.add(element);
element = new Element("command");
element.setText(compileCommand);
@ -970,7 +970,7 @@ public abstract class MspMoteType implements MoteType {
// ELF file
element = new Element("elf");
fileELF = GUI.stripAbsoluteContikiPath(fileELF);
element.setText(fileELF.getPath());
element.setText(fileELF.getPath().replaceAll("\\\\", "/"));
config.add(element);
}

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: MspCodeWatcher.java,v 1.12 2008/09/18 14:05:00 fros4943 Exp $
* $Id: MspCodeWatcher.java,v 1.13 2008/09/20 09:16:28 fros4943 Exp $
*/
package se.sics.cooja.mspmote.plugins;
@ -466,7 +466,7 @@ public class MspCodeWatcher extends VisPlugin {
if (codeFile != null) {
element = new Element("codefile");
codeFile = GUI.stripAbsoluteContikiPath(codeFile);
element.setText(codeFile.getPath());
element.setText(codeFile.getPath().replaceAll("\\\\", "/"));
config.add(element);
}

View File

@ -18,7 +18,7 @@
se.sics.cooja.mspmote.SkyMoteType
<identifier>sky1</identifier>
<description>Sky Mote Type #1</description>
<source>..\..\..\examples\hello-world\hello-world.c</source>
<source>../../../examples/hello-world/hello-world.c</source>
<command>make hello-world.firmware TARGET=sky</command>
</motetype>
<mote>