An open API service indexing awesome lists of open source software.

https://github.com/marschall/jasperreports-java-tool-compiler

a JR compiler that uses the built in JavaCompiler
https://github.com/marschall/jasperreports-java-tool-compiler

compiler jasper-reports jasperreports

Last synced: 3 months ago
JSON representation

a JR compiler that uses the built in JavaCompiler

Awesome Lists containing this project

README

        

JavaTool Compiler for JasperReports [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/jasperreports-java-tool-compiler/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/jasperreports-java-tool-compiler)
===================================

A compiler for JasperReports that uses the built in [JSR 199](https://jcp.org/en/jsr/detail?id=199) Java Compiler API to compile reports. No need for an external dependency if you deploy on a JDK or have the `java.compiler` module.

The compiler supports reading directly from memory and writing directly to memory without the need for any file system access.

```xml

com.github.marschall
jasperreports-java-tool-compiler
1.0.0

```

Usage
-----

```java
JasperReportsContext jrContext = new SimpleJasperReportsContext();
// alternatively the deprecated JRCompiler.COMPILER_CLASS works as well
jrContext.setProperty(JRCompiler.COMPILER_PREFIX + JRReport.LANGUAGE_JAVA, JRJavaToolCompiler.class.getName());
var compileManager = JasperCompileManager.getInstance(jrContext);
```