[ http://jira.codehaus.org/browse/SCM-198?page=all ]
Emmanuel Venisse closed SCM-198:
--------------------------------
Assign To: Emmanuel Venisse
Resolution: Fixed
Fix Version: 1.0
Applied
> [scm:tag] Add Ability to Append Timestamp to Tag Name
> -----------------------------------------------------
>
> Key: SCM-198
> URL: http://jira.codehaus.org/browse/SCM-198
> Project: Maven SCM
> Type: New Feature
> Components: maven-plugin
> Reporter: Sharmarke Aden
> Assignee: Emmanuel Venisse
> Fix For: 1.0
> Attachments: timestamp.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira