目录

Build Tasks

This topic gives an overview of the build tasks.

Build Task Flowcharts

[h2]HAP Build Task Flowchart

[h2]HSP Build Task Flowchart

[h2]HAR Build Task Flowchart

Viewing Tasks with Commands

To view available tasks, run the following command in DevEco Studio:

hvigorw taskTree

All tasks available for the project and for modules in the project are displayed, as shown below.

As shown in the preceding figure, assembleHap depends on CollectDebugSymbol, and CollectDebugSymbol depends on PackageHap. Therefore, the order of task execution is as follows: PackageHap > CollectDebugSymbol > assembleHap.

Task Categories

Tasks are divided into the following categories based on their responsibilities.

Task Category

Description

Hook

Hook tasks.

ArkTS

Tasks related to ArkTS builds.

JS

Tasks related to JS builds.

Resources

Tasks related to resource building, processing, linking, and merging.

Package

Tasks related to packaging.

Sign

Tasks related to signing.

Verification

Tasks related to verifying project or dependency settings.

Generate

Tasks related to generating and converting prerequisite files.

Config

Tasks related to generating, merging, and processing configuration files.

Native

Tasks related to native builds.

Help

Tasks related to querying hvigor help information.

Other

Uncategorized tasks.

[h2]Hook

[h2]ArkTS

[h2]JS

[h2]Resources

[h2]Package

[h2]Sign

[h2]Verification

[h2]Generate

[h2]Config

[h2]Native

[h2]Help

[h2]Other

[h2]Sync

[h2]Init

This task is different from init under Sync. There is no specific task in this task, and it is responsible for preparing for invoking hvigor.