Feature #963
RCP: X.X, Calling a macro with parameters from a Groovy script
Statut: | New | Début: | 01/08/2014 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 0% |
|
Catégorie: | Macros | Temps passé: | - | |
Version cible: | TXM 0.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).
Historique
#1 Mis à jour par Matthieu Decorde il y a environ 11 ans
- Sujet changé de RCP: X.X, Call a macro with parameters à RCP: X.X, Call a macro with parameters from a Groovy script
#2 Mis à jour par Serge Heiden il y a environ 11 ans
- Sujet changé de RCP: X.X, Call a macro with parameters from a Groovy script à RCP: X.X, Calling a macro with parameters from a Groovy script
- Description mis à jour (diff)
#3 Mis à jour par Sebastien Jacquot il y a presque 11 ans
- Version cible changé de TXM 0.7.7 à TXM 0.7.8
#4 Mis à jour par Matthieu Decorde il y a environ 10 ans
- Version cible changé de TXM 0.7.8 à TXM 0.8.0a (split/restructuration)
#5 Mis à jour par Sebastien Jacquot il y a plus de 7 ans
- Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.0
#6 Mis à jour par Matthieu Decorde il y a plus de 6 ans
- Version cible changé de TXM 0.8.0 à TXM 0.X.X