Skip to content

Enforce Linux Style End-of-Line (LF instead of CRLF) in all XML files for windows environment. #13770

@kalpadiptyaroy

Description

@kalpadiptyaroy

Detected in issue #11816 within PR #13696.

When we perform mvn clean verify then XdocsPagesTest gets executed. Within the test the following pre-condition causes regeneration of .xml files.

Refer to this line.

@BeforeAll
public static void generateXdocContent() throws Exception {
XdocGenerator.generateXdocContent();
}

What is happening now?
The problem is when the above line gets executed this regeneration happens and in an windows environment the End-Of-Line used is CRLF by default. This causes a difference to git version control and the build process fails - due to constraints of validation.cmd.

What is expected?
We have to find out a way to make sure when .xml files are regenerated they have LF End-Of-Line instead of CRLF so that no further git diff arises and post execution of test cases the validation.cmd doesn't end up with an error.

[Update] - Issue has been raised at Apache Doxia for ability to configure new-line character. https://issues.apache.org/jira/browse/DOXIA-707

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions