|
Introduction
This is basically a developer oriented tool. This tool is meant for converting the Projects, the resources of which has been changed. As of now, the only changed resource considered is MIB.
Purpose of the tool
There can be various instances you will be changing the resources. We will consider a common scenario, where the resource of a project is subject to change. Let us say you have created a Client Builder project with a specific MIB. Say, after sometime there was a need to make some changes in the MIB. Using a MIB editor, you will be able to modify the MIB easily and replace the old MIB with the modified MIB in the project. If you change the MIB alone in the project, the necessary changes required in the other parts of the project will not be done automatically. You need to do it manually. To overcome this rigorous task of doing it manually, Client Builder provides a tool called Resource Identification Convertor. As of now, the scope of the tool is limited (i.e. the only changed resource taken into consideration by the tool is MIB. Other files like tcs, class are not supported).
Description
The tool takes the modified MIB and the backup directory as the input. Before attempting any change in the project, the tool saves a copy of the project in the backup directory provided by you. Then the tool takes the modified MIB and makes the necessary changes in the project, wherever the change is effected.
Requirements
Projects should have been created from AdventNet Client Builder Version 4.4 beta or above.
It is mandatory that all the MIBs (including the modified MIBs) required by the project should be there in the <Client Builder Home>/mibs directory.
If the old version and the new version MIBs are in the same name (i.e. when the MIB file name has not changed) the old MIBs and XML file in the mib directory should be deleted and only new should be MIB be used.
How to use?
Invoke the Resource Identification Convertor tool (startResourceIdentificationConvertor.sh/bat) from the <Client Builder Home>/bin directory.
In the opening screen,
Enter the project file name, alternately you can use the browse (...) button (when clicked pops-up a file chooser) and select the .proj file from the file chooser.
Enter the directory name in the "Enter a folder to save the old Project" field to backup the project, alternately you can use the browse (...) button (when clicked pops-up a file chooser) and select the directory of your choice to be used as a backup directory (or create a new one) from the file chooser.
Click Next button to move to the next screen.
In the next screen, click the Add Resource button. When clicked pops-up a file chooser and select the the new resource mib/xml etc (the old version of which was used in the project) from the file chooser.
Click Finish button to convert the project.
Now the modified project is retained in the original location. Unmodified
project is available in the backup directory you have specified in the
dialog.
Limitations
Resource Identification Convertor cannot identify OID differences of columnar entries under a table.
Resource Identification Convertor checks only using the the name of each node in a MIB rather than using MIB Node
|