Inject SVN revision to a variable
Is there a way to inject the current SVN number in a Java variable? I want every class to have a private static variable which holds the SV开发者_如何转开发N revision value?
Right answer is not keywords, but
- using SubWCRev,
- storing in repo SubWCRev templates
- processing templates into real code by build-system
When instead of path to WC path to single file used in SubWCRev call, $WCREV$ from template expanded to revision of last modification for file, not global last revision for repo
char *Revision = "$WCREV$";
will be converted in readable, nice
char *Revision = "298";
精彩评论