void (JavaParameters javaParameters) { try { myWorkingDirsFile = FileUtil.createTempFile("idea_working_dirs_" + getFrameworkId(), ".tmp", true); javaParameters.getProgramParametersList() .add(new CompositeParameterTargetedValue().addLocalPart("@w@").addPathPart(myWorkingDirsFile)); myTempFile = FileUtil.createTempFile("idea_" + getFrameworkId(), ".tmp", true); passTempFile(javaParameters.getProgramParametersList(), myTempFile.getAbsolutePath()); } catch (Exception e) { LOG.error(e); } }