Feature #1177

RCP: X.X, TXM start and stop scripts

Ajouté par Matthieu Decorde il y a presque 11 ans. Mis à jour il y a plus d'un an.

Statut:Closed Début:10/12/2014
Priorité:Normal Echéance:
Assigné à:- % réalisé:

100%

Catégorie:Macros Temps passé: -
Version cible:TXM 0.7.8

Description

If present, execute the $TXMHOME/scripts/user/start.groovy script just before the "Ready." message display (after the Toolbox has been initialized).

If present, execute the $TXMHOME/scripts/user/stop.groovy script just before TXM call Toolbox.shutdown()

The 2 scripts must be modal.

Validation test

create the $HOME/TXM/scripts/user/start.groovy and $HOME/TXM/scripts/user/stop.groovy Groovy scripts with the following content:
  • start.groovy:
    def f = new File("tmp.txt")
    println "Writting 'CUSTOM START MESSAGE' IN "+f.getAbsolutePath()
    f.println "CUSTOM START MESSAGE" 
    
  • stop.groovy:
    new File("tmp.txt") << "CUSTOM END MESSAGE" 
    

Run TXM and quit.
The "tmp.txt" file must contain (its path is written in the console when TXM starts)

CUSTOM START MESSAGE
CUSTOM END MESSAGE

Historique

#1 Mis à jour par Matthieu Decorde il y a plus de 10 ans

  • Version cible changé de TXM 0.X.X à TXM 0.7.8

#2 Mis à jour par Serge Heiden il y a plus de 10 ans

  • Description mis à jour (diff)

#3 Mis à jour par Matthieu Decorde il y a environ 10 ans

  • Tracker changé de Task à Feature

#4 Mis à jour par Matthieu Decorde il y a environ 10 ans

  • Catégorie mis à Macros

#5 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)

#6 Mis à jour par Matthieu Decorde il y a presque 10 ans

  • Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.7.8

#7 Mis à jour par Matthieu Decorde il y a presque 10 ans

  • Description mis à jour (diff)
  • % réalisé changé de 0 à 80

#8 Mis à jour par Matthieu Decorde il y a presque 10 ans

  • Sujet changé de RCP: X.X, TXM startup script à RCP: X.X, TXM start and stop scripts
  • Description mis à jour (diff)

#9 Mis à jour par Matthieu Decorde il y a plus de 9 ans

  • Description mis à jour (diff)

#10 Mis à jour par Matthieu Decorde il y a plus de 9 ans

  • Description mis à jour (diff)

#11 Mis à jour par Serge Heiden il y a environ 9 ans

  • Description mis à jour (diff)

#12 Mis à jour par Sebastien Jacquot il y a plus d'un an

  • Statut changé de New à Closed

#13 Mis à jour par Sebastien Jacquot il y a plus d'un an

  • % réalisé changé de 80 à 100

Formats disponibles : Atom PDF