Skip to content

Commit

Permalink
MIR-1198 Support validation of PDF/A documents
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoniafriedrich committed Oct 11, 2023
1 parent 2da050b commit 7d4a7d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@
</xsl:choose>
</xsl:template>

</xsl:stylesheet>
</xsl:stylesheet>
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void doExecute() {
Element library = getInputXML().getChild("database").getChild("library");

if (library != null && library.getChildren().size() > 0) {
String libDir = MCRConfigurationDir.getConfigurationDirectory().getAbsolutePath() + File.separator
String libDir = MCRConfigurationDir.getConfigurationDirectory().getAbsolutePath() + File.separator
+ "lib";

boolean success = true;
Expand All @@ -62,12 +62,13 @@ public void doExecute() {
String fname = FilenameUtils.getName(url);
File file = new File(libDir + File.separator + fname);
try {

FileUtils.copyURLToFile(new URL(url), file);
MCRConfigurationDirSetup.loadExternalLibs();

success = true;
} catch (Exception ex) {
LOGGER.error("Exception while downloading or loading database library: "
LOGGER.error("Exception while downloading or loading database library: "
+ file.getAbsolutePath(), ex);
success = false;
}
Expand Down

0 comments on commit 7d4a7d8

Please sign in to comment.