Create .idea dir if it doesn't exist.

This commit is contained in:
modmuss50
2022-02-11 20:11:14 +00:00
parent 94ce38068c
commit 56d8bcfcea

View File

@@ -66,10 +66,7 @@ public abstract class IdeaSyncTask extends AbstractLoomTask {
@TaskAction
public void runTask() throws IOException {
File projectDir = getProject().getRootProject().file(".idea");
if (!projectDir.exists()) {
throw new RuntimeException("No .idea directory found");
}
projectDir.mkdirs();
generateRunConfigs();
}