// If there are no errors go ahead and compile the workspace.
if (ml.getMaxSeverity().compareTo(CompilerMessage.Severity.ERROR) < 0) {
WorkspaceManager.CompilationOptions options = new WorkspaceManager.CompilationOptions();
options.setForceCodeRegeneration(forceCodeRegen);
workspaceManager.compile(ml, dirtyOnly, null, options);
}
long compileTime = System.currentTimeMillis() - startCompile;
boolean compilationSucceeded;