1

我想用 Ant 1.8.2 中的“修改”选择器调试一些行为。

这个页面描述了大量的垃圾,但没有描述它存储缓存的位置。在哪里?

4

1 回答 1

2

该文档指出默认缓存是“propertyfile”。它还指出缓存文件的默认名称是cache.properties

最后,它还提供了一个示例,概述了所有默认设置,演示了如何更改这些设置。

<copy todir="dest">
    <fileset dir="src">
        <modified update="true"
                  seldirs="true"
                  cache="propertyfile"
                  algorithm="digest"
                  comparator="equal">
            <param name="cache.cachefile"     value="cache.properties"/>
            <param name="algorithm.algorithm" value="MD5"/>
        </modified>
    </fileset>
</copy>
于 2013-02-21T20:53:10.503 回答