Administer > Deploy > Overview: WebSphere Commerce Build and Deployment tool > Customize the Build and Deployment tool
Custom Ant tasks
The Build and Deployment tool, in both the build and the deployment processes, uses custom Ant tasks.
- ContainsInFileSet condition
Checks whether a file is in the given file sets.
- DecodeLoadProperties task
Decodes and loads the properties from a file that has been processed by the encodeProperties task. If the properties file contains properties that have not been encoded, they are loaded with values defined as-is.
- Dos2Unix task
Converts newline characters of a file or a set of files from CRLF (DOS) to CR (UNIX). The conversion is done in binary so that it also works on files of different encodings. Note that the task does not determine whether a file is binary before conversion - it is up to the user to isolate binary files from conversion.
- 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.
- EncodeProperties task
Encodes and saves the properties in a properties file. This task is safe to run on the same properties file multiple times, as properties that have previously been encoded are not re-encoded. If a property value needs to be changed, replace the encoded value with the new value in plain text and rerun this task.
- 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.
- NumberCompare condition
Compares two numbers of subclass of java.lang.Number.
- PrintStackTrace task
Sets the stack trace of a java.lang.Throwable object to a property. This task is intended to be used in conjunction with the tryCatch task provided by Ant-Contrib.
- StringLengthCompare condition
Compares the length of a string with a set length.
- ToURI task
Constructs the URI for a specified file and sets it to a property.
- ValidateProperty task
Validates the value of a property on whether it is set, whether the value is empty, or against a list of possible values, and fails the Ant build when validation fails.