Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bugfix in Basic example
authorSamuel Lepetit <samuel.lepetit@inria.fr>
Tue, 12 Jun 2012 09:29:25 +0000 (11:29 +0200)
committerSamuel Lepetit <samuel.lepetit@inria.fr>
Tue, 12 Jun 2012 09:29:25 +0000 (11:29 +0200)
examples/basic/BasicTest.java

index af6f35b..a37ff5d 100644 (file)
@@ -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();
     }
 }