diff options
author | jestin | 2005-11-22 15:46:35 +0000 |
---|---|---|
committer | jestin | 2005-11-22 15:46:35 +0000 |
commit | 52744777dd21f84dd40303ee197f0b5517dd96e0 (patch) | |
tree | e936b6710d59e5a6f7f5c9eee777db90e0e00dc3 /src/After.java | |
parent | 26978bdb988da5539e2cf01dcfc13fda00577c87 (diff) | |
download | ivy-java-52744777dd21f84dd40303ee197f0b5517dd96e0.zip ivy-java-52744777dd21f84dd40303ee197f0b5517dd96e0.tar.gz ivy-java-52744777dd21f84dd40303ee197f0b5517dd96e0.tar.bz2 ivy-java-52744777dd21f84dd40303ee197f0b5517dd96e0.tar.xz |
Ha ha, does anyone read the comments in CVS ?
Diffstat (limited to 'src/After.java')
-rw-r--r-- | src/After.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/After.java b/src/After.java index 298830d..fa43cf9 100644 --- a/src/After.java +++ b/src/After.java @@ -8,13 +8,12 @@ * * Changelog: * 1.2.8: new in the ivy package - * TODO / BUG: sur un die, quitter avec un -1 */ package fr.dgac.ivy.tools ; import fr.dgac.ivy.* ; import gnu.getopt.Getopt; -public class After implements IvyMessageListener { +public class After extends IvyApplicationAdapter implements IvyMessageListener { public final static int DEFAULTTIMEOUT = 0 ; @@ -49,7 +48,16 @@ public class After implements IvyMessageListener { } private Ivy bus; - public After(Ivy b) { bus=b; } + public After(Ivy b) { + bus=b; + bus.addApplicationListener(this); + } + + public void die( IvyClient client, int id, String msgarg) { + System.out.println("die received, bailing out"); + bus.stop(); + System.exit(-1); + } public void receive(IvyClient ic,String[] args) { bus.stop(); |