For projects that use Ant as the build system. This causes Hudson to invoke Ant with the given targets and options. Non-0 exit code from Ant makes Hudson to mark the build as a failure.

If your build script is located in somewhere other than the module top build.xml, then you can use Ant's -f option to specify where it is.