buildframework/helium/sf/doc/src/build.rst
author wbernard
Thu, 22 Jul 2010 17:09:34 +0300
branchhelium-9.0
changeset 619 f5b4d1b4622d
parent 587 85df38eb4012
permissions -rw-r--r--
Added tag helium-9.0.5 for changeset df88fead2976

===============
Building Helium
===============

Prerequisite
------------

Before using bld commands please make sure your *JAVA_HOME* environment variable is pointing to the required JDK.  
All the following operation must be run from the builder folder available on the root of helium source tree.


How to build Helium?
--------------------

The following sequence of command is showing you how to get Helium built and packaged up:

::
   
   > cd builder
   > bld build
   ....
   > bld -Dconfig=sf get-deps
   ...
   > cd ..
   > hlm version
   ... This should show the helium version ...
   > cd builder
   > bld -Dconfig=sf create-releasable


Building
--------

Run the following command on the route of your delivery `bld` or `bld -Dcomponent=<component_name>` to build only one component.
   
Cleaning
--------

To cleanup the generated files under each component just run `bld clean`
Removing the build temp folder run `bld clean`.
   
Testing
-------

To run all the testing (junit + antunit):

::
   
   > bld test


JUnit testing:
::
   
   > bld junit

AntUnit testing:
::
   
   > bld unittest


Using components inside Helium structure
----------------------------------------

Once you have been buidling and testing components you can then use them under Helium.
In order to get all Helium dependencies copied just run:
::
   
   > bld -Dconfig=<config> get-deps

Creating a deliverable package
------------------------------

In order to create a simplified delivery of Helium which contains only deliverable, run the following command:
::
   
   > bld -Dconfig=<config> create-releasable

   
How to get the list of target supported by the builder?
-------------------------------------------------------

::
   
   > bld -p