Skip to content

Commit 90ac6b6

Browse files
committed
#35 fixed path to macosx
1 parent 2a3c13a commit 90ac6b6

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

etc/spring-scaffold.png

21.8 KB
Loading

spring-boot-generate/src/main/java/br/com/generate/ReadScaffoldInfo.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ public String getUserDir() {
2626
currentLocation = Paths.get(".").toAbsolutePath().toString();
2727
} else if (SystemUtils.IS_OS_WINDOWS) {
2828
currentLocation = System.getProperty("user.dir");
29-
}
29+
} else if (SystemUtils.IS_OS_MAC_OSX) {
30+
currentLocation = Paths.get(".").toAbsolutePath().toString();
31+
} else if (SystemUtils.IS_OS_MAC) {
32+
currentLocation = Paths.get(".").toAbsolutePath().toString();
33+
}
3034
return currentLocation;
3135
}
3236

0 commit comments

Comments
 (0)