Affects Version/s: None
Fix Version/s: None
Environment:Operating System: All
I know that in the general case we can not detect that the output of TEXEN
ant task is newer then ALL the sources - cause we don't know all the sources.
But in a specific
situation - if we assume that ALL THE SOURCE FILES are located in the TEMPLATEPATH directory and ALL
THE FILES in the TEMPLATEPATH directory are template sources WE CAN compare their timestamp to
the output file lastModified() timestamp.
I'm attaching a SAMPLE IMPLEMENTATION (the Ant
task I'm using now) as an example – it maybe a new Ant task (I called it TEXENCOND - conditional TEXEN)
or a boolean flag on the regular TEXEN task.
Motivation: I use VELOCITY VERY EARLY in my build
so not changing lastModified() on the files generated by
Texen really saves an amount of build time and avoids lots of messages from JavaCC cluttering the
And I can imagine even using it like this:
Hoping the code I use for myself will be usefull for others too!
|Field||Original Value||New Value|