I have a build script that creates a new file (using the concat task) consisting of todays results, followed by the history results file. This new file is now considered to be the history results file. However if the history file already contains todays data (i.e. this process has already been run today), then I don't want to append all of the history file. I only want from line 12 onwards in the history file (everything before today).
Does anyone have any idea as to how I can achieve this using Ant and what tasks I should be investigating?
Manually, I can determine whether the history file has todays data in it, since the date I am interested in will be at line 2 of the history file, but I have no idea how to do this sort of thing using ant.
In fact I have a similar problem. I need my build script to read a list of files from wherever(maybe notepad or another xml) and get those and only those files from the VSS with the latest checked in version of those files. Any solutions?