ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Stevens <>
Subject task to check for i18n tokens in resource bundle?
Date Mon, 10 May 2010 14:25:19 GMT

Does anyone know of an easy way (using standard or custom Ant task(s),
or <script>) to scan over a set of JSP files, find all occurrences of
a custom JSP tag attribute (<spring:message code="some.label"/>) and
verify that the attribute's value (some.label) exists in a properties
Having been caught out recently by a couple of missing localisation
entries in the app I'm working on (one a typo and one that hadn't been
added at all), I figured it would be handy if our CI server could
check them automatically and fail the build is there's a problem.
The regex to extract the values isn't difficult, but I'm stumped over
how to run it over the files and check for the matching value.  I
noticed a grep task in Antelope, but wasn't sure if that could do what
I need as it appears to work on a supplied string.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message