ant target间的dependency

34 阅读1分钟

使用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:

在这里插入图片描述