With the Run Ant Buildfile workflow action, you can launch Apache Ant buildfiles as part of your Typefi workflow. Apache Ant buildfiles are essentially small computer programs that can perform many tasks.
Apache Ant is often used as an entry point to a Typefi workflow when multiple source files may be submitted within a ZIP-compressed container that requires special handling.
Specifically, Run Ant Buildfile does the following:
- It creates a folder within the job folder called Unzipped Resources. If that folder already exists, it is deleted first (so multiple Run Ant Buildfile actions can be used in a single workflow).
- It unzips each file in your Resources input into this Unzipped Resources folder. CAUTION If you have multiple resources, then beware of files and folders overwriting each other.
- It assumes one of the files unzipped into this folder is called build.xml. This is the Apache Ant buildfile. NOTE One of your resources must contain this file; otherwise, nothing will work.
- It executes the default target of this Apache Ant buildfile.
|Input||File path||Optional. The path to the input file. If you specify a file, it is passed to the Apache Ant buildfile.|
|Resources||Filename||Required. You must specify at least one resource. Each resource will be unzipped, so they must be ZIP or XZIP files. NOTE One of your resources must contain a top-level file called build.xml (the Apache Ant buildfile).|
|Parameters||String||Optional. A collection of
Here is an example with a single parameter (use the equals sign to separate keys from values):
Here is an example with multiple parameters (use semi-colons to separate parameters):
TIP You can also use workflow variables to specify input fields. To insert a workflow variable, click the Add variable icon and choose a variable from the pop-up menu.
If you have questions about Run Ant Buildfile, please contact us. We're here to help.