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 Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.9
    • Labels:
      None
    • Number of attachments :
      0

      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

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: