mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-133903: Overriding existing project files in the new project wizard has no effect
This commit is contained in:
@@ -257,6 +257,18 @@ public class ProjectManagerImpl extends ProjectManagerEx implements PersistentSt
|
||||
}
|
||||
}
|
||||
|
||||
File projectFile = new File(filePath);
|
||||
if (projectFile.isFile()) {
|
||||
FileUtil.delete(projectFile);
|
||||
}
|
||||
else {
|
||||
File[] files = new File(projectFile, Project.DIRECTORY_STORE_FOLDER).listFiles();
|
||||
if (files != null) {
|
||||
for (File file : files) {
|
||||
FileUtil.delete(file);
|
||||
}
|
||||
}
|
||||
}
|
||||
ProjectImpl project = createProject(projectName, filePath, false, optimiseTestLoadSpeed);
|
||||
try {
|
||||
initProject(project, useDefaultProjectSettings ? (ProjectImpl)getDefaultProject() : null);
|
||||
|
||||
Reference in New Issue
Block a user