}
public static void main(String[] args) throws Exception {
Map<ParameterKey, String> paramMap = parseParams(args);
JstdSettings settings = JstdSettings.build(paramMap);
TreeManager treeManager = new TreeManager(settings.getRunAllConfigsInDirectory());
if (settings.isDebug()) {
@SuppressWarnings("IOResourceOpenedButNotSafelyClosed")
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String line;
while ((line = reader.readLine()) != null) {
if (DEBUG_SESSION_STARTED.equals(line)) {
break;
}
}
}
try {
new TestRunner(settings, treeManager).executeAll();
} catch (Exception ex) {
treeManager.printThrowable("Unexpected crash!", ex);
} finally {
treeManager.onTestingFinished();
}
}