Partial Compilation?

Hi,

I'm working on a large, web-based product. There are about 30 developers, and some of them have put code that doesn't compile into source control. My code doesn't have dependencies on the non-compiling code. We are currently using Websphere Studio 4.0.3, which is awful; unstable, slow, confusing UI.

I'd like to switch to using Idea, but I can't figure out how to replicate one nice feature in Websphere Studio: partial compilation. Classes that can be compiled are and the generated class files are saved to the output directory. Invalid classes are, of course, not generated. This allows me to work, even with bad code checked in.

Is there a way to get Idea to replicate this behavior? With the javac compiler, any bad code prevents all classes from being outputted. With jikes, some classes are generated and others aren't; it seems random whether or not a class file is generated. I know that I can exclude directories manually, but I don't want to have to figure out which of the 400+ files are defective; I want Idea to do it for me.

Thanks,

Jon

4 comments
Comment actions Permalink

Hi,

Not 100% the solution you're looking for... but you can exclude individual files from compilation by right-clicking on the filename when they show up with errors in the "messages" view during compilation.

You can (and should not forget to) include them again from the "project properties" screen when you think they are compilable again.

Maas

0
Comment actions Permalink

you could also use ant which has that functionality. The big issue is why are people checking in code that won't even compile? :)

0
Comment actions Permalink

you could also use ant which has that functionality.


How do I enable this functionality with ant?

The big issue is why are people checking in code
that won't even compile? :)


Oy, don't get me started...

-jon

0
Comment actions Permalink

in ant you would have to use or ]]> to either specify not to compile certain files or packages or to only compile certain files or packages. I have had this problem in the past and I just delete the files that won't compile and then don't get them from the vcs server.

0

Please sign in to leave a comment.