use project root dir, should fix files being all over the place

This commit is contained in:
modmuss50
2018-12-10 14:28:58 +00:00
parent da675e9545
commit f8bcf214f8
8 changed files with 16 additions and 15 deletions

View File

@@ -27,7 +27,6 @@ package net.fabricmc.loom.task;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import net.fabricmc.loom.LoomGradleExtension;
import net.fabricmc.loom.util.Constants;
import net.fabricmc.loom.util.IdeaRunConfig;
import org.apache.commons.io.FileUtils;
import org.gradle.api.DefaultTask;
@@ -70,7 +69,7 @@ public class GenVsCodeProjectTask extends DefaultTask {
throw new RuntimeException("Failed to write launch.json", e);
}
File runDir = new File(Constants.WORKING_DIRECTORY, extension.runDir);
File runDir = new File(getProject().getRootDir(), extension.runDir);
if (!runDir.exists()) {
runDir.mkdirs();
}