Merge pull request #31 from codewarrior0/runclient-jvmargs

runClient and runServer now respect the jvmArgs property
dev/0.11
Adrian Siekierka 2018-12-12 06:54:06 +01:00 committed by GitHub
commit 0f51d2142f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ public class RunClientTask extends JavaExec {
@Override @Override
public List<String> getJvmArgs() { public List<String> getJvmArgs() {
LoomGradleExtension extension = this.getProject().getExtensions().getByType(LoomGradleExtension.class); LoomGradleExtension extension = this.getProject().getExtensions().getByType(LoomGradleExtension.class);
List<String> args = new ArrayList<>(); List<String> args = new ArrayList<>(super.getJvmArgs());
args.add("-Dfabric.development=true"); args.add("-Dfabric.development=true");
return args; return args;
} }

View File

@ -73,7 +73,7 @@ public class RunServerTask extends JavaExec {
@Override @Override
public List<String> getJvmArgs() { public List<String> getJvmArgs() {
LoomGradleExtension extension = this.getProject().getExtensions().getByType(LoomGradleExtension.class); LoomGradleExtension extension = this.getProject().getExtensions().getByType(LoomGradleExtension.class);
List<String> args = new ArrayList<>(); List<String> args = new ArrayList<>(super.getJvmArgs());
args.add("-Dfabric.development=true"); args.add("-Dfabric.development=true");
return args; return args;
} }