-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Formalize extended attribute xml chars (#2)
* Created scenario to reproduce xml chars issue. * Added apache commons text dependency. Updated XMLUtils to use StringEscapeUtils to escape and unescape XML. Updated XmlDecomposer to rely on the XML bytes and unscape/escape XML chars for the formalized extended attributes. * Extended decompose scenario for special characters to all XML special chars. * Created special character scenario for compose of formalized attributes. Updated compose of formalize attribute to use getBytes i.s.o. getText, and apply unescape to count characters (just like at decompose side). * Added formalized attributes into the CR and CRLF composed and decomposed scenarios. * Added getLineSeparator method to FileContentAndCharset class. Refactored compose and decompose to use line separator from file for extended attributes. Updated new line handling scenarios to adjust length with right new-line chars. * Moved assembly of executable jar to build phase in workflow. * Refactored Executor main to catch exception itself and handle System exit code correctly. * Added steps for Cucumber to run PDC in separate process and check exit code. Added feature file for testing exit code. Fixed type in special characters feature file. * Updated release notes for version 1.6.1.
- Loading branch information
Showing
21 changed files
with
346 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 31 additions & 2 deletions
33
PowerDeComposer/src/main/java/com/xbreeze/xml/utils/FileContentAndCharset.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.