Proper way to modify getRecipeList
based on examining the entire project
#4701
-
Currently, I have a set of recipes that simply return a recipe list. However, I need to create a noop situation based on looking at the entire project I'm rewriting. I assume I need to do this with a Scanning recipe. I know there's some issues about using a scanning recipe as a precondition in a declarative recipe, but mine is imperative. The only programmatic way I'm seeing is through something like Is there an idiomatic way to do this? Some preliminary attempts with Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
-
So I would avoid For optional execution, I'd probably use a scanning recipe, then in the edit phase use various attributes in the accumulator object to decide which recipe's visitors should be used. I'd just use the visitors directly rather than Ie.
|
Beta Was this translation helpful? Give feedback.
So I would avoid
getRecipeList
unless you're always wanting that set of recipes to run. Even in which case, if you're trying to do parameters it can sometimes behave weirdly.For optional execution, I'd probably use a scanning recipe, then in the edit phase use various attributes in the accumulator object to decide which recipe's visitors should be used. I'd just use the visitors directly rather than
doAfterVisit
as well.Ie.