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

Replace xjc with custom XSD Java code gen #1464

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

antvaset
Copy link
Contributor

@antvaset antvaset commented Dec 6, 2024

  • Add new cql.xsd-java-gen-conventions plugin that runs node Src/js/xsd-java-gen/generate.js.
  • generate.js reads the XSD files and generates Java classes with minimal imports and without annotations. Currently the input XSDs are hardcoded but should be read in from command line args.
  • Add new cql.xjc-temp-conventions plugin which does the same thing as cql.xjc-conventions but skips sourceSets and sourcesJar and outputs the generated Java classes to ...-xjc-temp. This allows us to generate the Java classes in place (in the same Java package) using the new method and have the original code also made available for comparison.
  • Enable cql.xsd-java-gen-conventions and cql.xjc-temp-conventions for the elm and model modules.

Copy link

github-actions bot commented Dec 6, 2024

Formatting check succeeded!

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.

1 participant