Building the validator
The HCL® Campaign Validation PDK supplies an Ant script that can build all of the code in the sample files.
The default behavior for the script is to create a jar that contains the validation classes. Optionally, it can also create Javadoc™ and run tests against the validators to ensure that they work in Campaign before trying to use the plug-in in production.
To build the validator:
- Change to the PDK directory <IBM_IMS_Home\Campaign_Home>\devkits\validation\build
For example: C:\IBM\IMS\Campaign\devkits\validation\build
This directory contains the Ant script,
build.xml. - Run the Ant jar at the command line.
- To create the plug-in without doing any unit tests, use the
ant jarcommand. - To create the plug-in and also do unit testing, use the
ant run-testcommand.
Ant runs the script and produces a JAR file called
validator.jarin the lib subdirectory. For example:C:\IBM\IMS\Campaign\devkits\validation\build\lib
- To create the plug-in without doing any unit tests, use the
You now have a custom validator that can be used in HCL Campaign. Your next step is to configure Campaign to use this validator.