Skip to content

Commit

Permalink
Merge pull request #39829 from sdavids/users/sdavids/fix/issue-39798
Browse files Browse the repository at this point in the history
Use quarkusDev#workingDirectory
  • Loading branch information
aloubyansky authored Apr 2, 2024
2 parents 8f10e63 + 320f7fb commit f69ca13
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 f69ca13

Please sign in to comment.