You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Daniel Strassenburg (JIRA)" <ji...@codehaus.org> on 2011/08/26 12:38:32 UTC

[jira] Created: (MINVOKER-119) Allow access to properties in pre- and postBuild scripts

Allow access to properties in pre- and postBuild scripts
--------------------------------------------------------

                 Key: MINVOKER-119
                 URL: https://jira.codehaus.org/browse/MINVOKER-119
             Project: Maven 2.x Invoker Plugin
          Issue Type: Improvement
    Affects Versions: 1.5
            Reporter: Daniel Strassenburg


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

{code:xml}
            <configuration>
              <properties>
                <prop1>val1</prop1>
              </properties>
            </configuration>
{code}

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

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MINVOKER-119) Allow access to properties in pre- and postBuild scripts

Posted by "Anders Hammar (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MINVOKER-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=320081#comment-320081 ] 

Anders Hammar commented on MINVOKER-119:
----------------------------------------

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.
                
> Allow access to properties in pre- and postBuild scripts
> --------------------------------------------------------
>
>                 Key: MINVOKER-119
>                 URL: https://jira.codehaus.org/browse/MINVOKER-119
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.5
>            Reporter: Daniel Strassenburg
>
> In my verify.groovy script I'd like to access properties declared in the invoker's config:
> {code:xml}
>             <configuration>
>               <properties>
>                 <prop1>val1</prop1>
>               </properties>
>             </configuration>
> {code}
> In my verify.groovy script I'd like to use these properties, too, e.g. by using System.getProperty("prop1") but that returns null.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MINVOKER-119) Allow access to properties in pre- and postBuild scripts

Posted by "Anders Hammar (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MINVOKER-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anders Hammar reassigned MINVOKER-119:
--------------------------------------

    Assignee: Anders Hammar
    
> Allow access to properties in pre- and postBuild scripts
> --------------------------------------------------------
>
>                 Key: MINVOKER-119
>                 URL: https://jira.codehaus.org/browse/MINVOKER-119
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.5
>            Reporter: Daniel Strassenburg
>            Assignee: Anders Hammar
>
> In my verify.groovy script I'd like to access properties declared in the invoker's config:
> {code:xml}
>             <configuration>
>               <properties>
>                 <prop1>val1</prop1>
>               </properties>
>             </configuration>
> {code}
> In my verify.groovy script I'd like to use these properties, too, e.g. by using System.getProperty("prop1") but that returns null.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MINVOKER-119) Allow access to properties in pre- and postBuild scripts

Posted by "Anders Hammar (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MINVOKER-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anders Hammar closed MINVOKER-119.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.9

I decided on a scriptVariables param.

Fixed in [r1448603|http://svn.apache.org/r1448603]
                
> Allow access to properties in pre- and postBuild scripts
> --------------------------------------------------------
>
>                 Key: MINVOKER-119
>                 URL: https://jira.codehaus.org/browse/MINVOKER-119
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.5
>            Reporter: Daniel Strassenburg
>            Assignee: Anders Hammar
>             Fix For: 1.9
>
>
> In my verify.groovy script I'd like to access properties declared in the invoker's config:
> {code:xml}
>             <configuration>
>               <properties>
>                 <prop1>val1</prop1>
>               </properties>
>             </configuration>
> {code}
> In my verify.groovy script I'd like to use these properties, too, e.g. by using System.getProperty("prop1") but that returns null.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira