views:

114

answers:

3

My Eclipse is configured 'Project'->'Build Automatically'. There are large number of Java files in my project. Once one java file is modified, all java files are compiled under the project. It spends much time really.

My question is how to configure Eclipse as 'partly compile' which merely compiles related java files. Does it make sense?

Thanks!

A: 

It SHOULD just build your part. If you have Maven plugin going you would need to tweak it's settings to make it not do a full build every time. Ditto for any kind of aspects...

bwawok
A: 

Unless you have some really strange dependencies, it won't compile everything. Eclipse keeps track of the classes each class depends on. If a file changes, it recompiles the classes in it, and any classes that depend on them, and so on. So, often, saving one file will cause compilation of just one class.

erickson
+1  A: 

You can exclude files you don't need from your build: right click on the file in the package explorer,
choose "Remove from context", or Shift+Ctrl+Alt+Down

Vitalyson