Processing all files in a directory using the net.sf.saxon.Transform command: fails on MAC because of .DSStore files
Attempting to process all the files in an input directory (using the Transform command with
-s:my/directory) fails on MAC because the directory contains hidden
.DSStore files, which are not XML and therefore cause a fatal error. There appears to be no way to have these files ignored. Presumably this could also affect the use of
collection() to process all files in a directory, though I've never encountered it as a problem.
#1 Updated by Michael Kay 9 months ago
Discussed in team meeting. We agreed that a short-term fix would be to ignore "hidden" files (which probably means files starting with "." on Linux/MAC, files with the "hidden" property on Windows). Longer term, extending the command line syntax to allow a list of filenames, a glob, or a regex, might be a possibility.
#2 Updated by Michael Kay 9 months ago
- Status changed from New to Resolved
- Priority changed from Low to Normal
- Applies to branch 10, trunk added
- Fix Committed on Branch 10, trunk added
Added a JUnit test commands/TransformTests/testDirectory.
A file is now skipped if
File.isHidden() returns true. This has the required effect. Tested (so far) only on Mac.
Please register to edit this issue