I have an ANT build that identifies the modified files, copies them and the performs the build only with the updated files.
Sample:
<target name="buildDevToQA" >
<taskdef resource= "net/sf/antcontrib/antcontrib.properties" classpath="ant-contrib/ant-contrib-1.0b3.jar"/>
<taskdef resource="net/sf/antcontrib/antlib.xml" classpath="ant-contrib/ant-contrib-1.0b3.jar"/>
<for param = "theFile" >
<path>
<fileset dir ="src" id = "modFileSet">
<modified />
</fileset>
</path>
<sequential>
<echo message = "@{theFile}"/>
<!-- <var name="varTheFile" unset="true"/>
<basename file="@{theFile}" property="varTheFile" />
<copy todir = "deploy" failonerror = "false">
<fileset dir = "src">
<filename name = "**/*${varTheFile}-meta.xml" />
</fileset>
</copy>
<copy todir = "deploy">
<fileset dir = "src">
<filename name = "**/*${varTheFile}" />
</fileset>
</copy> -->
</sequential>
</for>
</target>
In the sample above I am simply printing the modified files, however in pipelines this always prints out the entire 'src'.
Is there a way to cache the repo history to maintain a running log of the last state of each file in 'src'?