ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: task to check for i18n tokens in resource bundle?
Date Mon, 10 May 2010 18:21:52 GMT

Andy-

i can write a program that will accomplish these features in less than time than either 
1)sed or 
2)grep
(or any combination thereof)

(i'll leave it to the tools engineers for a more specific answer to this question)

anyone?
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist
unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet
keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen
wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire
prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe
quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information
seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les
email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune
responsabilité pour le contenu fourni.




> Date: Mon, 10 May 2010 15:25:19 +0100
> Subject: task to check for i18n tokens in resource bundle?
> From: insomniacpenguin@googlemail.com
> To: user@ant.apache.org
> 
> Hi,
> 
> 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
> file?
> 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.
> 
> 
> Andy
> -- 
> http://www.justgiving.com/margaret-ann
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
 		 	   		  
_________________________________________________________________
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message