Module contains file
Apache 2.0Intended to be used primarily as a precondition for other recipes, this recipe checks if a module contains a specific file or files matching a pattern. Only files belonging to modules containing the specified file are marked with a SearchResult marker. This is more specific than RepositoryContainsFile which marks all files in the repository if any file matches.
org. openrewrite. java. search. ModuleContainsFileOptional
A glob expression representing a file path to search for (relative to the project root). Blank/null matches all. Multiple patterns may be specified, separated by a semicolon ;. If multiple patterns are supplied any of the patterns matching will be interpreted as a match.
mod run . --recipe= org. openrewrite. java. search. ModuleContainsFileInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.