Custom Ant tasks
The WebSphere Commerce Build 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 format) to CR (UNIX format). The conversion is done in binary so that it also works on files of different encoding.- EchoNL task
Echoes national language (NL) message of the user locale, in the International Components for Unicode (ICU) format, which is identified by a given key from a resource bundle accessible from the class loader.- EditPropertiesFile task
Edits the properties in a properties file.- 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 a national language (NL) message of the user locale, in the International Components for Unicode (ICU) format, which is identified by a given key from a resource bundle accessible from the class loader.- 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.- SetSystemProperty task
Sets a system property.- StringLengthCompare condition
Compares the length of a string with a set length.- ToURI task
Constructs the Uniform Resource Identifier (URI) for a 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.
Related tasks
Customizing the packaging process