runClient and runServer now respect the jvmArgs property
parent
d17b8697bc
commit
a6c3406ba5
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue