我有一个基于常春藤的构建,我的顶级构建脚本(简单就好)就像:
<target name="buildlist">
<ivy:buildlist reference="build-path">
<fileset dir="." includes="*/**/build.xml"/>
</ivy:buildlist>
</target>
<target name="all" depends="buildlist" description="build, publish and report for all projects">
<echo message="Calling 'all' on ${toString:build-path}."/>
<subant target="all" buildpathref="build-path"/>
</target>
真正酷的是能够并行化构建。例如,ivy知道依赖关系并且可以指示哪些子调用可以并行运行。有人做过这样的事吗?