2016-04-19 39 views
0

我已经在Ant for SOA项目中创建了自动化设置。即使代码中没有更改,它也会重新编译所有代码。任何人都可以请我指出我只能编译更改后的SOA复合材料的方式吗?使用Ant构建SOA堆栈

回答

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>