Ori Liel has submitted this change and it was merged. Change subject: restapi: Add ability to extract rsdl.xml from jar ......................................................................
restapi: Add ability to extract rsdl.xml from jar A previous patch moved RSDL generation to build time. This patch adds a class with a main() method which copies rsdl.xml, rsdl_gluster.xml and api.xsd to the desired directory. The idea behind this, is that sdk generation will be done completely automatically by maven goals. To copy the files mentioned above (to a directory named, for example, '/service') - add the following configuration to pom.xml of any project that depends on restapi-definition: <profile> <id>build-rsdl</id> <activation> <activeByDefault>true</activeByDefault> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <executions> <execution> <phase>compile</phase> <goals> <goal>java</goal> </goals> <configuration> <mainClass>org.ovirt.engine.api.rsdl.RsdlIOManager</mainClass> <arguments> <argument>/service</argument> </arguments> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> Change-Id: I11834dac081e17c702c614ae923575a3debba6eb Signed-off-by: Ori Liel <ol...@redhat.com> --- M backend/manager/modules/pom.xml A backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/rsdl/RsdlIOManager.java M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/rsdl/RsdlManager.java M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendApiResource.java 4 files changed, 77 insertions(+), 11 deletions(-) Approvals: Ori Liel: Verified; Looks good to me, approved Juan Hernandez: Looks good to me, but someone else must approve -- To view, visit http://gerrit.ovirt.org/24385 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I11834dac081e17c702c614ae923575a3debba6eb Gerrit-PatchSet: 6 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Ori Liel <ol...@redhat.com> Gerrit-Reviewer: Juan Hernandez <juan.hernan...@redhat.com> Gerrit-Reviewer: Ori Liel <ol...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches