Skip to content

Commit cef7deb

Browse files
authored
Merge pull request #252 from salesforce/plaird/fix_debug_flag
Fix case of debug flag
2 parents 3861ef8 + 5e3d953 commit cef7deb

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

springboot/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ See the dedicated *bazel run* documentation for details:
137137

138138
### Debugging the Rule Execution
139139

140-
If the environment variable `debug_springboot_rule` is set, the rule writes debug output to `$TMPDIR/bazel/debug/springboot`.
140+
If the environment variable `DEBUG_SPRINGBOOT_RULE` is set, the rule writes debug output to `$TMPDIR/bazel/debug/springboot`.
141141
If `$TMPDIR` is not defined, it defaults to `/tmp`.
142142
In order to pass this environment variable to Bazel, use the `--action_env` argument:
143143

144144
```bash
145-
bazel build //... --action_env=debug_springboot_rule=1
145+
bazel build //... --action_env=DEBUG_SPRINGBOOT_RULE=1
146146
```
147147

148148
### Writing Tests for your Spring Boot Application

springboot/springboot_pkg.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,15 @@ build_time_start=$SECONDS
6969
springboot_rule_tmpdir=${tmpdir:-/tmp}/bazel
7070
mkdir -p $springboot_rule_tmpdir
7171

72+
# by mistake, this variable got lower cased for a while; it should be upper case but
73+
# now we should check for either, through 2025
7274
if [ -z "${debug_springboot_rule}" ]; then
75+
if [ -z "${DEBUG_SPRINGBOOT_RULE}" ]; then
7376
debugfile=/dev/null
74-
else
77+
debug_notset=1
78+
fi
79+
fi
80+
if [ -z "${debug_notset}" ]; then
7581
debugdir=$springboot_rule_tmpdir/debug/springboot
7682
mkdir -p $debugdir
7783
debugfileName=$packagename-$packagesha

0 commit comments

Comments
 (0)