Skip to content

Commit 98f7019

Browse files
committed
[bugfix] Reduce startup logging from XmlLibraryChecker
1 parent b321947 commit 98f7019

File tree

4 files changed

+146
-80
lines changed

4 files changed

+146
-80
lines changed

exist-core/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,7 @@
913913
<include>src/main/java/org/exist/http/RESTServer.java</include>
914914
<include>src/test/java/org/exist/http/RESTServiceTest.java</include>
915915
<include>src/main/java/org/exist/http/servlets/AbstractExistHttpServlet.java</include>
916+
<include>src/main/java/org/exist/http/servlets/EXistServlet.java</include>
916917
<include>src/main/java/org/exist/http/servlets/RedirectorServlet.java</include>
917918
<include>src/main/java/org/exist/http/servlets/XQueryServlet.java</include>
918919
<include>src/main/java/org/exist/http/servlets/XSLTServlet.java</include>
@@ -1062,6 +1063,7 @@
10621063
<include>src/test/java/org/exist/util/sorters/SortTestNodeId.java</include>
10631064
<include>src/test/resources/org/exist/validation/catalog.xml</include>
10641065
<include>src/test/java/org/exist/validation/CollectionConfigurationValidationModeTest.java</include>
1066+
<include>src/main/java/org/exist/validation/XmlLibraryChecker.java</include>
10651067
<include>src/main/java/org/exist/validation/internal/DatabaseResources.java</include>
10661068
<include>src/main/resources/org/exist/validation/internal/query/find_catalogs_with_dtd.xq</include>
10671069
<include>src/main/resources/org/exist/validation/internal/query/find_schema_by_targetNamespace.xq</include>
@@ -1502,6 +1504,7 @@
15021504
<exclude>src/main/java/org/exist/http/RESTServer.java</exclude>
15031505
<exclude>src/test/java/org/exist/http/RESTServiceTest.java</exclude>
15041506
<exclude>src/main/java/org/exist/http/servlets/AbstractExistHttpServlet.java</exclude>
1507+
<exclude>src/main/java/org/exist/http/servlets/EXistServlet.java</exclude>
15051508
<exclude>src/main/java/org/exist/http/servlets/RedirectorServlet.java</exclude>
15061509
<exclude>src/main/java/org/exist/http/servlets/XQueryServlet.java</exclude>
15071510
<exclude>src/main/java/org/exist/http/servlets/XSLTServlet.java</exclude>
@@ -1723,6 +1726,7 @@
17231726
<exclude>src/test/java/org/exist/util/sorters/SortTestNodeId.java</exclude>
17241727
<exclude>src/test/resources/org/exist/validation/catalog.xml</exclude>
17251728
<exclude>src/test/java/org/exist/validation/CollectionConfigurationValidationModeTest.java</exclude>
1729+
<exclude>src/main/java/org/exist/validation/XmlLibraryChecker.java</exclude>
17261730
<exclude>src/main/java/org/exist/validation/internal/DatabaseResources.java</exclude>
17271731
<exclude>src/main/resources/org/exist/validation/internal/query/find_catalogs_with_dtd.xq</exclude>
17281732
<exclude>src/main/resources/org/exist/validation/internal/query/find_schema_by_targetNamespace.xq</exclude>

exist-core/src/main/java/org/exist/http/servlets/EXistServlet.java

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
/*
2+
* Elemental
3+
* Copyright (C) 2024, Evolved Binary Ltd
4+
*
5+
6+
* https://www.evolvedbinary.com | https://www.elemental.xyz
7+
*
8+
* This library is free software; you can redistribute it and/or
9+
* modify it under the terms of the GNU Lesser General Public
10+
* License as published by the Free Software Foundation; version 2.1.
11+
*
12+
* This library is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15+
* Lesser General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Lesser General Public
18+
* License along with this library; if not, write to the Free Software
19+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20+
*
21+
* NOTE: Parts of this file contain code from 'The eXist-db Authors'.
22+
* The original license header is included below.
23+
*
24+
* =====================================================================
25+
*
226
* eXist-db Open Source Native XML Database
327
* Copyright (C) 2001 The eXist-db Authors
428
*
@@ -86,9 +110,6 @@ public void init(final ServletConfig config) throws ServletException {
86110
// Instantiate REST Server
87111
srvREST = new RESTServer(getPool(), getFormEncoding(), getContainerEncoding(), useDynamicContentType.equalsIgnoreCase("yes")
88112
|| useDynamicContentType.equalsIgnoreCase("true"), isInternalOnly(), xquerySubmission, xupdateSubmission);
89-
90-
// XML lib checks....
91-
XmlLibraryChecker.check();
92113
}
93114

94115
private FeatureEnabled parseFeatureEnabled(final ServletConfig config, final String paramName, final FeatureEnabled defaultValue) {

exist-core/src/main/java/org/exist/util/StringUtil.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@
3030
*/
3131
public class StringUtil {
3232

33+
/**
34+
* The platform specific separator to use for line separation.
35+
* Just a static constant for {@code System.getProperty("line.separator")}.
36+
*/
37+
public static final String LINE_SEPARATOR = System.getProperty("line.separator");
38+
3339
/**
3440
* Determines if a String is null or empty.
3541
*

0 commit comments

Comments
 (0)