Feature #963
RCP: X.X, Calling a macro with parameters from a Groovy script
Status: | New | Start date: | 08/01/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% |
|
Category: | Macros | Spent time: | - | |
Target version: | TXM X.X |
Description
Macros should be callable directly with parameters through the "args" Groovy binding mecanism.
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:
import TestMacro TestMacro.main("foobar", "2") TestMacro.main("foobar", "1")
- 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).
History
#1 Updated by Matthieu Decorde over 9 years ago
- Subject changed from RCP: X.X, Call a macro with parameters to RCP: X.X, Call a macro with parameters from a Groovy script
#2 Updated by Serge Heiden over 9 years ago
- Subject changed from RCP: X.X, Call a macro with parameters from a Groovy script to RCP: X.X, Calling a macro with parameters from a Groovy script
- Description updated (diff)
#3 Updated by Sebastien Jacquot about 9 years ago
- Target version changed from TXM 0.7.7 to TXM 0.7.8
#4 Updated by Matthieu Decorde about 8 years ago
- Target version changed from TXM 0.7.8 to TXM 0.8.0a (split/restructuration)
#5 Updated by Sebastien Jacquot over 5 years ago
- Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0
#6 Updated by Matthieu Decorde over 4 years ago
- Target version changed from TXM 0.8.0 to TXM X.X