Maven Invoker Plugin
  1. Maven Invoker Plugin
  2. MINVOKER-119

Allow access to properties in pre- and postBuild scripts

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.9
    • Labels:
      None

      Description

      In my verify.groovy script I'd like to access properties declared in the invoker's config:

                  <configuration>
                    <properties>
                      <prop1>val1</prop1>
                    </properties>
                  </configuration>
      

      In my verify.groovy script I'd like to use these properties, too, e.g. by using System.getProperty("prop1") but that returns null.

        Issue Links

          Activity

          Daniel Strassenburg created issue -
          Robert Scholte made changes -
          Field Original Value New Value
          Link This issue is related to MINVOKER-141 [ MINVOKER-141 ]
          Hide
          Anders Hammar added a comment -

          I think that the parameter should be called scriptContextProperties, or possibly just scriptProperties. They would then be accessible through the script's context (key-value) storage.

          Show
          Anders Hammar added a comment - I think that the parameter should be called scriptContextProperties, or possibly just scriptProperties. They would then be accessible through the script's context (key-value) storage.
          Anders Hammar made changes -
          Assignee Anders Hammar [ afloom ]
          Hide
          Anders Hammar added a comment -

          I decided on a scriptVariables param.

          Fixed in r1448603

          Show
          Anders Hammar added a comment - I decided on a scriptVariables param. Fixed in r1448603
          Anders Hammar made changes -
          Fix Version/s 1.9 [ 18996 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          Anders Hammar made changes -
          Link This issue supercedes MINVOKER-141 [ MINVOKER-141 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 10:28:53 UTC 2015 [ 1428229733495 ]
          Mark Thomas made changes -
          Workflow jira [ 12721827 ] Default workflow, editable Closed status [ 12762068 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 00:02:09 UTC 2015 [ 1428278529346 ]
          Mark Thomas made changes -
          Workflow jira [ 12959319 ] Default workflow, editable Closed status [ 12996272 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          545d 8m 1 Anders Hammar 21/Feb/13 05:46

            People

            • Assignee:
              Anders Hammar
              Reporter:
              Daniel Strassenburg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development