You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "nicolas de loof (JIRA)" <ji...@codehaus.org> on 2007/08/10 10:37:13 UTC

[jira] Created: (SCM-335) ability to get the current revision of the project workspace

ability to get the current revision of the project workspace
------------------------------------------------------------

                 Key: SCM-335
                 URL: http://jira.codehaus.org/browse/SCM-335
             Project: Maven SCM
          Issue Type: New Feature
          Components: maven-plugin
         Environment: subversion
            Reporter: nicolas de loof
            Priority: Minor


I'd like to add in my artifacts manifest the SVN revision number. 
The scm plugin seems to be the best place to extract such info, but doesn't seem to yet have support for this.

I'd like to see some scm:revision goal in the plugin, to set a property I can use later. 

I've found this plugin :
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html
but it has the issue of parsing the text-based svn output. As a french user, svn is localized and doesn't return the expected "Revision" property (but R*é*vision).

Maybe I looking in the wrong place as revision number concept is not portable to CVS, for example, and maybe neither to other SCM tools.

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

       

[jira] Commented: (SCM-335) ability to get the current revision of the project workspace

Posted by "Tomás Pollak (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=188748#action_188748 ] 

Tomás Pollak commented on SCM-335:
----------------------------------

Hi, I would like to see this feature too. I'm using Mercurial.

> ability to get the current revision of the project workspace
> ------------------------------------------------------------
>
>                 Key: SCM-335
>                 URL: http://jira.codehaus.org/browse/SCM-335
>             Project: Maven SCM
>          Issue Type: New Feature
>          Components: maven-plugin
>         Environment: subversion
>            Reporter: nicolas de loof
>            Priority: Minor
>
> I'd like to add in my artifacts manifest the SVN revision number. 
> The scm plugin seems to be the best place to extract such info, but doesn't seem to yet have support for this.
> I'd like to see some scm:revision goal in the plugin, to set a property I can use later. 
> I've found this plugin :
> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html
> but it has the issue of parsing the text-based svn output. As a french user, svn is localized and doesn't return the expected "Revision" property (but R*é*vision).
> Maybe I looking in the wrong place as revision number concept is not portable to CVS, for example, and maybe neither to other SCM tools.

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

       

[jira] Commented: (SCM-335) ability to get the current revision of the project workspace

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170828#action_170828 ] 

Paul Gier commented on SCM-335:
-------------------------------

There is a more up to date version of that plugin here:
http://mojo.codehaus.org/buildnumber-maven-plugin/

Although I don't know if it correctly handles the localization.

> ability to get the current revision of the project workspace
> ------------------------------------------------------------
>
>                 Key: SCM-335
>                 URL: http://jira.codehaus.org/browse/SCM-335
>             Project: Maven SCM
>          Issue Type: New Feature
>          Components: maven-plugin
>         Environment: subversion
>            Reporter: nicolas de loof
>            Priority: Minor
>
> I'd like to add in my artifacts manifest the SVN revision number. 
> The scm plugin seems to be the best place to extract such info, but doesn't seem to yet have support for this.
> I'd like to see some scm:revision goal in the plugin, to set a property I can use later. 
> I've found this plugin :
> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html
> but it has the issue of parsing the text-based svn output. As a french user, svn is localized and doesn't return the expected "Revision" property (but R*é*vision).
> Maybe I looking in the wrong place as revision number concept is not portable to CVS, for example, and maybe neither to other SCM tools.

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

       

[jira] Commented: (SCM-335) ability to get the current revision of the project workspace

Posted by "Paolo Compieta (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=196280#action_196280 ] 

Paolo Compieta commented on SCM-335:
------------------------------------

Hi, i also would really like a simple 'scm:info' (similar to "svn info") setting
  scm.revision
  scm.url
variables.

I noticed the 'scm:update' is already providing the first ("Storing revision in 'scm.revision' project property."), but i cant always update when building.

The 'scm.url' is also useful because it identifies disambiguously (along with the global revision number in 'scm.revision') the working copy from which the EAR was built.

ps: i cant use the buildnumber-plugin because i've already configured it to generate another unique number based on the date.

> ability to get the current revision of the project workspace
> ------------------------------------------------------------
>
>                 Key: SCM-335
>                 URL: http://jira.codehaus.org/browse/SCM-335
>             Project: Maven SCM
>          Issue Type: New Feature
>          Components: maven-plugin
>         Environment: subversion
>            Reporter: nicolas de loof
>            Priority: Minor
>
> I'd like to add in my artifacts manifest the SVN revision number. 
> The scm plugin seems to be the best place to extract such info, but doesn't seem to yet have support for this.
> I'd like to see some scm:revision goal in the plugin, to set a property I can use later. 
> I've found this plugin :
> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html
> but it has the issue of parsing the text-based svn output. As a french user, svn is localized and doesn't return the expected "Revision" property (but R*é*vision).
> Maybe I looking in the wrong place as revision number concept is not portable to CVS, for example, and maybe neither to other SCM tools.

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