Chetan
Chetan

Reputation: 13

exclude folder and file patterns for java compiler in idea intellij

I recently migrated from eclipse to intellij. I have many folders and files to be excluded from compilation. Eg. I have about 40-50 folders named 'test' containing class files and folders that needs to be excluded. I also need to exclude any class file whose name ends with *Test.java.

In eclipse the exclusion pattern is - **/test/** and **/*Test.java that I could set at project level.

In Intellij, I cannot find any equivalent thing that works. It is impractical for me to manually add 100s of folders and files individually at - 'Settings -> Build, Execution, Deployment -> Compiler -> Excludes'.

Does Intellij support exclusion pattern for folders and file like eclipse? Can you help me with above example - on what is the pattern and where to set it in intellij?

Please do not ask me to individually add all the test folders and files ending with Test.java to exclude. There are 100s of them. Looking for regex pattern like in eclipse.

Thanks.

Upvotes: 1

Views: 510

Answers (0)

Related Questions