try {
Compiler compiler = new SunJavaCompiler(_outputRootFile);
if (_unitTest.hasJavaSourceVersion()) {
compiler.setJavaSourceVersion(_unitTest.getJavaSourceVersion());
}
compiler.compileDirectory();
} catch (CompilationException e) {
if (!checkExceptionWasExpected(e, FailureStepType.SOURCE_COMPILATION)) {
fail("Compiling generated source failed: " + e.getMessage());
}
return;