X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/77bd8d21587ec11c22c2f321dd1fab3846264015..b17c96d9b8f6a94cf5749031debf16aa67db5af3:/examples/basic/BasicTest.java 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(); } }