Administer > Deploy > Overview: WebSphere Commerce Build and Deployment tool > Customize the Build and Deployment tool > Custom Ant tasks


EchoNL task

Echoes an NL message of the user locale, in the ICU format, which is identified by a given key from a resource bundle accessible from the classloader.


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 echoed. One of, in decreasing order: error, warning, info, verbose debug. No. The default value is 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 classloader.

<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 classloader, while substituting the {0} and {1} patterns in the message with the ${type} and ${module.name} properties respectively.

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


+

Search Tips   |   Advanced Search