How to only compile the module I want to run,not all

My project has 2 module and now I want to run one of them ,but idea will compile all of them before running.Is it a must?my project is so big that it takes much time to compile totally.

3 comments
Comment actions Permalink

in your run configuration uncheck the "make before run" checkbox and manually build (right click > make) the needed modules before running

0
Comment actions Permalink

yes,according to what you said,it's really good.thank you so much.

0
Comment actions Permalink

This is a pretty hackish solution, though - ideally it should build only the module you've selected and its dependent modules. This has been discussed before:

http://intellij.net/forums/thread.jspa?messageID=5208497

I'm still not sure this is working correctly, if you have any counter examples that would be good.

Cheers,
Colin

0

Please sign in to leave a comment.