fixing paths
This commit is contained in:
parent
ed6f208609
commit
6fd056dafb
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: MspCodeWatcher.java,v 1.8 2008/04/03 14:03:30 fros4943 Exp $
|
* $Id: MspCodeWatcher.java,v 1.9 2008/04/22 13:06:36 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja.mspmote.plugins;
|
package se.sics.cooja.mspmote.plugins;
|
||||||
|
@ -761,6 +761,7 @@ public class MspCodeWatcher extends VisPlugin {
|
||||||
try {
|
try {
|
||||||
/* Replace Contiki parent path with web server code base */
|
/* Replace Contiki parent path with web server code base */
|
||||||
path = contikiWebPath + '/' + path.substring(contikiBuildPath.length());
|
path = contikiWebPath + '/' + path.substring(contikiBuildPath.length());
|
||||||
|
path = path.replace('\\', '/');
|
||||||
URL url = new URL(GUI.getAppletCodeBase(), path);
|
URL url = new URL(GUI.getAppletCodeBase(), path);
|
||||||
return readTextFile(url);
|
return readTextFile(url);
|
||||||
} catch (MalformedURLException e) {
|
} catch (MalformedURLException e) {
|
||||||
|
|
Loading…
Reference in a new issue