Retail:Hardware Manager compilaton
This document describes how to compile the hardware manager and create the distribution module
There are two modules related with the Hardware Manager:
- org.openbravo.retail.poshwmanager.sources. This module contains the sources of the Hardware manager and build scripts.
- org.openbravo.retail.poshwmanager. This module contains the Hardware manager distribution created using the build script of the first module
The build script is based in Apache Ant and it is located in the folder project of the module org.openbravo.retail.poshwmanager.sources. This build script contains two main tasks:
- dist: This task compiles the Hardware Manager and creates all the distribution files. The distribution files are created in the folder module of the org.openbravo.retail.poshwmanager.sources module. It also creates a file named bin/rev.id with the Mercurial SCM version of the org.openbravo.retail.poshwmanager.sources module current parent.
- deploy: This creates the distribution file and deploys it to the module org.openbravo.retail.poshwmanager. To work properly, the two modules must be located as direct sons of the folder modules in the Openbravo sources folder.
From version RR16Q2 it is needed to add as argument of the ant command the installation folder of the java platform 1.7 used to compile. The parameter is -Dplatforms.JDK_1.7.home=<java7_home>.
To create and deploy the distribution files in a machine where java 1.7 is located in /usr/lib/jvm/java-7-oracle, go to the folder project of the module org.openbravo.retail.poshwmanager.sources and execute:
ant deploy -Dplatforms.1.7.home=/usr/lib/jvm/java-7-oracle
After receiving the BUILD SUCCESSFUL message, go to the module org.openbravo.retail.poshwmanager and verify there is a new distribution of the Hardware Manager created.