REPO-3422 Startup check for LibreOffice

Also included the transformer name on the log and error pages.
This commit is contained in:
Alan Davis
2018-04-09 06:57:53 +01:00
parent 419d71bfbf
commit a0dd60d6a6
10 changed files with 152 additions and 50 deletions

View File

@@ -66,6 +66,12 @@ public class AlfrescoPdfRendererController extends AbstractTransformerController
setCheckCommand(createCheckCommand());
}
@Override
protected String getTransformerName()
{
return "Alfresco PDF Renderer";
}
private static RuntimeExec createTransformCommand()
{
RuntimeExec runtimeExec = new RuntimeExec();

View File

@@ -1,10 +1,6 @@
<html xmlns:th="http://www.thymeleaf.org">
<body>
<div th:if="${message}">
<h2 th:text="${message}"/>
</div>
<div>
<h2>Alfresco PDF Renderer Test Transformation</h2>
<form method="POST" enctype="multipart/form-data" action="/transform">