个人认为antcall比depends更清楚些
<project name="Framework_Deploy" default="clean" basedir="."> <target name="build" description="make deploy files"> <antcall target="clean" /> <antcall target="compileJava" /> <antcall target="makeJar" /> <antcall target="beforeDeploy" /> <antcall target="copyFileToDeployCm" /> <antcall target="copyFileToDeployCmExport" /> <antcall target="afterDeploy" /> </target> </project>