Commit 48d4cb2
committed
fix/build: resolve project path to absolute and surface empty-build failures
Two coupled papercuts in the level-2 build path:
- A relative `--input` doubled the project path. The build runs with its working
directory set to the project root, but gradleBuild passed the raw (relative)
`-p <projectPath>` (maven was already absolutized, gradle was not), so it
resolved against the root to `<root>/<root>`, the build failed, and zero
application classes loaded. Normalize the path to absolute once at the
buildProjectAndStreamClassFiles entry point so every downstream tool is
consistent.
- A failed build was swallowed: buildProjectAndStreamClassFiles returns an empty
list (never null) on failure, but ScopeUtils only guarded `== null`, so
analysis proceeded with an empty scope and died later with a cryptic WALA
"Could not create entrypoint callsites" error. Guard on emptiness too and
report the real cause (build failed / no compiled classes / bad input path).1 parent 6c7081d commit 48d4cb2
2 files changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
198 | 202 | | |
199 | 203 | | |
200 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
110 | 114 | | |
111 | 115 | | |
112 | 116 | | |
| |||
0 commit comments