EchoNL task

Echoes national language (NL) message of the user locale, in the International Components for Unicode (ICU) format, which is identified by a given key from a resource bundle accessible from the class loader.

Parameters

Attribute Description Required
bundle The resource bundle to load properties from. Yes
key The key of the property to be loaded from the resource bundle. Yes
level The level at which this message is displayed. One of, in decreasing order: error, warning, info, verbose, debug No; Defaults to info

Nested elements

Arg

Specifies an argument with which patterns in the message are replaced.

Attribute Description Required
value The value of the argument. Yes

Examples

The following example echoes an NL message of the user locale that is identified by the COMPILE_GLOBAL property of the wcbd-build-messages resource bundle accessible from the class loader.

<echoNL bundle="wcbd-build-messages" key="COMPILE_GLOBAL" />
The following example echoes an NL message of the user locale that is identified by the COMPILE_ARCHIVE_MODULE property of the wcbd-build-messages resource bundle accessible from the class loader, while substituting the {0} and {1} patterns in the message with the value of the type and module.name properties respectively. The message will only show up if the Ant build is run in verbose mode.

<echoNL bundle="wcbd-build-messages" key="COMPILE_ARCHIVE_MODULE" level="verbose">
     <arg value="${type}" />
     <arg value="${module.name}" />
</echoNL>