diff --git a/project.hxp b/project.hxp index a7fdbb150..447a33b03 100644 --- a/project.hxp +++ b/project.hxp @@ -549,7 +549,7 @@ class Project extends HXProject displayTarget(); - if (this.command == "run" || this.command == "install") + if (isRun() || isInstall()) { // These commands dont really need much in order to run so to improve the speed, we return here. return; @@ -1808,6 +1808,16 @@ class Project extends HXProject return this.targetFlags.exists("clean"); } + public function isRun():Bool + { + return this.command == "run"; + } + + public function isInstall():Bool + { + return this.command == "install"; + } + public function isBuild():Bool { return this.command == "test" || this.command == "build";