Juan Hernandez has submitted this change and it was merged. Change subject: codegen: Use XSD instead of classpath scanning ......................................................................
codegen: Use XSD instead of classpath scanning Currently the code generator scans the classpath to find the set of entity classes generated by the xjc compiler. This means that the generation has to be done in several steps: first generate the entities, then compile the result, then generate the decorators and the entry point, then compile again. These steps are currently managed by the generator itself, which calls Maven to do the intermediate compilation. To avoid this issue this patch changes the generator so that it extracts the set of entity classes from the XSD, using XSOM to parse it. Change-Id: Ia9c7146b477d421ad296cef376cef7c08d051ad8 Signed-off-by: Juan Hernandez <juan.hernan...@redhat.com> --- M ovirt-engine-sdk-java-codegen/pom.xml M ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/Main.java M ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/common/AbstractCodegen.java D ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/compile/CodeCompiler.java D ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/compile/ICompiler.java M ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/rsdl/ApiCodegen.java M ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/rsdl/RsdlCodegen.java D ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/utils/ReflectionHelper.java 8 files changed, 46 insertions(+), 296 deletions(-) Approvals: Juan Hernandez: Verified; Looks good to me, approved -- To view, visit http://gerrit.ovirt.org/22992 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ia9c7146b477d421ad296cef376cef7c08d051ad8 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine-sdk-java Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <juan.hernan...@redhat.com> Gerrit-Reviewer: Juan Hernandez <juan.hernan...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches