From 6367a73fa423b64c2456437ac5aca2638d46adb1 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Tue, 3 Mar 2009 13:45:32 +0000 Subject: [PATCH] automatically cleaning temporary files for every non-gui test: takes longer but allows for test-specific compiler flags --- .../java/se/sics/cooja/contikimote/ContikiMoteType.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteType.java b/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteType.java index b09601490..6a3763dc3 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.28 2008/11/20 16:35:44 fros4943 Exp $ + * $Id: ContikiMoteType.java,v 1.29 2009/03/03 13:45:32 fros4943 Exp $ */ package se.sics.cooja.contikimote; @@ -209,6 +209,11 @@ public class ContikiMoteType implements MoteType { return ContikiMoteTypeDialog.showDialog(parentContainer, simulation, this); } else { + /* Automatically clean if not visualized */ + if (!GUI.isVisualized()) { + ContikiMoteTypeDialog.cleanTempFiles(); + } + // Create temp output directory if not already exists if (!ContikiMoteType.tempOutputDirectory.exists()) { ContikiMoteType.tempOutputDirectory.mkdir();