I want to be able to write for example ((DATE)) in Eclipse and have it replaced with the current date when compiled. How to accomplish this?
The idea is to use dates in version numbers, so I could have the program output stuff like 1.0.2012.01.13
Edit: Language is Java and platform is Android
Can’t be done unless you templatize your code using something like Velocity, which is going to be much more trouble than it’s worth. Factor these strings out into .properties files and generate those, perhaps.