From e854a58a81ec90e419a4b3effa5a83caac05df90 Mon Sep 17 00:00:00 2001
From: jestin
Date: Sun, 13 May 2012 08:54:38 +0000
Subject: Modified the tests to remove bus.getDomain(null) make Waiter and
WaiterClient sons of WaitFor Added a few tests into svn
---
src/After.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
(limited to 'src/After.java')
diff --git a/src/After.java b/src/After.java
index 7b5af07..ea164fb 100644
--- a/src/After.java
+++ b/src/After.java
@@ -1,11 +1,14 @@
/**
- * an utility waiting for a message to come, then exiting
+ * an utility waiting for a message to come, then exiting.
+ *
* the typical use is to stop a script execution flow until a message has been
* received in a shell script the following way
*
- * echo "waiting for Toto"
+ *
+ * echo "waiting for Toto"
* java -classpath ivy-java.jar fr.dgac.ivy.tools.After -b 224.5.6.7:8910 "Toto READY"
* echo "Toto is here, continuing".
+ *
*
* @author Yannick Jestin
* @author http://www.tls.cena.fr/products/ivy/
@@ -31,7 +34,7 @@ public class After extends IvyApplicationAdapter implements IvyMessageListener {
public static void main(String[] args) throws IvyException {
Getopt opt = new Getopt("After",args,"b:t:");
int c;
- String domain=Ivy.getDomain(null);
+ String domain=null;
String name="AFTER";
int timeout = DEFAULTTIMEOUT;
while ((c = opt.getopt()) != -1) switch (c) {
--
cgit v1.1