History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SCM-198
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Emmanuel Venisse
Reporter: Sharmarke Aden
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Maven SCM

[scm:tag] Add Ability to Append Timestamp to Tag Name

Created: 11/May/06 08:20 PM   Updated: 13/May/06 02:54 AM
Component/s: maven-plugin
Affects Version/s: None
Fix Version/s: 1.0-beta-4

Time Tracking:
Not Specified

File Attachments: 1. Text File timestamp.patch (3 kb)


Complexity: Intermediate


 Description  « Hide
I have created a patch that, based on configuration properties, appends today's date/time to the tag name that I would like to share and see part of scm plug-in's future releases. This enhancement adds three new configuration properties.

1) A Boolean property called "addTimestamp" which indicates whether the plug-in should append timestamp to the tag name.
2) A string property called "timestampFormat" which contains date pattern akin to java.text.SimpleDateFormat class. If "timestampFormat" is not set and "addTimestamp" property is set to true the default date pattern of "yyyyMMddHHmmss" will be used.
3) A string property called "timestampPrefix" which will be used to separate the tag name and the timestamp. The default timestampPrefix value is "-"

Here is what the plug-in definition should look like:

<plugins>
....
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.0-beta-3</version>
<executions>
<execution>
<phase>deploy</phase>
<goals>
<goal>tag</goal>
</goals>
</execution>
</executions>
<configuration>
<tagBase>http://my/svn/project/tags</tagBase>
<tag>my-tag-name</tag>
<addTimestamp>true</addTimestamp>
<timestampFormat>yyyyMMddHHmmss</timestampFormat>
<timestampPrefix>tag</timestampPrefix>
</configuration>
</plugin>
...
</plugins>

Note that both timestampFormat and timestampPrefix have default values and therefore are optional.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Emmanuel Venisse - 13/May/06 02:54 AM
Applied