aboutsummaryrefslogtreecommitdiff
path: root/src/After.java
diff options
context:
space:
mode:
authorjestin2005-11-22 15:46:35 +0000
committerjestin2005-11-22 15:46:35 +0000
commit52744777dd21f84dd40303ee197f0b5517dd96e0 (patch)
treee936b6710d59e5a6f7f5c9eee777db90e0e00dc3 /src/After.java
parent26978bdb988da5539e2cf01dcfc13fda00577c87 (diff)
downloadivy-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.java14
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();