Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.5
    • Labels:
      None
    • Number of attachments :
      0

      Description

      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>

        Activity

        Hide
        Gordon Watson added a comment -

        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}

        "
        />

        Show
        Gordon Watson added a comment - 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} " />

          People

          • Assignee:
            Unassigned
            Reporter:
            Thomas Van de Velde
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: