Skip to content

Commit 4c39e10

Browse files
authored
Merge pull request dita-ot#4396 from dita-ot/feature/4377-in-preprocess2-dotj037w-shows-up-twice-when-validate-is-set-to-false
Move warning about not using validation to Ant
2 parents 964db58 + d4c3e13 commit 4c39e10

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/dita/dost/module/reader/AbstractReaderModule.java

-2
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,6 @@ void initXMLReader(final boolean validate) throws DITAOTException {
221221
} catch (final SAXNotRecognizedException e) {
222222
// Not Xerces, ignore exception
223223
}
224-
} else {
225-
logger.warn(MessageUtils.getMessage("DOTJ037W").toString());
226224
}
227225
if (gramcache) {
228226
final XMLGrammarPool grammarPool = GrammarPoolManager.getGrammarPool();

src/main/plugins/org.dita.base/build_init.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Copyright 2006 IBM Corporation
77
See the accompanying LICENSE file for applicable license.
88
-->
99
<project name="ditaot-init"
10-
xmlns:if="ant:if">
10+
xmlns:if="ant:if"
11+
xmlns:unless="ant:unless">
1112

1213
<!-- Read configuration properties -->
1314
<loadproperties>
@@ -150,6 +151,7 @@ See the accompanying LICENSE file for applicable license.
150151

151152
<!-- Validate the xml file or not,default is validation(true)-->
152153
<property name="validate" value="true"/>
154+
<dita-ot-echo id="DOTJ037W" unless:true="${validate}"/>
153155

154156
<!-- Related links to output: none, all, nofamily -->
155157
<condition property="include.rellinks" value="">

0 commit comments

Comments
 (0)