Administer > Deploy > Overview: WebSphere Commerce Build and Deployment tool > Customize the Build and Deployment tool > Custom Ant tasks
FailNL task
Fails an Ant build with 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
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 fails the Ant build with an NL message of the user locale that is identified by the ERR_WSADMIN property of the wcbd-deploy-messages resource bundle accessible from the classloader.
<echoNL bundle="wcbd-deploy-messages" key="ERR_WSADMIN" />
The following example fails the Ant build with an NL message of the user locale that is identified by the ERR_XMLTRANSFORM property of the wcbd-deploy-messages resource bundle accessible from the classloader, while substituting the {0} pattern in the message with the ${wca.logger.output.dir} property.
<failNL bundle="wcbd-deploy-messages" key="ERR_XMLTRANSFORM"> <arg value="${wca.logger.output.dir}" /> </failNL>