mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
Resolve run working directory from rootProject
This commit is contained in:
parent
4b48806b39
commit
266a44e61c
@ -107,7 +107,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+fun TaskContainer.registerRunTask(name: String, block: JavaExec.() -> Unit): TaskProvider<JavaExec> =
|
+fun TaskContainer.registerRunTask(name: String, block: JavaExec.() -> Unit): TaskProvider<JavaExec> =
|
||||||
+ register<JavaExec>(name) {
|
+ register<JavaExec>(name) {
|
||||||
+ group = "Paper"
|
+ group = "Paper"
|
||||||
+ workingDir = layout.projectDirectory.dir(
|
+ workingDir = rootProject.layout.projectDirectory.dir(
|
||||||
+ providers.gradleProperty("runWorkDir").forUseAtConfigurationTime().orElse("run")
|
+ providers.gradleProperty("runWorkDir").forUseAtConfigurationTime().orElse("run")
|
||||||
+ ).get().asFile
|
+ ).get().asFile
|
||||||
+ doFirst {
|
+ doFirst {
|
||||||
|
Loading…
Reference in New Issue
Block a user