You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Lukas Theussl (JIRA)" <ji...@codehaus.org> on 2006/05/12 07:08:41 UTC

[jira] Updated: (SCM-198) [scm:tag] Add Ability to Append Timestamp to Tag Name

     [ http://jira.codehaus.org/browse/SCM-198?page=all ]

Lukas Theussl updated SCM-198:
------------------------------

    Component: maven-plugin

> [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
>  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