We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ae6d92 commit ece99eeCopy full SHA for ece99ee
src/main/java/pl/project13/maven/git/GitCommitIdMojo.java
@@ -477,11 +477,11 @@ void loadBuildTimeData(@NotNull Properties properties) {
477
}
478
479
void loadBuildHostData(@NotNull Properties properties) {
480
- String buildHost;
+ String buildHost = null;
481
try {
482
- buildHost = InetAddress.getLocalHost().getHostName();
+ buildHost = InetAddress.getLocalHost().toString();
483
} catch (UnknownHostException e) {
484
- buildHost = "UNKNOWN";
+ log("Unable to get build host");
485
486
put(properties, BUILD_HOST, buildHost);
487
0 commit comments