Skip to content

Commit

Permalink
Fix issue with .env file and workingDir property
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Apr 24, 2020
1 parent 0f5013e commit 4459262
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ private void copyDotEnvFile() {
return;
}
Path currentDir = Paths.get("").toAbsolutePath().normalize();
if (projectDir.toPath().equals(currentDir)) {
// the current directory is the same as the project directory so there is no need to copy the file as it's already in the proper location
// see https://github.com/quarkusio/quarkus/issues/8812
return;
}


Path dotEnvPath = projectDir.toPath().resolve(".env");
if (Files.exists(dotEnvPath)) {
try {
Expand Down

0 comments on commit 4459262

Please sign in to comment.