hxmake icon indicating copy to clipboard operation
hxmake copied to clipboard

Looks like Task#enabled doesn't works

Open romanmikhailov opened this issue 8 years ago • 0 comments

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.

romanmikhailov avatar Dec 11 '17 15:12 romanmikhailov