From b17c96d9b8f6a94cf5749031debf16aa67db5af3 Mon Sep 17 00:00:00 2001 From: Samuel Lepetit Date: Tue, 12 Jun 2012 11:29:25 +0200 Subject: [PATCH] Bugfix in Basic example --- examples/basic/BasicTest.java | 36 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/examples/basic/BasicTest.java b/examples/basic/BasicTest.java index af6f35bffd..a37ff5da12 100644 --- a/examples/basic/BasicTest.java +++ b/examples/basic/BasicTest.java @@ -17,29 +17,19 @@ public class BasicTest { * which also contains such a launcher */ - public static void main(String[] args) throws NativeException { - - /* initialize the MSG simulation. Must be done before anything else (even logging). */ - Msg.init(args); - - if(args.length == 0) { - Msg.createEnvironment("basic_platform.xml"); - Msg.deployApplication("basic_deployment.xml"); - - } else if (args.length < 2) { - - - Msg.info("Usage : Basic platform_file deployment_file"); - Msg.info("example : Basic basic_platform.xml basic_deployment.xml"); - System.exit(1); - } else { - - /* construct the platform and deploy the application */ - Msg.createEnvironment(args[0]); - Msg.deployApplication(args[1]); - } - - /* execute the simulation. */ + public static void main(String[] args) throws NativeException { + /* initialize the MSG simulation. Must be done before anything else (even logging). */ + Msg.init(args); + + if (args.length < 2) { + Msg.info("Usage : Basic platform_file deployment_file"); + Msg.info("example : Basic basic_platform.xml basic_deployment.xml"); + System.exit(1); + } + /* construct the platform and deploy the application */ + Msg.createEnvironment(args[0]); + Msg.deployApplication(args[1]); + /* execute the simulation. */ Msg.run(); } } -- 2.20.1