Resource Bundle Dev Tool

Simple Javaagent to change resource bundle values.

License

License

GroupId

GroupId

com.github.rmannibucau
ArtifactId

ArtifactId

resource-bundle-dev
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

Resource Bundle Dev Tool
Simple Javaagent to change resource bundle values.
Project URL

Project URL

https://github.com/rmannibucau/resource-bundle-dev
Source Code Management

Source Code Management

https://github.com/rmannibucau/resource-bundle-dev

Download resource-bundle-dev

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.rmannibucau/resource-bundle-dev/ -->
<dependency>
    <groupId>com.github.rmannibucau</groupId>
    <artifactId>resource-bundle-dev</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.rmannibucau/resource-bundle-dev/
implementation 'com.github.rmannibucau:resource-bundle-dev:1.0.0'
// https://jarcasting.com/artifacts/com.github.rmannibucau/resource-bundle-dev/
implementation ("com.github.rmannibucau:resource-bundle-dev:1.0.0")
'com.github.rmannibucau:resource-bundle-dev:jar:1.0.0'
<dependency org="com.github.rmannibucau" name="resource-bundle-dev" rev="1.0.0">
  <artifact name="resource-bundle-dev" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.rmannibucau', module='resource-bundle-dev', version='1.0.0')
)
libraryDependencies += "com.github.rmannibucau" % "resource-bundle-dev" % "1.0.0"
[com.github.rmannibucau/resource-bundle-dev "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Resource Bundle Dev module

Goal is to provide a Javaagent which can be set on a JVM to debug resource bundle messages changing the values using a pattern.

Configuration is passed to the javaagent and separated by | character. Example:

java .... \
    -javaagent:/path/to/resource-bundle-dev.jar=active=true|includes=com.company

Configuration

Name Default Description

active

false

is the agent active

pattern

[$locale] $value

The pattern to format values. Variables are $value for the original value for the current key, $lang for the locale language, $locale for the complete locale and $base for the bundle name.

includes

-

Bundle names included in the instrumentation (regex).

excludes

-

Bundle names excluded of the instrumentation (regex).

Tip
ensure to configure includes, when using resource bundles to store numbers as done by the JVM in sun.util bundles the fact to modify the string will make it no more valid ([en] 2 is not parseable as an integer for instance).

Versions

Version
1.0.0