import org.simgrid.msg.Msg;
class Main {
+ protected static final int TASK_COUNT = 3;
+
private Main() {
throw new IllegalAccessError("Utility class");
}
- protected static final int TASK_COUNT = 3;
public static void main(String[] args) throws HostNotFoundException {
Msg.init(args);
platfFile = args[0];
File f = new File(platfFile);
- if (!f.exists())
- System.err.println("File "+platfFile+" does not exist in "+System.getProperty("user.dir"));
+ if (!f.exists()) {
+ Msg.error("File " + platfFile + " does not exist in " + System.getProperty("user.dir"));
+ Msg.error("Usage : Main ../platforms/platform.xml");
+ }
Msg.createEnvironment(platfFile);
new Sender("Jacquelin", "Sender", new String[] {"Boivin"}).start();