From 794642564f09cab7d365b3fd87decdfe5f20a80e Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Mon, 23 Feb 2015 10:41:58 -0800 Subject: [PATCH] Ignore -clean flag if not updating/building (such as 'run -clean', which makes no sense) --- lime/project/PlatformTarget.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lime/project/PlatformTarget.hx b/lime/project/PlatformTarget.hx index 21c3da633..ff74dbe14 100644 --- a/lime/project/PlatformTarget.hx +++ b/lime/project/PlatformTarget.hx @@ -40,7 +40,7 @@ class PlatformTarget { } //if (!Reflect.hasField (metaFields.clean, "ignore") && (command == "clean" || targetFlags.exists ("clean"))) { - if (!Reflect.hasField (metaFields.clean, "ignore") && (command == "clean" || (project.targetFlags.exists ("clean") && command != "rebuild"))) { + if (!Reflect.hasField (metaFields.clean, "ignore") && (command == "clean" || (project.targetFlags.exists ("clean") && (command == "update" || command == "build" || command == "test")))) { LogHelper.info ("", LogHelper.accentColor + "Running command: CLEAN" + LogHelper.resetColor); clean ();