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
- Host: GitHub
- URL: https://github.com/marschall/jasperreports-java-tool-compiler
- Owner: marschall
- Created: 2021-07-26T16:50:48.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T14:39:17.000Z (over 2 years ago)
- Last Synced: 2025-01-16T02:44:59.849Z (4 months ago)
- Topics: compiler, jasper-reports, jasperreports
- Language: Java
- Homepage:
- Size: 114 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
JavaTool Compiler for JasperReports [](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);
```