Anduril wrapper for Apache Ant.
This component executes an Ant script within a prepared environment that takes care of the component interface (inputs, outputs and the parameters.
In addition to your custom scripts, you may use built-in templates that are under the template folder. Value of the template parameter refers to the template name without a file extension. Templates may also be used as examples. Templates include: ZIP file and ISO image creation.
The execution environment defines the folowing properties:
property name | description |
---|---|
command.file | Anduril command file (all included properties are made available as such) |
env.NAME | Environment variables (NAME) |
exists.dataN | This property has been defined if the optional input (dataN) is actually defined |
input.dataN | File name for the input (dataN) (directly from the command file) |
metadata.instanceName | Name of the component instance (directly from the command file) |
output.outputN | File name for the output (outputN) (directly from the command file) |
parameter.paramN | Value of the parameter (paramN) (directly from the command file) |
target.script | File name for the actual script |
target.script | Ant target within the actual script unless the default target is used |
temp.dir | Temporary folder that can be used during the execution |
ISO image creation uses JIIC library.
Version | 2.0 |
---|---|
Bundle | tools |
Categories | External |
Specialties | generic |
Authors | Marko Laakso (Marko.Laakso@Helsinki.FI) |
Issue tracker | View/Report issues |
Requires | ant.jar (jar) ; ant-launcher.jar (jar) ; * (jar) |
Source files | component.xml AndurilAnt.java default_body.xml zip.xml iso.xml |
Usage | Example with default values |
Name | Type | Mandatory | Description |
---|---|---|---|
data0 | D0 (generic) | Optional | Optional input data to feed the script |
data1 | D1 (generic) | Optional | Optional input data to feed the script |
data2 | D2 (generic) | Optional | Optional input data to feed the script |
data3 | D3 (generic) | Optional | Optional input data to feed the script |
data4 | D4 (generic) | Optional | Optional input data to feed the script |
data5 | D5 (generic) | Optional | Optional input data to feed the script |
data6 | D6 (generic) | Optional | Optional input data to feed the script |
data7 | D7 (generic) | Optional | Optional input data to feed the script |
data8 | D8 (generic) | Optional | Optional input data to feed the script |
data9 | D9 (generic) | Optional | Optional input data to feed the script |
array0 | Array<A0> (generic) | Optional | Optional array input to feed the script |
array1 | Array<A1> (generic) | Optional | Optional array input to feed the script |
array2 | Array<A2> (generic) | Optional | Optional array input to feed the script |
config | Properties | Optional | Optional properties that will be loaded within the script |
script | AntScript | Optional | Target script for the execution. You may omit this by using a buildin script with template parameter. |
Name | Type | Description |
---|---|---|
output0 | O0 (generic) | An output file/folder for the script product |
output1 | O1 (generic) | An output file/folder for the script product |
output2 | O2 (generic) | An output file/folder for the script product |
output3 | O3 (generic) | An output file/folder for the script product |
output4 | O4 (generic) | An output file/folder for the script product |
output5 | O5 (generic) | An output file/folder for the script product |
output6 | O6 (generic) | An output file/folder for the script product |
output7 | O7 (generic) | An output file/folder for the script product |
output8 | O8 (generic) | An output file/folder for the script product |
output9 | O9 (generic) | An output file/folder for the script product |
Name | Type | Default | Description |
---|---|---|---|
param0 | string | "" | An optional parameter for the script |
param1 | string | "" | An optional parameter for the script |
param2 | string | "" | An optional parameter for the script |
param3 | string | "" | An optional parameter for the script |
param4 | string | "" | An optional parameter for the script |
param5 | string | "" | An optional parameter for the script |
param6 | string | "" | An optional parameter for the script |
param7 | string | "" | An optional parameter for the script |
param8 | string | "" | An optional parameter for the script |
param9 | string | "" | An optional parameter for the script |
target | string | "" | Target name that will be launched or an empty string (default) for the default target |
template | string | "" | Name of the built-in script that will be used if the script input is not defined |
Test case | Parameters▼ | IN data0 |
IN data1 |
IN data2 |
IN data3 |
IN data4 |
IN data5 |
IN data6 |
IN data7 |
IN data8 |
IN data9 |
IN array0 |
IN array1 |
IN array2 |
IN config |
IN script |
OUT output0 |
OUT output1 |
OUT output2 |
OUT output3 |
OUT output4 |
OUT output5 |
OUT output6 |
OUT output7 |
OUT output8 |
OUT output9 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
case1 | properties | (missing) | data1 | data2 | (missing) | (missing) | data5 | (missing) | (missing) | (missing) | (missing) | (missing) | array1 | (missing) | (missing) | (missing) | (missing) | output1 | output2 | output3 | output4 | output5 | output6 | output7 | output8 | output9 |
template=zip |
||||||||||||||||||||||||||
case2 | properties | data0 | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | script | output0 | output1 | output2 | output3 | output4 | output5 | output6 | output7 | output8 | output9 |
target=test |
||||||||||||||||||||||||||
case3_iso | properties | data0 | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | (missing) | output1 | output2 | output3 | output4 | output5 | output6 | output7 | output8 | output9 |
target=main, |