This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Which ways can I use to take out the common actions to avoid copy/paste?
After that, how can I identify in my Java code which profile executes now?
I need this because the code is pretty common for both profiles, I can't separate it, so I want to create some condition in my java code, where I'll be able to choose further actions according to current Profile. I've tried to use SystemProperty configuration in my pom.xml by It was unsuccessful, I wasn't able to get this property by System.getProperty(..) and also I doubt that this is a good way.