slachiewicz opened a new pull request, #241:
URL: https://github.com/apache/maven-script-interpreter/pull/241

   Adds `ScriptRunner.run(description, basedir, relativeScriptPath, context, 
variables, logger)`, where `variables` are merged over the global variables for 
that call only. The runner is not modified, so a runner shared by concurrent 
runs (maven-invoker-plugin with `parallelThreads`) can expose a per-job value 
such as the job's build log to hook scripts without `setGlobalVariable` racing 
between jobs. `basedir`, `scriptdir` and `context` cannot be overridden. The 
existing `run` methods are unchanged and delegate to the new one.
   
   Follow-up: maven-invoker-plugin will use this overload to inject a 
`buildLog` script variable once a release contains it. Until then the invoker 
exposes the value as `context.buildLog`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to