cleanup temp directories in tests

This commit is contained in:
Eugene Zhuravlev
2012-04-22 16:15:09 +02:00
parent f23d1da5f9
commit cc6fd03538
4 changed files with 56 additions and 17 deletions
@@ -184,6 +184,10 @@ public class CompileServerManager implements ApplicationComponent{
return ApplicationManager.getApplication().getComponent(CompileServerManager.class);
}
public final File getCompileServerSystemRoot() {
return new File(mySystemDirectory, COMPILE_SERVER_SYSTEM_ROOT);
}
public void notifyFilesChanged(Collection<String> paths) {
sendNotification(paths, false);
}
@@ -644,7 +648,7 @@ public class CompileServerManager implements ApplicationComponent{
cmdLine.addParameter(org.jetbrains.jps.server.Server.class.getName());
cmdLine.addParameter(Integer.toString(port));
final File workDirectory = new File(mySystemDirectory, COMPILE_SERVER_SYSTEM_ROOT);
final File workDirectory = getCompileServerSystemRoot();
workDirectory.mkdirs();
ensureLogConfigExists(workDirectory);