}
}
private final void createExecTasks()
{
JavaExec exec = makeTask("runClient", JavaExec.class);
{
exec.setMain(getClientRunClass());
exec.jvmArgs("-Xincgc", "-Xmx1024M", "-Xms1024M", "-Dfml.ignoreInvalidMinecraftCertificates=true");
exec.args(getClientRunArgs());
exec.workingDir(delayedFile("{ASSET_DIR}/.."));
exec.setStandardOutput(System.out);
exec.setErrorOutput(System.err);
exec.setGroup("ForgeGradle");
exec.setDescription("Runs the Minecraft client");
}
exec = makeTask("runServer", JavaExec.class);
{
exec.setMain(getServerRunClass());
exec.jvmArgs("-Xincgc", "-Dfml.ignoreInvalidMinecraftCertificates=true");
exec.workingDir(delayedFile("{ASSET_DIR}/.."));
exec.args(getServerRunArgs());
exec.setStandardOutput(System.out);
exec.setStandardInput(System.in);
exec.setErrorOutput(System.err);
exec.setGroup("ForgeGradle");
exec.setDescription("Runs the Minecraft Server");
}
exec = makeTask("debugClient", JavaExec.class);
{
exec.setMain(getClientRunClass());
exec.jvmArgs("-Xincgc", "-Xmx1024M", "-Xms1024M", "-Dfml.ignoreInvalidMinecraftCertificates=true");
exec.args(getClientRunArgs());
exec.workingDir(delayedFile("{ASSET_DIR}/.."));
exec.setStandardOutput(System.out);
exec.setErrorOutput(System.err);
exec.setDebug(true);
exec.setGroup("ForgeGradle");
exec.setDescription("Runs the Minecraft client in debug mode");
}
exec = makeTask("debugServer", JavaExec.class);
{
exec.setMain(getServerRunClass());
exec.jvmArgs("-Xincgc", "-Dfml.ignoreInvalidMinecraftCertificates=true");
exec.workingDir(delayedFile("{ASSET_DIR}/.."));
exec.args(getServerRunArgs());
exec.setStandardOutput(System.out);
exec.setStandardInput(System.in);
exec.setErrorOutput(System.err);
exec.setDebug(true);
exec.setGroup("ForgeGradle");
exec.setDescription("Runs the Minecraft serevr in debug mode");
}
}