Bump jyjeanne/dita-ot-gradle from 2.8.2 to 2.8.4#664
Bump jyjeanne/dita-ot-gradle from 2.8.2 to 2.8.4#664infotexture wants to merge 2 commits intodevelopfrom
Conversation
Signed-off-by: Roger Sheen <roger@infotexture.net>
|
@jyjeanne Tested the new version with our docs build, still see unexpected errors that don't appear when running builds via the Errors: 4
Processing file:/…/docs/topics/error-messages-details.xml to file:/…/docs/build/dita-temp/[hash1].xml
Processing file:/…/docs/topics/error-messages.xml to file:/…/docs/build/dita-temp/[hash2].xml
[ERROR] SVG graphic could not be built. Reason: org.apache.batik.bridge.BridgeException:
file:/…/docs/build/dita-temp/:-1
org.apache.batik.bridge.BridgeException: file:/…/docs/build/dita-temp/:-1The ones about the Could be an issue with the log parsing, perhaps related to the word "error" in the filenames. The SVG one seems new, but this may be related to recent changes in DITA-OT 4.4. Maybe FOP writes different messages to the log now? |
|
@infotexture The false positive errors reported in the transformation report have been fixed in dita-ot-gradle v2.8.4. What changed The error detection logic has been rewritten to use DITA-OT structured message codes only This fixes all 3 reported bugs:
Test results (DITA-OT 4.4.0) HTML: 0 errors, 2 warnings (was: 6 false errors) How to upgrade Update build.gradle: Optional — hide warning details in the report: |
Signed-off-by: Roger Sheen <roger@infotexture.net>
|
@jyjeanne Thanks, confirmed that 2.8.4 fixes those extra errors. Much better. 🙏 I noticed what looks like extra progress information in the There may be reasons for this that I'm not aware of, but it seems like 1 such entry would be enough. |
|
@infotexture The duplicate progress lines are caused by two independent code paths both printing a "100% - Complete" line for the same transformation: Path 1 — ProgressReporter.processOutput() (line 180) When the DITA-OT output stream ends, updateProgress(Stage.COMPLETE) is called, which prints: Path 2 — AntExecutor (line 221) Immediately after the process finishes, progressReporter.printSummary(exitCode == 0, duration) is called It produces 2–3 lines In non-terminal mode (CI, Gradle log capture), printProgressLine() uses logger.lifecycle() instead of carriage-return
I made this changes : Into file ProgressReporter.kt
Then i review steps with label "Complete..." stage message Before: The information is not lost (the summary says "Complete"), but the style consistency is broken. Instead of blanket-skipping COMPLETE in processLine(), skip it only in updateProgress() for DETAILED and SIMPLE |
Description
Upgrade jyjeanne/dita-ot-gradle to latest version v2.8.3
How Has This Been Tested?
Bump version in docs build script, run default
disttask.