Hi,
I need to keep a control value (possibly inside a file), in order to decide whether to execute a task or not.
I'm coming from here: http://stackoverflow.com/questions/2239236/ant-how-can-i-subtract-two-properties-containing-timestamps
What I want to do, is to check if the control value is equal to a period (mmYY). If it is equal, nothing will be done, but if they are not, the control value should be updated.
For example:
<task dosomethingifcontrolvaluediffers>
control value is 0000
(calculated) property is: 0110
Then, control value should now be 0110.
</task>
I was thinking of keeping the value in a separate file, and if rewriting is neccessary, then truncate the file and updating, but
1) Cant find a way to do this
2) Dont know how.
3) scripting ? Would be my favorite choice, but dont know howto in js.
Any thoughts?
Thanks in advance.