Skip to content

Commit

Permalink
Maven plugin: support <indexName> containing a path
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladicek committed Aug 30, 2023
1 parent 7d33efa commit d0a430d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public void execute() throws MojoExecutionException {
File indexFile = new File(indexDir, indexName);
getLog().info("Saving Jandex index: " + indexFile);
try {
Files.createDirectories(indexDir.toPath());
Files.createDirectories(indexFile.toPath().getParent());
try (OutputStream out = new CachingOutputStream(indexFile)) {
IndexWriter writer = new IndexWriter(out);
if (indexVersion != null) {
Expand Down

0 comments on commit d0a430d

Please sign in to comment.