diff options
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) { |