Development FAQ

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (1)

View page history

For detailed process description please see [this article|Building SevenHats-based project]

h3. Launching SevenHats-based application

To launch SevenHats-based application you should go through the following procedure:

* Put all platform bundles into a single folder. Let's call it {{platform}}.
* Put all application bundles into another folder. Let's call it {{bundles}}.
* Create configuration file for this launch using {{createConfig}} ant task (see more details [here|Ant Tasks]). Sample ant build configuration file looks as follows:
{code}
<project name="sevenhats.sample">
<property name="platform.folder" value="platform/" />
<property name="bundles.folder" value="bundles/" />
<property name="framework.file.path" value="${platform.folder}/org.eclipse.osgi_3.3.2.R33x_v20080105.jar" />
<property name="bundles.configpath" value="configuration/config.ini" />

<path id="classpath">
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
</path>

<taskdef name="createConfig" classname="org.sevenhats.util.ant.CreateConfigIniTask" classpathref="classpath" />

<path id="compiledBundles">
<fileset dir="${bundles.folder}">
<include name="*.jar" />
</fileset>
</path>

<path id="platformFolderPath">
<fileset dir="${platform.folder}">
<include name="*.jar" />
</fileset>
</path>

<target name="createConfiguration">
<createConfig bundlesfolderpath="compiledBundles"
platformfolderpath="platformFolderPath"
platformfolder="${platform.folder}"
dest="${bundles.configpath}"
defaultstartlevel="2"
framework="${framework.file.path}" />
</target>
</project>
{code}

* Launch framework with the following command:

{code}
java -Declipse.ignoreApp=true -Dosgi.noShutdown=true -Dorg.eclipse.equinox.http.jetty.http.port=8080 -classpath org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar org.eclipse.equinox.launcher.Main -console
{code}

where {{org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar}} is a eclipse launcher library (it may have different version: {{org.eclipse.equinox.launcher_1.0.1.R33x_vXXXXXXX.jar}})