I've skimmed the
ANT docs, but don't see a task that 'looks' like what I'm describing:
So here, we have a class that implements 'versioned', so we have to supply a method called getVersion().
The question is... is there a way to get an existing ant task to inspect the source for the ver_build
String, and to auto-update the date to the current timestamp?
I vaguely am aware of using $Revision$ in CVS to accomplish versioning. But I want to be able to manually figure out the major and minor releases and have only the build number automated (and based on a timestamp, not revision numbering, which CVS uses).
FYI, for my scheme:
major -> signifigant new functionality, or a changed interface (meaning 2.x *breaks* apps that use 1.x, so not just 'enhanced')
minor -> enhancements to the interface (new methods) and bug fixes within existing methods.
build -> identifies the exact time the major.minor version was last compiled.
ANT experts help a newbie please!