Orangevolt ANT Tasks » Tasks
ExampleElement equal

2.7.  compare

The compare task compares two values either numerical or alphanumerical and sets properties depending of the comparison result.

The properties and will be defined by inner elements (named as the condition) of the compare task.

Attributes

Name Description Required
arg1 the left hand argument to compare yes
arg2 the right hand argument to compare yes
ignorecase

If set to true alphanumerical comparison's will ignore case.

Default is false.

no
trim

If set to true the values will be trimmed before comparison (Trimming removes all whitespaces, linefeed, carriage return and tabs from start ans end of the values.).

Default is false.

no
numeric If set to true the values will be compared as numbers. In other words the values will be converted to numbers before comparison. If the conversion failed the build process will fail.

Default value is false.

no