Skip to content

Commit

Permalink
Fix analysis of Java compilation to jar
Browse files Browse the repository at this point in the history
  • Loading branch information
adpi2 committed Jul 3, 2024
1 parent 54e9fba commit b977f26
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ final class MixedAnalyzingCompiler(

def toVirtualFile(p: Path) = config.converter.toVirtualFile(p.toAbsolutePath)

JarUtils.getOutputJar(output) match {
val outputJarOpt = JarUtils.getOutputJar(output)
outputJarOpt match {
case Some(outputJar) if !javac.supportsDirectToJar =>
val outputDir = JarUtils.javacTempOutput(outputJar)
Files.createDirectories(outputDir)
Expand All @@ -80,7 +81,7 @@ final class MixedAnalyzingCompiler(
config.converter,
joptions,
CompileOutput(outputDir),
Some(outputJar),
outputJarOpt,
callback,
incToolOptions,
config.reporter,
Expand All @@ -96,7 +97,7 @@ final class MixedAnalyzingCompiler(
config.converter,
joptions,
output,
None,
outputJarOpt,
callback,
incToolOptions,
config.reporter,
Expand Down

0 comments on commit b977f26

Please # to comment.