Add isRun and isInstall
This commit is contained in:
+11
-1
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user