I have a program that links to a file on our network drive ("PricingMaster.omas"), but when I'm in beta, I use another file ("PricingMasterBetaTest.omas"). Currently, I manually change the line from one to another.
So:
File masterFile = new File("g:/DataTeam", "PricingMasterBetaTest.omas");
becomes:
File masterFile = new File("g:/DataTeam", "PricingMaster.omas");
In fact, this happens in several places in a pair of files, so as you can imagine, sometimes I forget, and my users end up getting confused. So I was wondering if there is a way to do this so that I can determine which line is used depending on what I am compiling it for?
I tried asking Google, but I donβt have enough knowledge to correctly formulate the question. In my opinion, the psuedo code looks something like this:
@CompileDebug File masterFile = new File("g:/DataTeam", "PricingMasterBetaTest.omas"); @CompileRelease File masterFile = new File("g:/DataTeam", "PricingMaster.omas");
I am doing this project in Eclipse, so maybe this is a trick that can help me with Eclipse? I also do not mind doing it in Ant, if possible. Sorry, I know that I'm a little vague (or tight), today I feel bad in my Google Fu.
source share