Commit b3aa7f8
committed
Fix JavaSourceSet#gavFromPath for TypeTable jar layout
After #7528 TypeTable materializes artifacts as jar files inside the
version directory rather than as a classes directory. The .tt branch
in gavFromPath used fixed offsets that worked for the legacy directory
layout but mis-sliced GAV components for the new jar layout.
Compute versionIndex/artifactIndex off the tail and shift left by one
when the trailing path component ends with .jar, so the slice points
at the right components in either layout.1 parent d3d2157 commit b3aa7f8
1 file changed
Lines changed: 9 additions & 4 deletions
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
478 | 483 | | |
479 | 484 | | |
480 | 485 | | |
| |||
0 commit comments