Updated on 2026-01-08 GMT+08:00

Using Ant for Build

Apache Ant is a tool used to compile, test, and deploy Java projects.

Preparations

The project is in the Ant structure using the Java language, and a correct build description file build.xml is available.

Graphical Build

Add Build with Ant, when configuring build actions.

The parameters are described in the following table.

Parameter

Description

Action Name

Name of a build action. It can be customized.

Tool Version

The recommended version is used by default. You can select the Ant and JDK image versions that match your compilation environment.

Commands

Configure the Ant commands. You can also use default commands. If you have special build requirements, enter your custom build script in the text box.

Code-based Build

1
2
3
4
5
6
version: 2.0 # The value must be 2.0.
steps:
  BUILD:
    - ant:
        inputs:
          command:  ant -f build.xml

Parameter

Type

Description

Mandatory

Default Value

command

String

Commands to be run.

Yes

None