Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looks like Task#enabled doesn't works #37

Open
romanmikhailov opened this issue Dec 11, 2017 · 0 comments
Open

Looks like Task#enabled doesn't works #37

romanmikhailov opened this issue Dec 11, 2017 · 0 comments

Comments

@romanmikhailov
Copy link
Contributor

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant