[stringtemplate-interest] [ST4 Beta-4] Retrieving version information
Terence Parr
parrt at cs.usfca.edu
Sat Feb 12 09:33:18 PST 2011
Interesting. BTW, are you for or against adding a predefined property called version or whatever? We couldn't test against it though; not sure it's worth adding.
Ter
On Feb 12, 2011, at 2:27 AM, Oliver Zeigermann wrote:
> Using ant that is fairly easy. I attached a patch for the ant build
> file that replaces every @version@ inside the source with the version
> information from build.properties (no idea if this is the best
> solution, though).
>
> E.g. adding
>
> public final static String VERSION = "@version@";
>
> to ST.java
>
> would result to
>
> public final static String VERSION = "4.0b4";
>
> in the compiled classes.
>
> Hope that helps
>
> - Oliver
More information about the stringtemplate-interest
mailing list