File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -137,12 +137,12 @@ See the dedicated *bazel run* documentation for details:
137
137
138
138
### Debugging the Rule Execution
139
139
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 ` .
141
141
If ` $TMPDIR ` is not defined, it defaults to ` /tmp ` .
142
142
In order to pass this environment variable to Bazel, use the ` --action_env ` argument:
143
143
144
144
``` bash
145
- bazel build //... --action_env=debug_springboot_rule =1
145
+ bazel build //... --action_env=DEBUG_SPRINGBOOT_RULE =1
146
146
```
147
147
148
148
### Writing Tests for your Spring Boot Application
Original file line number Diff line number Diff line change @@ -69,9 +69,15 @@ build_time_start=$SECONDS
69
69
springboot_rule_tmpdir=${tmpdir:-/ tmp} /bazel
70
70
mkdir -p $springboot_rule_tmpdir
71
71
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
72
74
if [ -z " ${debug_springboot_rule} " ]; then
75
+ if [ -z " ${DEBUG_SPRINGBOOT_RULE} " ]; then
73
76
debugfile=/dev/null
74
- else
77
+ debug_notset=1
78
+ fi
79
+ fi
80
+ if [ -z " ${debug_notset} " ]; then
75
81
debugdir=$springboot_rule_tmpdir /debug/springboot
76
82
mkdir -p $debugdir
77
83
debugfileName=$packagename -$packagesha
You can’t perform that action at this time.
0 commit comments