You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by ab...@apache.org on 2011/11/17 14:08:52 UTC

svn commit: r798815 - in /websites/production/celix: ./ content/celix/ content/celix/community/ content/celix/community/boardreports/ content/celix/community/contributing/ content/celix/documentation/ content/celix/examples/ content/celix/images/ conte...

Author: abroekhuis
Date: Thu Nov 17 13:08:51 2011
New Revision: 798815

Log:
Updated documentation

Added:
    websites/production/celix/content/celix/documentation/mapping.html
      - copied unchanged from r798814, websites/staging/celix/trunk/content/celix/documentation/mapping.html
Modified:
    websites/production/celix/   (props changed)
    websites/production/celix/content/celix/background-links.html
    websites/production/celix/content/celix/background.html
    websites/production/celix/content/celix/celix-links.html
    websites/production/celix/content/celix/celix.html
    websites/production/celix/content/celix/community/boardreports/boardreports.html
    websites/production/celix/content/celix/community/boardreports/reports.html
    websites/production/celix/content/celix/community/community.html
    websites/production/celix/content/celix/community/contributing/contributing.html
    websites/production/celix/content/celix/community/contributing/links.html
    websites/production/celix/content/celix/community/links.html
    websites/production/celix/content/celix/documentation.html
    websites/production/celix/content/celix/documentation/buildingandrunning-links.html
    websites/production/celix/content/celix/documentation/buildingandrunning.html
    websites/production/celix/content/celix/documentation/design.html
    websites/production/celix/content/celix/documentation/examples.html
    websites/production/celix/content/celix/documentation/memorypools.html
    websites/production/celix/content/celix/download-links.html
    websites/production/celix/content/celix/download.html
    websites/production/celix/content/celix/examples/helloworld-links.html
    websites/production/celix/content/celix/examples/helloworld.html
    websites/production/celix/content/celix/images/memory_pools.png
    websites/production/celix/content/celix/index.html
    websites/production/celix/content/celix/links.html
    websites/production/celix/content/celix/support/issuetracking.html
    websites/production/celix/content/celix/support/links.html
    websites/production/celix/content/celix/support/mailinglist.html
    websites/production/celix/content/celix/support/support.html

Propchange: websites/production/celix/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Nov 17 13:08:51 2011
@@ -1 +1 @@
-/websites/staging/celix/trunk:785476-796919
+/websites/staging/celix/trunk:785476-798814

Modified: websites/production/celix/content/celix/background-links.html
==============================================================================
--- websites/production/celix/content/celix/background-links.html (original)
+++ websites/production/celix/content/celix/background-links.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/background.html
==============================================================================
--- websites/production/celix/content/celix/background.html (original)
+++ websites/production/celix/content/celix/background.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/celix-links.html
==============================================================================
--- websites/production/celix/content/celix/celix-links.html (original)
+++ websites/production/celix/content/celix/celix-links.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/celix.html
==============================================================================
--- websites/production/celix/content/celix/celix.html (original)
+++ websites/production/celix/content/celix/celix.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/community/boardreports/boardreports.html
==============================================================================
--- websites/production/celix/content/celix/community/boardreports/boardreports.html (original)
+++ websites/production/celix/content/celix/community/boardreports/boardreports.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/community/boardreports/reports.html
==============================================================================
--- websites/production/celix/content/celix/community/boardreports/reports.html (original)
+++ websites/production/celix/content/celix/community/boardreports/reports.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/community/community.html
==============================================================================
--- websites/production/celix/content/celix/community/community.html (original)
+++ websites/production/celix/content/celix/community/community.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/community/contributing/contributing.html
==============================================================================
--- websites/production/celix/content/celix/community/contributing/contributing.html (original)
+++ websites/production/celix/content/celix/community/contributing/contributing.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/community/contributing/links.html
==============================================================================
--- websites/production/celix/content/celix/community/contributing/links.html (original)
+++ websites/production/celix/content/celix/community/contributing/links.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/community/links.html
==============================================================================
--- websites/production/celix/content/celix/community/links.html (original)
+++ websites/production/celix/content/celix/community/links.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/documentation.html
==============================================================================
--- websites/production/celix/content/celix/documentation.html (original)
+++ websites/production/celix/content/celix/documentation.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>
@@ -107,6 +108,7 @@
 <ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running Celix</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/documentation/buildingandrunning-links.html
==============================================================================
--- websites/production/celix/content/celix/documentation/buildingandrunning-links.html (original)
+++ websites/production/celix/content/celix/documentation/buildingandrunning-links.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/documentation/buildingandrunning.html
==============================================================================
--- websites/production/celix/content/celix/documentation/buildingandrunning.html (original)
+++ websites/production/celix/content/celix/documentation/buildingandrunning.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>
@@ -109,20 +110,46 @@ Requirements</p>
 <div class="codehilite"><pre>CMake (2.8.1)
 GNU Make (3.81)
 GCC (4.2.1)
-ZLib
-CUnit
 Celix sources
+Sub-project dependencies
+</pre></div>
+
+
+<p>Note: Currently the framework and the examples are in one large project, this results in required libraries which aren't used by the framework itself.
+The following is a list of libraries per sub-project:</p>
+<div class="codehilite"><pre><span class="n">Utils:</span>
+<span class="o">-</span> <span class="n">Apache</span> <span class="n">Portable</span> <span class="n">Runtime</span>
+<span class="o">-</span> <span class="n">CUnit</span>
+
+<span class="n">Framework:</span>
+<span class="o">-</span> <span class="n">Apache</span> <span class="n">Portable</span> <span class="n">Runtime</span>
+<span class="o">-</span> <span class="n">CUnit</span>
+<span class="o">-</span> <span class="n">ZLib</span>
+<span class="o">-</span> <span class="n">Utils</span> <span class="p">(</span><span class="n">Celix</span> <span class="n">sub</span><span class="o">-</span><span class="n">project</span><span class="p">)</span>
+
+<span class="n">Shell:</span>
+<span class="o">-</span> <span class="n">all</span> <span class="n">framework</span> <span class="n">dependencies</span>
+<span class="o">-</span> <span class="n">cURL</span>
+
+<span class="n">Remote</span> <span class="n">Services:</span>
+<span class="o">-</span> <span class="n">all</span> <span class="n">framework</span> <span class="n">dependencies</span>
+<span class="o">-</span> <span class="n">Jansson</span> <span class="p">(</span><span class="n">library</span> <span class="k">for</span> <span class="n">encoding</span><span class="o">/</span><span class="n">decoding</span> <span class="n">JSON</span><span class="p">)</span>
+<span class="o">-</span> <span class="n">Apache</span> <span class="n">Portable</span> <span class="n">Runtime</span> <span class="n">Utils</span>
+
+<span class="n">Paint</span> <span class="n">example:</span>
+<span class="o">-</span> <span class="n">all</span> <span class="n">framework</span> <span class="n">dependencies</span>
+<span class="o">-</span> <span class="n">GTK</span> <span class="p">(</span><span class="mf">2.14</span> <span class="ow">or</span> <span class="n">higher</span><span class="p">)</span>
 </pre></div>
 
 
 <h2 id="building">Building</h2>
 <p>Celix uses CMake to generate makefile. There are cmake scripts to build the libraries, but also to deploy created bundles to a named target.
-To start building and using Celix these makefiles have to be created.</p>
+To start building and using Celix these makefiles have to be created. CMake supports out-of-source builds, for Celix the build directory is used for this.</p>
 <div class="codehilite"><pre><span class="sr">//</span> <span class="n">First</span> <span class="n">extract</span> <span class="n">the</span> <span class="n">sources</span>
-<span class="n">tar</span> <span class="o">-</span><span class="n">xvzf</span> <span class="n">celix</span><span class="o">.</span><span class="n">tar</span><span class="o">.</span><span class="n">gz</span>
+<span class="n">svn</span> <span class="n">co</span> <span class="n">https:</span><span class="sr">//s</span><span class="n">vn</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">org</span><span class="sr">/repos/</span><span class="n">asf</span><span class="sr">/incubator/c</span><span class="n">elix</span><span class="sr">/trunk/</span> <span class="n">celix</span>
 <span class="n">cd</span> <span class="n">celix</span>
 
-<span class="sr">//</span> <span class="n">Create</span> <span class="ow">and</span> <span class="n">go</span> <span class="n">to</span> <span class="n">the</span> <span class="n">build</span> <span class="n">directory</span>
+<span class="sr">//</span> <span class="n">Create</span> <span class="ow">and</span> <span class="n">go</span> <span class="n">to</span> <span class="n">the</span> <span class="n">build</span> <span class="n">directory</span> <span class="n">to</span> <span class="n">be</span> <span class="n">able</span> <span class="n">to</span> <span class="k">do</span> <span class="n">an</span> <span class="n">out</span><span class="o">-</span><span class="n">of</span><span class="o">-</span><span class="n">source</span> <span class="n">build</span>
 <span class="nb">mkdir</span> <span class="n">build</span>
 <span class="n">cd</span> <span class="n">build</span>
 
@@ -131,39 +158,62 @@ To start building and using Celix these 
 </pre></div>
 
 
-<p>After generating the make files, the sources can be build. There are several build targets to build the libraries, deploy the bundles and package archives.</p>
-<div class="codehilite"><pre><span class="sr">//</span> <span class="n">Build</span> <span class="n">all</span> <span class="n">libraries</span>
-<span class="n">make</span>
-<span class="sr">//</span> <span class="n">Create</span> <span class="n">all</span> <span class="n">bundles</span> <span class="n">in</span> <span class="n">the</span> <span class="s">&quot;bundles&quot;</span> <span class="n">directory</span>
-<span class="n">make</span> <span class="n">bundles</span>
-<span class="sr">//</span> <span class="n">Create</span> <span class="n">all</span> <span class="n">targets</span> <span class="n">in</span> <span class="n">the</span> <span class="s">&quot;deploy&quot;</span> <span class="n">directory</span>
-<span class="n">make</span> <span class="n">deploy</span>
-<span class="sr">//</span> <span class="n">Create</span> <span class="n">archives</span> <span class="n">in</span> <span class="n">the</span> <span class="s">&quot;packages&quot;</span> <span class="n">directory</span>
-<span class="n">make</span> <span class="n">packages</span>
+<p>After generating the make files, the sources can be build. There are several build targets to build the bundles, deploy and package them.
+The following targets are available:
+    // Build all libraries, bundles and packages
+    make all  -&gt; build all libraries, bundles and packages</p>
+<div class="codehilite"><pre><span class="sr">//</span> <span class="n">Deploy</span> <span class="n">all</span> <span class="n">deployment</span> <span class="n">targets</span>
+<span class="n">make</span> <span class="n">deploy</span> <span class="o">-&gt;</span> <span class="n">deploys</span> <span class="n">all</span> <span class="n">deployments</span>
+
+<span class="sr">//</span> <span class="n">Build</span> <span class="n">a</span> <span class="n">single</span> <span class="n">bundle</span> <span class="p">(</span><span class="ow">and</span> <span class="n">its</span> <span class="n">dependencies</span><span class="p">)</span>
+<span class="n">make</span> <span class="p">{</span><span class="n">bundle_name</span><span class="p">}</span>
+
+<span class="sr">//</span> <span class="n">Deploy</span> <span class="n">a</span> <span class="n">singe</span> <span class="n">deployment</span> <span class="n">target</span> <span class="p">(</span><span class="ow">and</span> <span class="n">its</span> <span class="n">dependencies</span><span class="p">)</span>
+<span class="n">make</span> <span class="n">deploy_</span><span class="p">{</span><span class="n">deployment_name</span><span class="p">}</span> <span class="o">-&gt;</span> <span class="n">deploys</span> <span class="n">a</span> <span class="n">single</span> <span class="n">deployment</span> <span class="p">(</span><span class="ow">and</span> <span class="n">dependencies</span><span class="p">)</span>
+
+<span class="sr">//</span> <span class="n">Clean</span> <span class="n">the</span> <span class="n">entire</span> <span class="n">build</span><span class="p">,</span> <span class="n">including</span> <span class="n">deployment</span><span class="p">,</span> <span class="n">bundles</span><span class="p">,</span> <span class="n">libraries</span> <span class="n">etc</span>
+<span class="n">make</span> <span class="n">clean</span> <span class="o">-&gt;</span> <span class="n">removes</span> <span class="n">all</span> <span class="n">deployments</span><span class="p">,</span> <span class="n">bundles</span><span class="p">,</span> <span class="n">libraries</span> <span class="n">etc</span>
+
+<span class="sr">//</span> <span class="n">Build</span> <span class="n">a</span> <span class="s">&quot;framework.zip&quot;</span> <span class="n">file</span> <span class="n">with</span> <span class="n">the</span> <span class="n">framework</span><span class="p">,</span> <span class="n">headers</span> <span class="ow">and</span> <span class="n">selected</span> <span class="n">bundles</span>
+<span class="n">make</span> <span class="n">install</span><span class="o">-</span><span class="n">fw</span>
 </pre></div>
 
 
+<p>Also it is possible to enter sub directories of the build and run the build from there. So when running make from "build/shell" only the shell 
+(and dependencies) will be build. This is the same as running "make shell" in the build root.</p>
+<p>Note: The build files are recursive. If a target is build, all required dependencies are build (bundles, libraries etc).</p>
 <h2 id="bundles">Bundles</h2>
-<p>In Celix a bundle is a library packed in a zip file. Libraries are created using the standard CMake commands (add_library etc).
-The actual bundle is created using the "bundle" command.
-To export files (eg a header file describing the service), a package is created using the "package" command.</p>
-<div class="codehilite"><pre>add_library(bundleName SHARED sourcefile1 sourcefile2)
-include_directories(&quot;<span class="cp">${</span><span class="n">PROJECT_SOURCE_DIR</span><span class="cp">}</span>/includeDir&quot;)
-target_link_libraries(bundleName libraryName)
+<p>In Celix a bundle is a library packed in a zip file. A bundle is a top level build target and can be added using the following macro:</p>
+<div class="codehilite"><pre><span class="n">bundle</span><span class="p">(</span><span class="sr">&lt;bundle_name&gt;</span> 
+       <span class="n">SOURCES</span> <span class="n">source1</span> <span class="n">source2</span> <span class="o">...</span> <span class="n">sourceN</span> 
+       <span class="p">[</span><span class="n">DIRECTORIES</span> <span class="n">dir1</span> <span class="n">dir2</span> <span class="o">...</span> <span class="n">dirN</span><span class="p">]</span> 
+       <span class="p">[</span><span class="n">FILES</span> <span class="n">file1</span> <span class="n">file2</span> <span class="o">...</span> <span class="n">fileN</span><span class="p">])</span>
+</pre></div>
+
+
+<p>Include directories and link libraries can be defined using the standard CMake commands.
+The given examples are simplified for basic usage, see the CMake documentation for more information and advanced options.</p>
+<div class="codehilite"><pre><span class="n">include_directories</span><span class="p">(</span><span class="n">dir1</span> <span class="n">dir2</span> <span class="o">...</span><span class="p">)</span>
+<span class="n">target_link_libraries</span><span class="p">(</span><span class="sr">&lt;bundle_name&gt;</span> <span class="p">[</span><span class="n">lib1</span> <span class="p">[</span><span class="n">lib2</span> <span class="p">[</span><span class="o">...</span><span class="p">]]])</span>
+</pre></div>
+
 
-bundle(bundleName)
-package(bundleName FILES exportedHeader.h)
+<p>To export files (eg a header file describing the service), a package is created using the "package" command.</p>
+<div class="codehilite"><pre><span class="nb">package</span><span class="p">(</span><span class="sr">&lt;bundle_name&gt;</span> 
+        <span class="p">[</span><span class="n">DIRECTORIES</span> <span class="n">dir1</span> <span class="n">dir2</span> <span class="o">...</span> <span class="n">dirN</span><span class="p">]</span> 
+        <span class="p">[</span><span class="n">FILES</span> <span class="n">file1</span> <span class="n">file2</span> <span class="o">...</span> <span class="n">fileN</span><span class="p">])</span>
 </pre></div>
 
 
+<p>This can be used to create a package which contains the bundle and additional files (headers etc) needed to use the bundle in different projects.</p>
 <h2 id="targets">Targets</h2>
 <p>A named target is used to deploy a group of bundles and create a default configuration file.
 To create a target the following command is needed:</p>
-<div class="codehilite"><pre><span class="n">deploy</span><span class="p">(</span><span class="s">&quot;targetName&quot;</span> <span class="n">BUNDLES</span> <span class="n">bundle1</span> <span class="n">bundle2</span><span class="p">)</span>
+<div class="codehilite"><pre><span class="n">deploy</span><span class="p">(</span><span class="sr">&lt;target_name&gt;</span> <span class="n">BUNDLES</span> <span class="n">bundle1</span> <span class="n">bundle2</span> <span class="o">...</span> <span class="n">bundleN</span><span class="p">)</span>
 </pre></div>
 
 
-<p>A target is deployed to the build/deploy/{targetName} directory.</p>
+<p>A target is deployed to the build directory where the deploy macro is used. So if in <root>/examples a deploy macro is used, the deployment can be found in <root>/<build_root>/examples.</p>
 <h2 id="running">Running</h2>
 <p>After building a target, it can be run. To run a target a launcher is needed. This launcher is build as part of the standard Celix build, and is located in build/launcher.
 The launcher is a simple executable requiring a configuration file in which required bundles are listed.
@@ -181,6 +231,7 @@ Finally before the launcher can be execu
 
 <p>If the library path is set, the launcher can be started.</p>
 <p>{build_root}/launcher/launcher</p>
+<p>Note: for the provided examples a "run.sh" script is generated which takes care of setting up the library path.</p>
                     </div>
                     <div id="homeright">
                         

Modified: websites/production/celix/content/celix/documentation/design.html
==============================================================================
--- websites/production/celix/content/celix/documentation/design.html (original)
+++ websites/production/celix/content/celix/documentation/design.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>
@@ -128,7 +129,7 @@ So basically the pointer is merely used 
 <p>Java uses packages for the namespace of classes, and methods are grouped by class. In C there is no alternative. To 
 prevent name clashes, function names are prefixed with the name of the class defined in the specification.</p>
 <p>Function in C:</p>
-<div class="codehilite"><pre><span class="n">SERVICE_REGISTRATION</span> <span class="n">bundleContext_registerService</span><span class="p">(</span><span class="n">BUNDLE_CONTEXT</span> <span class="n">context</span><span class="p">,</span> <span class="kt">char</span> <span class="o">*</span> <span class="n">serviceName</span><span class="p">,</span> <span class="kt">void</span> <span class="o">*</span> <span class="n">svcObj</span><span class="p">,</span> <span class="n">HASHTABLE</span> <span class="n">properties</span><span class="p">);</span>
+<div class="codehilite"><pre><span class="n">celix_status_t</span> <span class="n">bundleContext_registerService</span><span class="p">(</span><span class="n">BUNDLE_CONTEXT</span> <span class="n">context</span><span class="p">,</span> <span class="kt">char</span> <span class="o">*</span> <span class="n">serviceName</span><span class="p">,</span> <span class="kt">void</span> <span class="o">*</span> <span class="n">svcObj</span><span class="p">,</span> <span class="n">HASHTABLE</span> <span class="n">properties</span><span class="p">,</span> <span class="n">SERVICE_REGISTRATION</span> <span class="o">*</span><span class="n">registration</span><span class="p">);</span>
 </pre></div>
 
 
@@ -137,6 +138,7 @@ prevent name clashes, function names are
 </pre></div>
 
 
+<p>More details about the mapping from Java to C can be found at <a href="/celix/documentation/mapping.html">Mapping</a></p>
 <h2 id="imported_and_exported_packages">Imported and Exported Packages</h2>
 <p>The OSGi Specification uses packages for importing and exporting service interfaces and additional types. As explained 
 before, C does not have packages, so it is not possible to export packages. Instead, services are exported and imported. 
@@ -146,20 +148,8 @@ available, they can be used.
 So it is up to the implementer of a service to define the struct and public types separately from the inner types of the 
 component. The public definitions can be published in a header file.</p>
 <h2 id="exception_handling">Exception Handling</h2>
-<p>OSGi uses exceptions to report errors and problems. To be able to handle this in C there are two options:</p>
-<ul>
-<li>
-<p>Return a status</p>
-<p>This requires that each method must return an integer which indicates the state. For returned pointers/values (OUT) 
-call-by-reference must be used.</p>
-</li>
-<li>
-<p>Use an exception handling interface for C</p>
-<p>There are several exception handling solutions available for C. They all introduce a try/catch mechanism. This makes 
-it possible to follow the OSGi spec more closely, without letting each function explicitly return a state. 
-(for example http://www.nicemice.net/cexcept/)</p>
-</li>
-</ul>
+<p>OSGi uses exceptions to report errors and problems. Celix return a status from every call. This requires that each method 
+must return an integer which indicates the state. For returned pointers/values (OUT) call-by-reference must be used.</p>
                     </div>
                     <div id="homeright">
                         

Modified: websites/production/celix/content/celix/documentation/examples.html
==============================================================================
--- websites/production/celix/content/celix/documentation/examples.html (original)
+++ websites/production/celix/content/celix/documentation/examples.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/documentation/memorypools.html
==============================================================================
--- websites/production/celix/content/celix/documentation/memorypools.html (original)
+++ websites/production/celix/content/celix/documentation/memorypools.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/download-links.html
==============================================================================
--- websites/production/celix/content/celix/download-links.html (original)
+++ websites/production/celix/content/celix/download-links.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/download.html
==============================================================================
--- websites/production/celix/content/celix/download.html (original)
+++ websites/production/celix/content/celix/download.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/examples/helloworld-links.html
==============================================================================
--- websites/production/celix/content/celix/examples/helloworld-links.html (original)
+++ websites/production/celix/content/celix/examples/helloworld-links.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/examples/helloworld.html
==============================================================================
--- websites/production/celix/content/celix/examples/helloworld.html (original)
+++ websites/production/celix/content/celix/examples/helloworld.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/images/memory_pools.png
==============================================================================
Binary files - no diff available.

Modified: websites/production/celix/content/celix/index.html
==============================================================================
--- websites/production/celix/content/celix/index.html (original)
+++ websites/production/celix/content/celix/index.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/links.html
==============================================================================
--- websites/production/celix/content/celix/links.html (original)
+++ websites/production/celix/content/celix/links.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/support/issuetracking.html
==============================================================================
--- websites/production/celix/content/celix/support/issuetracking.html (original)
+++ websites/production/celix/content/celix/support/issuetracking.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/support/links.html
==============================================================================
--- websites/production/celix/content/celix/support/links.html (original)
+++ websites/production/celix/content/celix/support/links.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/support/mailinglist.html
==============================================================================
--- websites/production/celix/content/celix/support/mailinglist.html (original)
+++ websites/production/celix/content/celix/support/mailinglist.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>

Modified: websites/production/celix/content/celix/support/support.html
==============================================================================
--- websites/production/celix/content/celix/support/support.html (original)
+++ websites/production/celix/content/celix/support/support.html Thu Nov 17 13:08:51 2011
@@ -69,6 +69,7 @@
 <li><a href="/celix/documentation.html">Documentation</a><ul>
 <li><a href="/celix/documentation/buildingandrunning.html">Building and Running</a></li>
 <li><a href="/celix/documentation/design.html">Design</a></li>
+<li><a href="/celix/documentation/mapping.html">Mapping</a></li>
 <li><a href="/celix/documentation/memorypools.html">Memory Pools</a></li>
 <li><a href="/celix/documentation/examples.html">Examples</a><ul>
 <li><a href="/celix/examples/helloworld.html">Hello World Example</a></li>