NCAR / crux

Command line XML schema and Schematron validator
Other
8 stars 4 forks source link

XML path is somehow dependent on filename case on Windows #1

Closed lcdunstan closed 7 years ago

lcdunstan commented 7 years ago

Works:

C:\devl\IWXXM>java -jar crux-1.2.jar -c iwxxm-schema-bundle-2.0\catalog.xml -s iwxxm-schema-bundle-2.0\rule\2.0\iwxxm.sch c:\devl\IWXXM\IWXXM-2.0-schema-examples\iwxxm\2.0\metar-A3-1.xml
Validating file c:\devl\IWXXM\IWXXM-2.0-schema-examples\iwxxm\2.0\metar-A3-1.xml against XML schema using the following catalog(s): iwxxm-schema-bundle-2.0\cata
log.xml
Validating file c:\devl\IWXXM\IWXXM-2.0-schema-examples\iwxxm\2.0\metar-A3-1.xml against Schematron rules (iwxxm-schema-bundle-2.0\rule\2.0\iwxxm.sch)
Validation successful, took 1585 ms

Does not work:

C:\devl\IWXXM>java -jar crux-1.2.jar -c iwxxm-schema-bundle-2.0\catalog.xml -s iwxxm-schema-bundle-2.0\rule\2.0\iwxxm.sch c:\devl\iwxxm\IWXXM-2.0-schema-examples\iwxxm\2.0\metar-A3-1.xml
No such file: c:\devl\iwxxm\IWXXM-2.0-schema-examples\iwxxm\2.0\metar-A3-1.xml

The only difference is in the case of the directory name.

lcdunstan commented 7 years ago

Apparently it requires scanner.setCaseSensitive(false) on Windows