wrap directory creation into a command

This commit is contained in:
peter
2010-06-28 18:51:49 +04:00
parent 565d121b2b
commit 37d6f83aef
@@ -64,7 +64,11 @@ public abstract class GroovyCompilerTestCase extends JavaCodeInsightFixtureTestC
getProject().getComponent(GroovyCompilerLoader.class).projectOpened();
CompilerManagerImpl.testSetup();
CompilerProjectExtension.getInstance(getProject()).setCompilerOutputUrl(myMainOutput.findOrCreateDir("out").getUrl());
new WriteCommandAction(getProject()) {
protected void run(Result result) throws Throwable {
CompilerProjectExtension.getInstance(getProject()).setCompilerOutputUrl(myMainOutput.findOrCreateDir("out").getUrl());
}
}.execute();
addGroovyLibrary(myModule, getName().contains("1_7"));