Compiling with two CPU cores
Is it possible to compile with two or more CPU cores or just with one?
As it seems, javac uses only one core when I compile with the Ant tasc "javac".
Is it possible to compile with two or more CPU cores or just with one?
As it seems, javac uses only one core when I compile with the Ant tasc "javac".
I don't know of a way to do this, but I've never seen a need to do this either, since java compilation is never too slow for me (even for huge projects).
If you seriously need faster compilation, you could switch to a faster compiler (jikes is seriously fast, ecj (the eclipse compiler) is even faster, sometimes).
You might also try compiling seperate (independent) parts of your sourcecode with explicit parallel constructs in ant ('though I don't know if it's worth the overhead).