X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/73964e0702f4c60d487bad44f6be8fd472680485..a1a834c0fd7760948192af362d9200bdaf085565:/examples/java/surfPlugin/TestPlugin.java diff --git a/examples/java/surfPlugin/TestPlugin.java b/examples/java/surfPlugin/TestPlugin.java index cf0752bade..a4b334c7c9 100644 --- a/examples/java/surfPlugin/TestPlugin.java +++ b/examples/java/surfPlugin/TestPlugin.java @@ -12,13 +12,13 @@ import org.simgrid.surf.Cpu; public class TestPlugin { - /* This only contains the launcher. If you do nothing more than than you can run + /* This only contains the launcher. If you do nothing more than than you can run * java simgrid.msg.Msg * which also contains such a launcher */ - //static TracePlugin tp = new TracePlugin(); - - public static void main(String[] args) throws NativeException { + static TracePlugin tp = new TracePlugin(); + + 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) { @@ -26,8 +26,7 @@ public class TestPlugin { Msg.info("example : TestPlugin ping_pong_platform.xml ping_pong_deployment.xml"); System.exit(1); } - TracePlugin tp = new TracePlugin(); - + /* construct the platform and deploy the application */ Msg.createEnvironment(args[0]); Msg.deployApplication(args[1]);