You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@codehaus.org> on 2012/11/14 22:33:13 UTC
[jira] (MSHARED-262) Add option to specify global variables
Robert Scholte created MSHARED-262:
--------------------------------------
Summary: Add option to specify global variables
Key: MSHARED-262
URL: https://jira.codehaus.org/browse/MSHARED-262
Project: Maven Shared Components
Issue Type: New Feature
Components: maven-script-interpreter
Affects Versions: maven-script-interpreter-1.1
Reporter: Robert Scholte
Right now in the {{ScrpiptRunner.run()}} the {{globalVariables}} are fed with the {{basedir}} and the {{context}}, a Map meant to share variables across multiple script-runs. The maven-invoker-plugin has several jira-request to expose more global variables.
IMHO passing these to the context is a workaround which would results in dirty scripts.
Passing globals directly would result in a more natural script.
--
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] (MSHARED-262) Add option to specify global variables
Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MSHARED-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte closed MSHARED-262.
----------------------------------
Resolution: Won't Fix
Global variables aren't passed through the run-method, put you can set them with the {{ScriptRunner.setGlobalVariable(String, Object)}}
> Add option to specify global variables
> --------------------------------------
>
> Key: MSHARED-262
> URL: https://jira.codehaus.org/browse/MSHARED-262
> Project: Maven Shared Components
> Issue Type: New Feature
> Components: maven-script-interpreter
> Affects Versions: maven-script-interpreter-1.1
> Reporter: Robert Scholte
>
> Right now in the {{ScrpiptRunner.run()}} the {{globalVariables}} are fed with the {{basedir}} and the {{context}}, a Map meant to share variables across multiple script-runs. The maven-invoker-plugin has several jira-request to expose more global variables.
> IMHO passing these to the context is a workaround which would results in dirty scripts.
> Passing globals directly would result in a more natural script.
--
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