Feature #1177
RCP: X.X, TXM start and stop scripts
Status: | New | Start date: | 12/10/2014 | ||
---|---|---|---|---|---|
Priority: | Normal | Due date: | |||
Assignee: | - | % Done: | 80% |
||
Category: | Macros | Spent time: | - | ||
Target version: | 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
History
#1 Updated by Matthieu Decorde almost 6 years ago
- Target version changed from TXM X.X to TXM 0.7.8
#2 Updated by Serge Heiden almost 6 years ago
- Description updated (diff)
#3 Updated by Matthieu Decorde over 5 years ago
- Tracker changed from Task to Feature
#4 Updated by Matthieu Decorde over 5 years ago
- Category set to Macros
#5 Updated by Matthieu Decorde over 5 years ago
- Target version changed from TXM 0.7.8 to TXM 0.8.0a (split/restructuration)
#6 Updated by Matthieu Decorde about 5 years ago
- Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.7.8
#7 Updated by Matthieu Decorde about 5 years ago
- Description updated (diff)
- % Done changed from 0 to 80
#8 Updated by Matthieu Decorde about 5 years ago
- Subject changed from RCP: X.X, TXM startup script to RCP: X.X, TXM start and stop scripts
- Description updated (diff)
#9 Updated by Matthieu Decorde over 4 years ago
- Description updated (diff)
#10 Updated by Matthieu Decorde over 4 years ago
- Description updated (diff)
#11 Updated by Serge Heiden over 4 years ago
- Description updated (diff)