How to get the project directory passed to a @Mutate rule in a RuleSource plugin

I’m using the new Rule based model to create plugins. My plugin needs to know the project directory. Is there any way to pass that in?

I think you can use a by-path binding to get the “buildDir” off the project.

I’m not sure if the projectDir is bound in the New mode yet.

Thanks. Yep, the @Path(‘buildDir’) works (and addresses my use-case). I think it’d be cleaner to have access to projectDir or rootDir because buildDir can be configured to any location.

Is there anywhere we can get a list of what properties are currently bound?

1 Like