ant:"depends" 目标的执行顺序?

ant: order of execution of "depends" target?

如果我有

<target name="A" depends="B,C"/>

目标 BC 的执行顺序是否确定?它们是按照它们在列表中出现的顺序一个接一个地执行,它们是并行执行的吗? C 是否等待 B 完成?

这是在列表中出现的顺序。见 https://ant.apache.org/manual/targets.html:

Ant tries to execute the targets in the depends attribute in the order they appear (from left to right)...

一个接一个执行。在 B 完成之前,C 不会开始。

此外,直到 'depends' 目标执行后才检查 'if' 子句。