Skip to content

Commit

Permalink
add log.info for setting env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
etanshaul committed Apr 24, 2017
1 parent 5ce1b26 commit ca8678e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,11 @@ void runDevAppServer1Command(List<String> jvmArgs, List<String> args,
logCommand(command);

Map<String, String> devServerEnvironment = Maps.newHashMap(environment);
if (!devServerEnvironment.isEmpty()) {
logger.info("Setting user supplied environment variables: "
+ Joiner.on(",").withKeyValueSeparator("=").join(devServerEnvironment));
}

devServerEnvironment.put("JAVA_HOME", javaHomePath.toAbsolutePath().toString());
processRunner.setEnvironment(devServerEnvironment);
processRunner.run(command.toArray(new String[command.size()]));
Expand Down

0 comments on commit ca8678e

Please sign in to comment.