now I had to use #if #define #else in my java project. It is not good. But what is other good method? For example, there is game project can build for mobile nokia 7650 and nokia QD, there is only little difference between. So I define final varibale MOBILE as :
public static final int NOK_QD = 10;
public static final int NOK7650 = 11;
public static int MOBILE =
Before build, I comment the line of NOK7650 or NOK_QD and uncomment another.
I can do this by perl script called by ant build file. But I want to know if there is more easy method to do it in IDEA.