Skip to content

Commit

Permalink
Correct index path in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stringbean committed Jun 1, 2023
1 parent 419e29f commit 18a2a6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sbt-test/jandex/generate/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ verifyJarIndex := {
val projectJar = (Compile / packageBin).value

Using(new JarFile(projectJar)) { jarFile =>
val indexEntry = jarFile.getEntry("META-INF/index.idx")
val indexEntry = jarFile.getEntry("META-INF/jandex.idx")

if (indexEntry == null) {
sys.error("Missing index.idx in JAR")
Expand Down
2 changes: 1 addition & 1 deletion src/sbt-test/jandex/generate/test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# check index file is generated
> jandex
$ exists target/scala-2.13/jandex/index.idx
$ exists target/scala-2.13/jandex/jandex.idx

# check that index file is included in JAR
> verifyJarIndex

0 comments on commit 18a2a6c

Please sign in to comment.