| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sat, 27 Dec 2025 09:12:36 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20070724060914
location: https://web.archive.org/web/20070724060914/https://msg.dev.java.net/
server-timing: captures_list;dur=1.374187, exclusion.robots;dur=0.036979, exclusion.robots.policy;dur=0.027221, esindex;dur=0.011672, cdx.remote;dur=28.140531, LoadShardBlock;dur=210.271173, PetaboxLoader3.datanode;dur=63.816609, PetaboxLoader3.resolve;dur=116.631104
x-app-server: wwwb-app218-dc8
x-ts: 302
x-tr: 262
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app218; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sat, 27 Dec 2025 09:12:37 GMT
content-type: text/html;charset=UTF-8
x-archive-orig-date: Tue, 24 Jul 2007 06:09:14 GMT
x-archive-orig-server: Apache
x-archive-orig-x-powered-by: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5
x-archive-orig-pragma:
x-archive-orig-cache-control: private,max-age=0,must-revalidate
x-archive-orig-helmloginid: guest
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Tue, 24 Jul 2007 06:09:14 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: IA-AROUND-THE-WORLD-2007-20070724050317-20018-crawling06-c/IA-AROUND-THE-WORLD-2007-20070724060420-08148-crawling01.us.archive.org.arc.gz
server-timing: captures_list;dur=0.537779, exclusion.robots;dur=0.018723, exclusion.robots.policy;dur=0.007984, esindex;dur=0.011772, cdx.remote;dur=17.314412, LoadShardBlock;dur=198.863465, PetaboxLoader3.datanode;dur=129.664040, PetaboxLoader3.resolve;dur=176.500334, load_resource;dur=138.937322
x-app-server: wwwb-app218-dc8
x-ts: 200
x-tr: 416
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
msg: Msg - Message Resource Tools
|
msg
|
| Summary | Generate MessageFormat helper classes, and extend formatting. |
|---|---|
| Categories | None |
| License | Apache License, Version 2.0 |
| Owner(s) | regwhitton |
Message from the owner(s)
Msg version 0.3 is now available. See changes list for details.
The Msg project has two goals:
- To simplify the use of Java's java.util.ResourceBundle and java.text.MessageFormat by generating helper classes with methods for each message in the resource bundle. These methods also introduce compile-time type safety for message arguments, and (within an IDE) enable argument completion.
- To extend the java.text.MessageFormat formatting available, and allow the developer to extend it further.
Msggen
Msggen is a tool that generates helper classes with methods for each message in a resource bundle.
See the Msggen page.
| Msggen tool binary distribution | msggen.jar 0.3 |
| Msggen tool sources, binaries and documentation. | msggen-dist.zip 0.3 |
| An example Eclipse project showing how Msggen can be used to automatically
generate message helper classes whenever your resource bundle is changed.
It also shows examples of how XMessageFormat
extends the formatting available.
If you use Eclipse and are uncertain if Msggen will be useful to you, try: downloading this zip; unzip it into your Eclipse workspace; and create a "general" project called "msggen-eclipse-project". Then experiment with changing the messages. |
msggen-eclipse-project.zip |
XMessageFormat
The XMessageFormat class is a drop-in replacement for the message formatting functionality in MessageFormat, which can be extended by configuring it to accept additional "FormatTypes" and "FormatStyles" for message arguments. Message parsing has not been implemented.
See the XMessageFormat page, and the Javadoc.
| XMessageFormat jar binary distribution | xmsg.jar 0.3 |
| XMessageFormat sources, binaries and examples. | xmsg-dist.zip 0.3 |
Changes between 0.2 and 0.3 (6/2/2007)
- Added Ant task for generating helper classes.
- Extended and commented the examples in the msggen-eclipse-project.
- Added ref function - one message may now include the text from another.
- Added repeat function - repeat a string a number of times in a message.
- Bug fix - generated message formatting classes were not thread safe.
- Bug fix - I had assumed that only 10 arguments were allowed by MessageFormat - this was incorrect
- Bug fix - did not handle null or unavailable arguments, or java.lang.Number & java.util.Date when no formatStyle as described in the MessageFormat.format() javadoc. See the XMessageFormat Todo List about handling developer's own value classes.
Changes between 0.1 and 0.2 (19/12/2006)
- Msggen generates classes that use XMessageFormat instead of the standard MessageFormat when the -x option is given.
| Powered by CollabNet | Feedback |
FAQ |
Press |
Developer tools
© 1995 - 2007 CollabNet. CollabNet is a registered trademark of CollabNet, Inc. |
