automatically cleaning temporary files for every non-gui test: takes longer but allows for test-specific compiler flags

This commit is contained in:
fros4943 2009-03-03 13:45:32 +00:00
parent 4fdb0c2f03
commit 6367a73fa4

View file

@ -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: 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; package se.sics.cooja.contikimote;
@ -209,6 +209,11 @@ public class ContikiMoteType implements MoteType {
return ContikiMoteTypeDialog.showDialog(parentContainer, simulation, this); return ContikiMoteTypeDialog.showDialog(parentContainer, simulation, this);
} else { } else {
/* Automatically clean if not visualized */
if (!GUI.isVisualized()) {
ContikiMoteTypeDialog.cleanTempFiles();
}
// Create temp output directory if not already exists // Create temp output directory if not already exists
if (!ContikiMoteType.tempOutputDirectory.exists()) { if (!ContikiMoteType.tempOutputDirectory.exists()) {
ContikiMoteType.tempOutputDirectory.mkdir(); ContikiMoteType.tempOutputDirectory.mkdir();