Examples

The examples below are for branding Redcell as NEC CX2900-NM. This driver is only an illustration. When customizing the installation and branding of your own component or device driver, you must replace the driver name in this example with the component name or driver name being branded. Three files used are neccx.properties, neccx.install and rc.settings.txt.

neccx.properties

This file is in the drivers' lib\ directory.

product.dependencies=ddbase

redcell.frameblobname=com.dorado.devicedriver.neccx.images.cx-icon_16x16

redcell.loginproductblobname=com.dorado.devicedriver.neccx.images.login_top_88x492

redcell.loginbandblobname=com.dorado.devicedriver.neccx.images.login_btm_51x533

redcell.report.branding.image=com.dorado.devicedriver.neccx.images.nec_logo_150x50

neccx.install

In the driver's meta-inf\ directory

<?xml version="1.0" ?>

<device-driver>

 

<name>@@@@NAME@@@@</name>

<version>@@@@BUILD_VER@@@@</version>

<type>Deployed</type>

<propertydef name="component.basedir" value="neccx"/>

<propertydef name="component.basepath" value="${oware.user.root}/owareapps/neccx"/>

<install>

<dbupdate>

<updater>com.dorado.devicedriver.base.install.DeleteAction</updater>

<class-1>RedCell.Config.TopologyClass</class-1>

<attribute-1>ClassName</attribute-1>

<pattern-1>*NECCX*</pattern-1>

</dbupdate>

 

 

<!-- *##### RegisterDriver Action #####* -->

<dbupdate>

<updater>com.dorado.devicedriver.base.install.RegisterDriver</updater>

<dir>neccx</dir>

</dbupdate>

<!-- *******************************

* property & jar files *

******************************* -->

<copy>

<from>lib/</from>

<to>${component.basepath}/lib/</to>

</copy>

<copy>

<from>db/</from>

<to>${component.basepath}/db/</to>

</copy>

<copy>

<from>mibs/</from>

<to>${component.basepath}/mibs/</to>

</copy>

<copy>

<from>server/conf/</from>

<to>${component.basepath}/server/conf/</to>

</copy>

 

<!-- ..................................

RedCell UI Seed Data

(must follow the copy statements)

.................................. -->

<import>

<file>db/rc.settings.txt</file>

<importer>SYSTEM</importer>

</import>

 

<!-- **************************************

* seeding for non redcell components *

************************************** -->

...(the file continues)

rc.settings.txt

In the driver's db\ directory. It is seeded during installation. See Seeding below.

redcell.sysframeimage=com.dorado.devicedriver.neccx.images.nec_logo_150x50

redcell.launchhomepage=http://www.nec.com -- allows users to click the NEC image to open a browser with that page loaded

redcell.aboutform=com.dorado.neccx.devicedriver.branding.NECAboutForm