Ignore -clean flag if not updating/building (such as 'run -clean', which makes no sense)

This commit is contained in:
Joshua Granick
2015-02-23 10:41:58 -08:00
parent 9533291e5f
commit 794642564f

View File

@@ -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 ();