Skip to content

Commit

Permalink
Use quarkusDev#workingDirectory
Browse files Browse the repository at this point in the history
fix #39798

Signed-off-by: Sebastian Davids <sdavids@gmx.de>
(cherry picked from commit 320f7fb)
  • Loading branch information
sdavids authored and gsmet committed Apr 3, 2024
1 parent 5497f75 commit 8cdead9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/gradle-tooling.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ You can change the working directory the development environment runs on:
[source,groovy]
----
quarkusDev {
workingDir = rootProject.projectDir
workingDirectory = rootProject.layout.projectDirectory.asFile
}
----
****
Expand All @@ -194,7 +194,7 @@ quarkusDev {
[source,kotlin]
----
tasks.quarkusDev {
workingDir = rootProject.projectDir.toString()
workingDirectory = rootProject.layout.projectDirectory.asFile
}
----
****
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ compileTestJava {
}

quarkusDev {
workingDir = "./build"
workingDirectory = layout.buildDirectory.asFile
}

quarkusBuild {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repositories {
}

quarkusDev {
workingDir = rootProject.projectDir
workingDirectory = rootProject.layout.projectDirectory.asFile
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import static java.nio.file.Files.createTempDirectory

plugins {
id 'java'
id 'io.quarkus'
Expand Down Expand Up @@ -31,9 +33,9 @@ compileTestJava {
}

quarkusDev {
workingDir = System.getProperty("java.io.tmpdir")
workingDirectory = createTempDirectory("").toFile()
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
}

0 comments on commit 8cdead9

Please sign in to comment.