-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Rewrite code of ModsExporter #9682
Comments
Hi! I am a uni student and would like to attempt this. |
This is actually a much needed change, as we are currently struggling with having too many dependencies and scratching the limit. Thank you for choosing this issue! |
I am glad to be of assistance. I am not very familiar with either JAXB or StAX, so I am reading some documentation to familiarize myself. Other than that, are there other pointers on where to begin for this task? |
Just look at the other implementations that have been already converted |
The deep link to the changed code is at #9673. Together with the PR, the howto linked at https://mkyong.com/java/how-to-write-xml-file-in-java-stax-writer/ should be enough to get started. |
The class org.jabref.logic.exporter.ModsExporter uses JAXB, but can be rewritten using a StAX-Writer and thus getting rid of a JAXB dependency. (Please also set the correct namespaces!).
Example:
Old code:
New code:
Similar to #9673, the gradle build target
generateModsSource
can be removed and thexsd
file be removed from the source repository.The text was updated successfully, but these errors were encountered: