ant target间的dependency

时间:2022-07-22
本文章向大家介绍ant target间的dependency,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

使用target属性的depends指定:

	<target name = "deploy1" description = "Deploy application 1">
	<echo message = "${web.dir} 1"/>
    </target>
	<target name = "deploy2" depends = "deploy1" description = "Deploy application 2">
		<echo message = "${web.dir} 2"/>
	   </target>

执行ant deploy2: