[ 
https://issues.apache.org/jira/browse/SCM-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17960481#comment-17960481
 ] 

ASF GitHub Bot commented on SCM-198:
------------------------------------

jira-importer commented on issue #415:
URL: https://github.com/apache/maven-scm/issues/415#issuecomment-2964592904

   **[Emmanuel 
Venisse](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=evenisse)**
 commented
   
   Applied
   




> [scm:tag] Add Ability to Append Timestamp to Tag Name
> -----------------------------------------------------
>
>                 Key: SCM-198
>                 URL: https://issues.apache.org/jira/browse/SCM-198
>             Project: Maven SCM (Moved to GitHub Issues)
>          Issue Type: New Feature
>          Components: maven-plugin
>            Reporter: Sharmarke Aden
>            Assignee: Emmanuel Venisse
>            Priority: Major
>             Fix For: 1.0-beta-4
>
>         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 was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to