[cal10n-dev] [JIRA] Commented: (CAL-26) Implement an APT plugin to check that all enums has a key in the corresponding properties file and vice versa
Stig Kleppe-Jørgensen (JIRA)
noreply-jira at qos.ch
Fri Nov 19 11:02:51 CET 2010
[ http://jira.qos.ch/browse/CAL-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11898#action_11898 ]
Stig Kleppe-Jørgensen commented on CAL-26:
------------------------------------------
Sorry, that was a little sort of explanation from my side. APT stands for annotation processing tool and was first included in JDK v1.5. It makes it possible to inject annotation processors in the compile process, so one can for example verify stuff that the compiler does not check and emit compile errors/warnings or generate extra code that will be compiled in a later pass. Unfortunately, there are 2 different versions of the API, one for 1.5 and one for 1.6 and up.
Some links:
http://download.oracle.com/javase/1.5.0/docs/guide/apt/GettingStarted.html
http://www.javalobby.org/java/forums/t17961.html
A nice tool that uses APT for doing modular service lookups: https://sezpoz.dev.java.net
If you need any help with this, don't hesitate to ask. CAL10N is just a really great idea and with APT it could be taken another step further.
> Implement an APT plugin to check that all enums has a key in the corresponding properties file and vice versa
> -------------------------------------------------------------------------------------------------------------
>
> Key: CAL-26
> URL: http://jira.qos.ch/browse/CAL-26
> Project: CAL10N
> Issue Type: New Feature
> Reporter: Stig Kleppe-Jørgensen
> Assignee: Ceki Gulcu
> Priority: Minor
>
> To enable real compile time verification of the enum vs properties file, an APT plugin can be used. This can check that all enums has a property and all properties has an enum and fail the build if something is missing.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the cal10n-dev
mailing list