From c5c6c3b77523b428198174f8862c8137eae7c686 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Fri, 19 Mar 2010 09:08:38 +0000 Subject: [PATCH] return success (0) after exporting jar, use portable firmware paths in exported config --- tools/cooja/java/se/sics/cooja/util/ExecuteJAR.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/util/ExecuteJAR.java b/tools/cooja/java/se/sics/cooja/util/ExecuteJAR.java index 7e8175a52..3fafbdda7 100644 --- a/tools/cooja/java/se/sics/cooja/util/ExecuteJAR.java +++ b/tools/cooja/java/se/sics/cooja/util/ExecuteJAR.java @@ -24,7 +24,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: ExecuteJAR.java,v 1.6 2010/03/10 14:47:58 fros4943 Exp $ + * $Id: ExecuteJAR.java,v 1.7 2010/03/19 09:08:38 fros4943 Exp $ */ package se.sics.cooja.util; @@ -109,7 +109,7 @@ public class ExecuteJAR { buildExecutableJAR(s.getGUI(), jar); } catch (RuntimeException e) { } - System.exit(1); + System.exit(0); } final static boolean OVERWRITE = false; @@ -362,8 +362,8 @@ public class ExecuteJAR { "Error when writing firmware file: " + firmwareFile ); } - logger.info("Simconfig: Update firmware path reference: " + firmwareFile.getAbsolutePath() + " -> " + (executeDir + "/" + newName)); - ((Element)pathElement).setText(executeDir + "/" + newName); + logger.info("Simconfig: Update firmware path reference: " + firmwareFile.getAbsolutePath() + " -> " + ("[CONFIG_DIR]/" + newName)); + ((Element)pathElement).setText("[CONFIG_DIR]/" + newName); } } }