BuildResult (CompileScopeTestBuilder scope) { ProjectDescriptor descriptor = createProjectDescriptor(new BuildLoggingManager(myLogger)); try { myLogger.clearFilesData(); return doBuild(descriptor, scope); } finally { descriptor.release(); } }