Skip to content

Commit

Permalink
Fix product name in directory messages
Browse files Browse the repository at this point in the history
If bazel runs under emacs, it emits messages about changing
of directories.  In those messages, fix the product name.

Change-Id: I233a46db741dc4cd0dc5bfbaadbf2ad09c04952e
PiperOrigin-RevId: 165159721
  • Loading branch information
aehlig authored and iirina committed Aug 14, 2017
1 parent 429227a commit ad87c13
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,10 @@ void executeBuild(UUID buildId, AnalysisResult analysisResult,

if (request.isRunningInEmacs()) {
// The syntax of this message is tightly constrained by lisp/progmodes/compile.el in emacs
request.getOutErr().printErrLn("blaze: Entering directory `" + getExecRoot() + "/'");
request
.getOutErr()
.printErrLn(
env.getRuntime().getProductName() + ": Entering directory `" + getExecRoot() + "/'");
}
boolean buildCompleted = false;
try {
Expand Down Expand Up @@ -445,7 +448,10 @@ void executeBuild(UUID buildId, AnalysisResult analysisResult,
} finally {
env.recordLastExecutionTime();
if (request.isRunningInEmacs()) {
request.getOutErr().printErrLn("blaze: Leaving directory `" + getExecRoot() + "/'");
request
.getOutErr()
.printErrLn(
env.getRuntime().getProductName() + ": Leaving directory `" + getExecRoot() + "/'");
}
if (buildCompleted) {
getReporter().handle(Event.progress("Building complete."));
Expand Down

0 comments on commit ad87c13

Please sign in to comment.