git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@557016 13f79535-47bb-0310-9956-ffa450edef68master
@@ -226,6 +226,7 @@ Robin Green | |||||
Rob Oxspring | Rob Oxspring | ||||
Rob van Oostrum | Rob van Oostrum | ||||
Roger Vaughn | Roger Vaughn | ||||
Roman Ivashin | |||||
Ronen Mashal | Ronen Mashal | ||||
Russell Gold | Russell Gold | ||||
Sam Ruby | Sam Ruby | ||||
@@ -121,6 +121,9 @@ Fixed bugs: | |||||
* ant script, cd may output to stdout. | * ant script, cd may output to stdout. | ||||
Bugzilla 42739. | Bugzilla 42739. | ||||
* Modified selector doesn't update the cache if only one file has changed. | |||||
Bugzilla 42802. | |||||
Other changes: | Other changes: | ||||
-------------- | -------------- | ||||
* <script> now has basic support for JavaFX scripts | * <script> now has basic support for JavaFX scripts | ||||
@@ -899,6 +899,10 @@ | |||||
<first>Roger</first> | <first>Roger</first> | ||||
<last>Vaughn</last> | <last>Vaughn</last> | ||||
</name> | </name> | ||||
<name> | |||||
<first>Roman</first> | |||||
<last>Ivashin</last> | |||||
</name> | |||||
<name> | <name> | ||||
<first>Ronen</first> | <first>Ronen</first> | ||||
<last>Mashal</last> | <last>Mashal</last> | ||||
@@ -522,7 +522,7 @@ public class ModifiedSelector extends BaseExtendSelector | |||||
* save the cache file | * save the cache file | ||||
*/ | */ | ||||
protected void saveCache() { | protected void saveCache() { | ||||
if (getModified() > 1) { | |||||
if (getModified() > 0) { | |||||
cache.save(); | cache.save(); | ||||
setModified(0); | setModified(0); | ||||
} | } | ||||
@@ -0,0 +1,22 @@ | |||||
<project xmlns:au="antlib:org.apache.ant.antunit" default="antunit"> | |||||
<import file="../antunit-base.xml"/> | |||||
<property name="test-build-dir" | |||||
location="../../../../build/ant-unit/modified-selector"/> | |||||
<target name="test-one-file"> | |||||
<delete dir="${test-build-dir}"/> | |||||
<mkdir dir="${test-build-dir}"/> | |||||
<copy todir="${test-build-dir}" overwrite="yes"> | |||||
<fileset dir="." includes="modified-selector-test.xml"> | |||||
<modified update="true"> | |||||
<param name="cache.cachefile" value="${test-build-dir}/cc.properties"/> | |||||
</modified> | |||||
</fileset> | |||||
</copy> | |||||
<au:assertTrue> | |||||
<available file="${test-build-dir}/cc.properties"/> | |||||
</au:assertTrue> | |||||
</target> | |||||
</project> |