Commit 53ebe0b
refactor: replace resolveMavenBinary with shared resolveBinary
Extract a reusable resolveBinary(globalBinary, localWrapper, startDir,
opts) into tools.js and use it from discoverMavenModules, eliminating
the one-off resolveMavenBinary function that duplicated selectToolBinary
logic.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent dd9e811 commit 53ebe0b
2 files changed
Lines changed: 22 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | 318 | | |
338 | 319 | | |
339 | 320 | | |
| |||
349 | 330 | | |
350 | 331 | | |
351 | 332 | | |
352 | | - | |
| 333 | + | |
| 334 | + | |
353 | 335 | | |
354 | 336 | | |
355 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
181 | 200 | | |
182 | 201 | | |
183 | 202 | | |
| |||
0 commit comments