diff --git a/scip-java/src/main/scala/com/sourcegraph/scip_java/buildtools/SbtBuildTool.scala b/scip-java/src/main/scala/com/sourcegraph/scip_java/buildtools/SbtBuildTool.scala index 8ac28d71..bc2d6ee1 100644 --- a/scip-java/src/main/scala/com/sourcegraph/scip_java/buildtools/SbtBuildTool.scala +++ b/scip-java/src/main/scala/com/sourcegraph/scip_java/buildtools/SbtBuildTool.scala @@ -51,7 +51,7 @@ class SbtBuildTool(index: IndexCommand) extends BuildTool("sbt", index) { .resolve("sbt-sourcegraph") .resolve("index.scip") if (sourcegraphScip.exitCode == 0 && Files.isRegularFile(inputDump)) { - val outputDump = index.workingDirectory.resolve("index.scip") + val outputDump = index.workingDirectory.resolve(index.output) Files.copy(inputDump, outputDump, StandardCopyOption.REPLACE_EXISTING) index.app.info(outputDump.toString) }