Skip to content

Commit

Permalink
Jasper Reports 6.2.14
Browse files Browse the repository at this point in the history
- Use 6.2.14 jars
- Add workaround to delete temporary font files when starting this plug-in
- We can't delete them on exit
- See TIBCOSoftware/jasperreports#505
  • Loading branch information
Phillipus committed Jan 13, 2025
1 parent 93cde61 commit dcf4eab
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion com.archimatetool.jasperreports/.classpath
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry exported="true" kind="lib" path="lib/jasperreports-6.12.2.jar"/>
<classpathentry exported="true" kind="lib" path="lib/jasperreports-6.21.4.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
Expand Down
4 changes: 2 additions & 2 deletions com.archimatetool.jasperreports/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Bundle-ClassPath: com.archimatetool.jasperreports.jar,
lib/commons-digester-2.1.jar,
lib/commons-logging-1.3.4.jar,
lib/ecj-4.9.jar,
lib/jasperreports-6.12.2.jar,
lib/jasperreports-fonts-6.12.2.jar,
lib/jasperreports-6.21.4.jar,
lib/jasperreports-fonts-6.21.4.jar,
lib/jackson-core-2.18.2.jar,
lib/jackson-databind-2.18.2.jar,
lib/openpdf-2.0.3.jar
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,26 @@ public void start(BundleContext context) throws Exception {

// Create user templates folder
getUserTemplatesFolder().mkdirs();

// Temp font files
deleteTempFontFiles();
}

/**
* Delete Jasper temp font files that may have been left over from last time.
* We can't delete them on exit because they are locked at that point.
* See https://github.com/TIBCOSoftware/jasperreports/issues/505
*/
static void deleteTempFontFiles() {
File tempFolder = new File(System.getProperty("java.io.tmpdir"));

File[] tempFiles = tempFolder.listFiles((dir, name) -> {
return name.startsWith("jr-font") && name.endsWith(".ttf");
});

for(File f : tempFiles) {
f.delete();
}
}

/**
Expand Down

0 comments on commit dcf4eab

Please sign in to comment.