Feature #963
Mis à jour par Serge Heiden il y a environ 11 ans
Macros The macros should be callable directly able to be called with parameters through predefined in the "args" Groovy binding mecanism. binding.
This would allow the user to call macros directly from within Groovy scripts.
For example, with the following scenario:
* TestMacro.groovy is defined in the CLASSPATH
* code of a calling script:
<pre>
import TestMacro
TestMacro.main("foobar", "2")
TestMacro.main("foobar", "1")
</pre>
If args size is bigger than 0, then we have to decide of the behavior with respect to the parameters parameter dialog UI:
* A) we can switch off the parameters dialog UI, and decide how to deal with the args available
* B) we can use the parameters dialog UI to ask for some missing mandatory parameters
* C) we can use the parameters dialog UI to ask for some missing parameters
A first implementation should implement at least A).
is not shown
This would allow the user to call macros directly from within Groovy scripts.
For example, with the following scenario:
* TestMacro.groovy is defined in the CLASSPATH
* code of a calling script:
<pre>
import TestMacro
TestMacro.main("foobar", "2")
TestMacro.main("foobar", "1")
</pre>
If args size is bigger than 0, then we have to decide of the behavior with respect to the parameters parameter dialog UI:
* A) we can switch off the parameters dialog UI, and decide how to deal with the args available
* B) we can use the parameters dialog UI to ask for some missing mandatory parameters
* C) we can use the parameters dialog UI to ask for some missing parameters
A first implementation should implement at least A).
is not shown