diff --git a/deployment/src/main/java/io/quarkiverse/jasperreports/deployment/JasperReportsProcessor.java b/deployment/src/main/java/io/quarkiverse/jasperreports/deployment/JasperReportsProcessor.java index 3d6223d..b699750 100644 --- a/deployment/src/main/java/io/quarkiverse/jasperreports/deployment/JasperReportsProcessor.java +++ b/deployment/src/main/java/io/quarkiverse/jasperreports/deployment/JasperReportsProcessor.java @@ -298,7 +298,7 @@ void registerResourceBuildItems(BuildProducer watchedPaths, List reportFiles) { - - // Print the found files reportFiles.forEach((file) -> { - Log.tracef("Watching report file %s", file); - watchedPaths.produce(new HotDeploymentWatchedFileBuildItem(file.getFileName())); + + if (Files.isRegularFile(file.getPath())) { + Log.debugf("Watching report file %s", file); + watchedPaths.produce(new HotDeploymentWatchedFileBuildItem(file.getPath().toString())); + } }); } @@ -531,13 +532,11 @@ void watchReportFiles(BuildProducer watchedPa * * @param config The ReportConfig containing configuration settings for report compilation. * @param reportFiles A list of ReportFileBuildItem representing the report files to be compiled. - * @param compiledReportProducer A producer for GeneratedClassBuildItem to handle compiled report classes. * @param compiledReportFileProducer A producer for CompiledReportFileBuildItem to handle compiled report files. * @param outputTarget The OutputTargetBuildItem containing information about the build output directory. */ @BuildStep void compileReports(ReportBuildTimeConfig config, List reportFiles, - BuildProducer compiledReportProducer, BuildProducer compiledReportFileProducer, OutputTargetBuildItem outputTarget) { @@ -577,8 +576,6 @@ void compileReports(ReportBuildTimeConfig config, List repo // allow dynamically compiled files to be processed compiledReportFileProducer.produce(new CompiledReportFileBuildItem(outputFilePath)); - compiledReportProducer - .produce(new GeneratedClassBuildItem(true, item.getFileName(), outputStream.toByteArray())); } catch (JRException ex) { Log.fatalf("JasperReports error while compiling reports: %s", ex.getMessage()); Log.debug(ex); diff --git a/deployment/src/main/java/io/quarkiverse/jasperreports/deployment/item/AbstractReportFileBuildItem.java b/deployment/src/main/java/io/quarkiverse/jasperreports/deployment/item/AbstractReportFileBuildItem.java index f01a508..1568833 100644 --- a/deployment/src/main/java/io/quarkiverse/jasperreports/deployment/item/AbstractReportFileBuildItem.java +++ b/deployment/src/main/java/io/quarkiverse/jasperreports/deployment/item/AbstractReportFileBuildItem.java @@ -8,6 +8,7 @@ import java.nio.file.Path; import java.util.List; import java.util.Locale; +import java.util.StringJoiner; import org.apache.commons.io.FilenameUtils; @@ -50,4 +51,10 @@ public String getType() { }; } + @Override + public String toString() { + return new StringJoiner(", ", AbstractReportFileBuildItem.class.getSimpleName() + "[", "]") + .add("path=" + path) + .toString(); + } } \ No newline at end of file diff --git a/integration-tests/src/main/jasperreports/CsvDataSourceReport.jrxml b/integration-tests/src/main/jasperreports/CsvDataSourceReport.jrxml index 8156ba8..447d371 100644 --- a/integration-tests/src/main/jasperreports/CsvDataSourceReport.jrxml +++ b/integration-tests/src/main/jasperreports/CsvDataSourceReport.jrxml @@ -10,7 +10,7 @@ - + @@ -116,4 +116,4 @@ - + \ No newline at end of file diff --git a/integration-tests/src/main/resources/application.properties b/integration-tests/src/main/resources/application.properties index 5b287b0..c370fff 100644 --- a/integration-tests/src/main/resources/application.properties +++ b/integration-tests/src/main/resources/application.properties @@ -12,6 +12,7 @@ quarkus.log.file.enable=false quarkus.log.file.path=it.log quarkus.log.file.format=%d{yyyy-MM-dd HH:mm:ss} %-5p [%c] (%t) %s%e%n quarkus.log.level=INFO +quarkus.log.category."io.quarkiverse.jasperreports.deployment".level=INFO %prod.quarkus.log.category."net.sf.jasperreports".level=INFO %test.quarkus.log.category."net.sf.jasperreports".level=INFO quarkus.log.category."net.sf.jasperreports".level=INFO