Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ph-schematron-maven-plugin: xmlDirectory with subdirectory structure breaks SVRL export #37

Closed
philippn opened this issue May 2, 2017 · 1 comment
Assignees
Labels

Comments

@philippn
Copy link

philippn commented May 2, 2017

Hiya,

when pointing xmlDirectory to a directory that includes a directory structure with XML files, outputting the SVRL files using the svrlDirectory parameter does not work. It breaks with FileNotFoundException because the directories are non-existant in the svrlDirectory.

A simple solution is to add:

aSVRLFile.getParentFile().mkdirs();

directly after

// Save SVRL
final File aSVRLFile = new File (svrlDirectory, sXMLFilename + ".svrl");

Thanks in advance and kind regards,
Philipp

@phax phax self-assigned this May 2, 2017
@phax phax added the bug label May 2, 2017
@phax
Copy link
Owner

phax commented May 2, 2017

Thx for pointing this out - pretty straight forward solution :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants