You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Gordon Watson (JIRA)" <ji...@codehaus.org> on 2005/04/26 21:23:46 UTC

[jira] Commented: (MPSCM-44) Skip prompt for tag

     [ http://jira.codehaus.org/browse/MPSCM-44?page=comments#action_38172 ]
     
Gordon Watson commented on MPSCM-44:
------------------------------------

I like the idea of testing for the values before prompting (although it doesn't look like the values that the 'i:ask' load are being set in your suggested code.)

In addition it would seem more flexible and user friendly to have different default values available for version name separate from the release tag.   Adding a property something like maven.scm.version.default would allow for setting different values for prompting if you want to allow the user to override a suggested default.  ie...

    <i:ask
      question="What is the new tag name?"
      answer="tag_name"
      default="${maven.scm.tag}"
    />


    <i:ask
      question="What is the new version?"
      answer="version_name"
      default="${maven.scm.version.default}"
    />


> Skip prompt for tag
> -------------------
>
>          Key: MPSCM-44
>          URL: http://jira.codehaus.org/browse/MPSCM-44
>      Project: maven-scm-plugin
>         Type: Improvement
>     Versions: 1.5
>     Reporter: Thomas Van de Velde

>
>
> For my project I want to fully automate release management.  Therefore I would not like to be prompted for a tag when I execute 'prepare-release'.  Would it be possible to add a test that looks if a the tag for the release has been defined as a variable, you are not prompted to provide one?
> CURRENT CODE:
>  <i:ask
>       question="What is the new tag name?"
>       answer="tag_name"
>       default="${maven.scm.tag}"
>     />
>     <i:ask
>       question="What is the new version?"
>       answer="version_name"
>       default="${tag_name}"
>     />
> SUGGESTED CODE:
> <j:if test="${empty(maven.scm.release.tag)}">
>    <i:ask
>       question="What is the new tag name?"
>       answer="tag_name"
>       default="${maven.scm.tag}"
>     />
> </j:if>
> <j:if test="${empty(maven.scm.version.name)}">
>     <i:ask
>       question="What is the new version?"
>       answer="version_name"
>       default="${maven.scm.tag}"
>     />
> </j:if>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org