Skip to content

Conversation

@lucianbc
Copy link
Member

Delete residual xsd files after parsing the XSD schemas. Before, these files were left on the disk because the Java built-in deleteOnExit does not delete non-empty directories.

This change also simlifies the code by removing the ResourceManager class and parsing all the schemas on initialization, deleting the temp files as soon as possible.

Delete residual xsd files after parsing the XSD schemas. Before, these
files were left on the disk because the Java built-in deleteOnExit does
not delete non-empty directories.

This change also simlifies the code by removing the ResourceManager
class and parsing all the schemas on initialization, deleting the temp
files as soon as possible.
@lucianbc lucianbc requested a review from JuliaSamartseva July 25, 2025 09:56
} catch (SAXException e) {
throw new RuntimeException(e);
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can throw other exception types, why are we catching this particular one? Could we leave as it was, as we were relying on that to identify whether the schema couldn't be created?

@lucianbc lucianbc closed this Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants