* 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();
}
}