Install CDB in a location that is outside the epoc32 tree as outlined in Steps to install CDB. Avoid installing CDB in a location within epoc32 tree for the following reasons:
it dirties your environment from CBR perspective
CDB installation will be removed when cleanenv
operation
is performed.
Install the CDB tool to the root of the drive containing the epoc tree.
In this example, it is copied to the J
drive. Having installed,
the root of this drive will look like this:
By default, this location is not in your PATH
, therefore add
'\
' (or J:\
) to your path, this executes the copy of
CDB tool in the drive in which you are currently working.
Set the following properties in the .properties
file:
|
The location of the properties file is changed, communicate this change
to CDB through command line. To install CDB permanently, modify the
cdb.pl
file as follows:
<< system "$toolsdir\\cdb\\cdb.exe -e $epocroot @ARGV\n";
>> system "$toolsdir\\cdb\\cdb.exe -e $epocroot -p \\cdb\\cdb.properties @ARGV\n";
Now you can call CDB like this:
cdb <command>
You can also call CDB using the following command:
cdb –p cdb\cdb.properties <command>
CDB can be installed once in any of the drive and can be used from other
drives. This is done by maintaining a separate cdb.properties
file
for each epoc tree. Change the following properties in each of the file:
|
For example, if you wish to use CDB from M
drive (remember
that it is configured for J
drive), you would create a copy of the
cdb.properties
file in some location, set its values to suit the
J
drive, and save it. This file can be saved as
j.properties
. Then, when running the CDB, use the –p
flag to set the relevant properties in a properties file.