I have a goal in the ANT that needs to run compiler on a given set of files: once for debug , Once produced. I want to run the compiler only if the source file has changed, so I have a & lt; Modified & gt; The selector is set up However, since I need both a debug and a contract to run for a modified file, I have set the
update
property incorrectly for the first time. I have something on the lines of this:
& lt ;! - debug build - & gt; & Lt; Applicable executable = "compiler" & gt; & Lt; Fileset dir = "$ {js.src.dir}" includes = "* .js" & gt; & Lt ;! - Do not update the cache so that Prod Build works down - & gt; & Lt; Modified updates = "false" seldirs = "true" cache = "propertyfile" algorithm = "digest" comparator = "equal" & gt; & Lt; Param name = "cache.cachefile" value = "cache.properties" /> & Lt; Param name = "algorithm.ligorithm" value = "md5" /> & Lt; / Modify & gt; & Lt; / Fileset & gt; & Lt; Debug bugs / & gt; & Lt; / Apply & gt; & Lt ;! - Production Build - & gt; & Lt; Applicable executable = "compiler" & gt; & Lt; Fileset dir = "$ {js.src.dir}" includes = "* .js" & gt; & Lt; Modified updates = "true" seldirs = "true" cache = "propertyfile" algorithm = "digest" comparator = "equal" & gt; & Lt; Param name = "cache.cachefile" value = "cache.properties" /> & Lt; Param name = "algorithm.ligorithm" value = "md5" /> & Lt; / Modify & gt; & Lt; / Fileset & gt; & Lt; Prod production / & gt; & Lt; / Apply & gt;
Although this does not work, my first call cache update for the compiler ends, and the second call is skipped.
UPDATE : I'd rather & lt; Depend & gt;
The problem was encountered using the selector, but still how curious works & lt; Modified & gt;
Update 1.8 0:
Just took about 5 years to correct!
Comments
Post a Comment