Generate server run config

dev/0.11
Shadowfacts 2016-08-20 10:16:23 -04:00
parent 394d1cd925
commit e3b9e83f10
No known key found for this signature in database
GPG Key ID: F802198A7D7F309D
1 changed files with 10 additions and 0 deletions

View File

@ -176,6 +176,16 @@ public class GenIdeaProjectTask extends DefaultTask {
runManager.appendChild(ideaClient.genRuns(runManager)); runManager.appendChild(ideaClient.genRuns(runManager));
IdeaRunConfig ideaServer = new IdeaRunConfig();
ideaServer.mainClass = "net.minecraft.launchwrapper.Launch";
ideaServer.projectName = getProject().getName();
ideaServer.configName = "Minecraft Server";
ideaServer.runDir = "file://$PROJECT_DIR$/" + extension.runDir;
ideaServer.vmArgs = "-Dfabric.development=true";
ideaServer.programArgs = "--tweakClass net.fabricmc.base.launch.FabricServerTweaker";
runManager.appendChild(ideaServer.genRuns(runManager));
transformerFactory = TransformerFactory.newInstance(); transformerFactory = TransformerFactory.newInstance();
transformer = transformerFactory.newTransformer(); transformer = transformerFactory.newTransformer();
source = new DOMSource(doc); source = new DOMSource(doc);