我已经在Ant中为SOA项目设置了构建自动化。即使代码没有变化,它也会重新编译所有代码。任何人都可以建议我在哪里只能编译已更改的SOA组合?
答案 0 :(得分:0)
使用Uptodate ant.apache.org/manual/Tasks/uptodate.html
<target name="anythingChanged">
<uptodate property="xmlBuild.notRequired" targetfile="${deploy}\xmlClasses.jar">
<srcfiles dir= "${src}/xml" includes="**/*.dtd"/>
</uptodate>
</target>
<target name="xmlBuild" depends="anythingChanged" unless="xmlBuild.notRequired">
...
</target>