Hi,
I'd like to propose a new optional Ant task and
see whether some of you have already made such a task or if it raises
interest ....
The end goal: to be able to create information
on a web site about what pages have been modified recently.
In order to do that I propose to use 2 Ant
tasks :
- a new custom task that will return the list of file that have been modified since some
time by executing "cvs log" commands. The list of files is
returned in an XML file.
- the existing <style> task to process
the output XML file and generate HTML
Here are some very rough details about how this
new task could be used :
Syntax:
<cvsnews span="[time span]"
output="[file name]">
<fileset ...>
<mappings baseURL="[base
URL]">
<mapping
file="[relative file name]" label="[label]"
url="" url]">
...
</mappings>
</cvsnews>
where
[time span] = [N]d | [N]w | [N]m, where [N] is
a number and 'd' represent a day duration, 'w' a week and 'm' a month. The
time span is a duration starting from ${TODAY} and going in the past.
Any file which has been modified during that time is considered
new.
<fileset> = a standard Ant fileset
describing the list of files that should be checked for new
versions
[label] = label to display for the end
user
[relative url] = url that the end user can
click and that will go the modified page
The output XML file syntax :
<cvsnews>
<item lastModified="[date]"
file="[full file name]" label="[label]" url=""
URL]">
...
</cvsnews>
Thoughts ?
Thanks
Vincent Massol