oasis-tcs / xliff-xliff-22

OASIS XLIFF TC: A repository designed for use in development of TC chartered work products and test suites
https://github.com/oasis-tcs/xliff-xliff-22
Other
10 stars 2 forks source link

[Task] Need to fix the file / folder casing #26

Closed mihnita closed 11 months ago

mihnita commented 11 months ago

Detailed Description

Some folders are use different case than the links to them. This works on file systems that are not case sensitive (for example Windows, some MacOS disks)

But merge fails on Linux and some MacOS disks (the macos disk initialization asks if you want a case sensitive file system or not).

So merge fails with:

modules/resourcedata/specification.xml
../../elements/resourcedata/resourceData.xml
java.io.FileNotFoundException: ~/third_party/xliff-22.mihnita/xliff-22/modules/resourcedata/../../elements/resourcedata/resourceData.xml (No such file or directory)
        at java.base/java.io.FileInputStream.open0(Native Method)
        at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:111)
        at java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86)
        at java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:189)
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:653)
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:150)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:861)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:825)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:247)
        at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:342)
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:206)
        at com.maxprograms.xml.Merger.parse(Unknown Source)
        at com.maxprograms.xml.Merger.recurse(Unknown Source)
        at com.maxprograms.xml.Merger.recurse(Unknown Source)
        at com.maxprograms.xml.Merger.parse(Unknown Source)
        at com.maxprograms.xml.Merger.recurse(Unknown Source)
        at com.maxprograms.xml.Merger.recurse(Unknown Source)
        at com.maxprograms.xml.Merger.run(Unknown Source)
        at com.maxprograms.xml.Merger.main(Unknown Source)

In xliff-22/ we have:

But modules/resourcedata/specification.xml includes things from ./../elements/resourcedata/ (lowercase "d", the folder uses uppercase "D")

mihnita commented 11 months ago

Complete report (resourceData folder only)

References to /elements/resourceData (uppercase "D"):

References to /elements/resourcedata (lowercase "d"):

References to /attributes/resourceData (uppercase "D"):

References to /attributes/resourcedata (lowercase "d"):

None

References to /modules/resourcedata (lowercase "d"):

None

References to /modules/resourceData (uppercase "D"):

None