Reputation: 3391
In IntelliJ, I have a couple of separate applications which dont really depend on each other (and sometimes associated tests). Sometimes one of them has an error (cant find a package to import or so) and I really dont have time to fix it because I need to work on something else, I have no other choice but completely commenting out the offending file. Can I tell Intellij To please just ignore a certain file when I want to execute another application?
Upvotes: 1
Views: 1744
Reputation: 21
Under "Project Settings" -> "Module", exclude the package you don't want to run:
Upvotes: 1
Reputation: 97328
You should move the separate applications to separate modules. When you run an application, it will compile only the module containing this application and its dependencies, and will not compile the other modules.
Upvotes: 1