How to establish Scope for all files in a specific module?

Hi

IntelliJ 10.0.3.

I'd like to create and search within a custom scope including all files in a particular module. In particular, I want to search for all references of a package P within module M in a second module X.

I should be able to do this with
src[X]:my.top-level..*

however, I want to include Spring configuration files located within X in the search, not just class files. Is there a Scope language syntax for that?


Thanks
Patrick

0
Avatar
Permanently deleted user

Found my own answer just a few minutes later.

Use the prefix "file[Module]" to select normal files in a module.
file[X]:..*.xml

Includes all files named "*.xml" within module X.

Predicates can be composed with logical operators. This includes all XML and all properties files in module X
file[X]:..*.xml||file[X]:..*.properties

Here's one that includes XML, properties, excludes the Maven POM, and includes Java source files in the my.top-level package
(file[X]:..*.xml||file[X]:..*.properties||src[X]:my.top-level..*)&&!file[X]:pom.xml


Patrick

0

请先登录再写评论。