Change in ovirt-engine[master]: restapi: Add "--version-prefix" option to metamodel tools

juan.hernandez at redhat.com juan.hernandez at redhat.com
Thu Dec 17 11:50:31 UTC 2015


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Add "--version-prefix" option to metamodel tools
......................................................................


restapi: Add "--version-prefix" option to metamodel tools

This patch adds support for the "--version-prefix" option to the
metamodel tool. This option will be used in later patches to geneate
Java classes from the model with a prefix in the name. For example the
name of the class generated for the "Vm" type will be "V4Vm" in version
4 of the API and "V5Vm" in version 3 of the API. This way both classes
can be used in the server, without having to use long fully qualified
names.

Change-Id: Id1fd275cdac58c60652e0f62115a320e8cc1f2df
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M backend/manager/modules/restapi/interface/definition/pom.xml
M backend/manager/modules/restapi/metamodel/tool/src/main/java/org/ovirt/api/metamodel/tool/JavaNames.java
A backend/manager/modules/restapi/metamodel/tool/src/main/java/org/ovirt/api/metamodel/tool/PlainJavaNames.java
A backend/manager/modules/restapi/metamodel/tool/src/main/java/org/ovirt/api/metamodel/tool/Style.java
M backend/manager/modules/restapi/metamodel/tool/src/main/java/org/ovirt/api/metamodel/tool/Tool.java
A backend/manager/modules/restapi/metamodel/tool/src/main/java/org/ovirt/api/metamodel/tool/VersionedJavaNames.java
6 files changed, 239 insertions(+), 28 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved; Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/50521
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id1fd275cdac58c60652e0f62115a320e8cc1f2df
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list