Delete duplicate files using ant?

后端 未结 1 474

Is there a way to delete duplicate files using ant? Specifically, if I have the same file name in two different output directories, I want to delete it from the second dire

相关标签:
1条回答
  • 2021-01-06 03:32

    I think I came up with a solution.

    <target name="delete-duplicates">
        <delete>
            <fileset dir="delete-here" includes="**/*">
                <present targetdir="if-present-here" />
            </fileset>
        </delete>
    </target>
    
    0 讨论(0)
提交回复
热议问题