ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.com>
Subject [PROPOSAL] A 'CVS News' task
Date Mon, 23 Apr 2001 08:19:20 GMT
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="[relative 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
[base URL] = base URL for resolving the [relative file name] and [relative URL] entries of
<mapping> tags (ex: http://jakarta.apache.org/commons/cactus)
[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="[full URL]">
  ...
</cvsnews>

Thoughts ?

Thanks
Vincent Massol


Mime
View raw message