mirror of https://github.com/apache/nifi.git
feaf44b623
Refactored the createDocsWebApp method of the JettyServer.java class. Previously NiFi would fail to start up and instead throw an IllegalStatException if the 'docs' directory did not exist in the installation directory. With the update, if the 'docs' directory is missing, an attempt to create the missing directory will be made and if successful will enable NIFI to startup successfully, barring any other startup errors of course. The side effect of this change is that the help documentation under the 'General' heading of the help page will be missing. Three small helper methods were extracted from the original method. Each related to a section of the original code that could throw an exception. In each case if an exception is now thrown a more helpful log message will be output and the process will be closed via the startUpfailure method rather than throwing an exception. This closes #2164. Signed-off-by: Andy LoPresto <alopresto@apache.org> |
||
---|---|---|
.. | ||
nifi-framework | ||
nifi-framework-nar | ||
pom.xml |