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


(Phanindra) #1

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?

How to find the project root from a software model Rules class?
(François Guillot) #2

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.

(Phanindra) #3

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.

Native Binaries: How to share common settings across independent projects
(David Cowden) #4

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