diff options
author | jestin | 2012-05-13 08:54:38 +0000 |
---|---|---|
committer | jestin | 2012-05-13 08:54:38 +0000 |
commit | e854a58a81ec90e419a4b3effa5a83caac05df90 (patch) | |
tree | 16eb84a66b62ff38e744c8cd474df81561436b9f /src/After.java | |
parent | 4ffe8b84071babe544086f94c66431380d301d59 (diff) | |
download | ivy-java-e854a58a81ec90e419a4b3effa5a83caac05df90.zip ivy-java-e854a58a81ec90e419a4b3effa5a83caac05df90.tar.gz ivy-java-e854a58a81ec90e419a4b3effa5a83caac05df90.tar.bz2 ivy-java-e854a58a81ec90e419a4b3effa5a83caac05df90.tar.xz |
Modified the tests to remove bus.getDomain(null)
make Waiter and WaiterClient sons of WaitFor
Added a few tests into svn
Diffstat (limited to 'src/After.java')
-rw-r--r-- | src/After.java | 9 |
1 files changed, 6 insertions, 3 deletions
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" + * <br> + * <code>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". + * </code> * * @author Yannick Jestin * @author <a href="http://www.tls.cena.fr/products/ivy/">http://www.tls.cena.fr/products/ivy/</a> @@ -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) { |