Support "dist" directory layout for szBuildVersion.json during product builds#311
Support "dist" directory layout for szBuildVersion.json during product builds#311barrycaceres merged 1 commit intomainfrom
Conversation
barrycaceres
commented
Apr 10, 2026
- Add fallback in findBuildVersionFile() to look for szBuildVersion.json directly under SENZING_PATH when the path ends in "dist", supporting the directory structure used during Senzing product builds
- Retain existing lookup under {SENZING_PATH}/er/ as a fallback for completed/installed build structures
- Use equalsIgnoreCase() for "dist" directory check to match the case-insensitive convention used elsewhere in the file
- Add isFile() check on the "dist" path for consistency with the existing "er" path validation
- Fix Javadoc typo "THe" to "The" in findBuildVersionFile()
…t builds
- Add fallback in findBuildVersionFile() to look for szBuildVersion.json
directly under SENZING_PATH when the path ends in "dist", supporting
the directory structure used during Senzing product builds
- Retain existing lookup under {SENZING_PATH}/er/ as a fallback for
completed/installed build structures
- Use equalsIgnoreCase() for "dist" directory check to match the
case-insensitive convention used elsewhere in the file
- Add isFile() check on the "dist" path for consistency with the
existing "er" path validation
- Fix Javadoc typo "THe" to "The" in findBuildVersionFile()
Code Coverage
|
🤖 Claude Code ReviewNow I have everything needed. Here is my review. Code Review: PR #311 — Support "dist" directory layout for
|
| Area | Status |
|---|---|
| Code style | ✅ (minor: trailing whitespace + trivial comment) |
| No commented-out code | ✅ |
| Meaningful names | ✅ |
| DRY | |
| Defects | ✅ |
| Unit tests | ❌ missing for new "dist" path |
| Edge cases | ❌ not covered |
| Javadoc | ✅ |
| CHANGELOG | ❌ not updated |
| Security | ✅ |
Required before merge:
- Add unit tests for the
distdirectory path (both file-found and file-missing/fallback cases). - Update
CHANGELOG.md.
Optional cleanup:
- Remove the
// declare the version filecomment (line 507). - Remove trailing whitespace on the blank line at line 506.
Automated code review analyzing defects and coding standards