hxmake
hxmake copied to clipboard
Looks like Task#enabled doesn't works
Content of make/EnabledTestModule.hx:
package;
import hxmake.cli.MakeLog;
import hxmake.Task;
class EnabledTestModule extends hxmake.Module {
public function new() {
task("task1", Task.empty().doLast(function(_):Void { MakeLog.warning("task1"); }));
task("task1").enabled = false;
}
}
Run of:
hxmake task1
Produces:
$ hxmake task1
/usr/local/lib/haxe/lib/hxmake/0,2,1/src/hxmake/utils/Haxe.hx:41: characters 31-49 : Warning : Use programPath instead
Tasks order:
task1 for hxmake_task_enabled
[WARNING] task1
Make time: 0 sec.