Reputation: 2409
I'd like to make some changes in my code according to some Marketing requires. I thing that the best solution is using preprocessing, like in J2ME. How can I do it? Is there any tool for this task? Thanks, Eyal.
Upvotes: 3
Views: 9716
Reputation: 873
There are number of preprocessors for Java, I use my own https://github.com/raydac/java-comment-preprocessor it supports Maven, ANT and Gradle The Wiki project page where described the process can be found here
Upvotes: 1
Reputation: 33686
While this was originally designed for J2ME, the preprocessor itself is completely generic. (I wrote it about 6 years ago, and it ended up in Eclipse MTJ). http://antenna.sourceforge.net/wtkpreprocess.php
Upvotes: 0
Reputation: 1757
You can find more details under the below link:
http://groups.google.com/group/android-developers/browse_thread/thread/0daee1d93d1f21b3?pli=1
Basically it is said that Android doesn't support preprocessing because Java doesn't support it.
However there are ways to imitate the behaviour of preprocessors using System Properties in Java. And there is already a discussion on it:
Upvotes: 5