Ignore -clean flag if not updating/building (such as 'run -clean', which makes no sense)
This commit is contained in:
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user