
Hitachi Embedded Workshop User Manual
125
To modify an existing mapping:
1. Select [Version Control->Configure…]. The dialog shown in figure 8.1 will be displayed. Select the
“Projects” tab, the dialog shown in figure 8.7 will be displayed.
2. Select the mapping to be modified from the “Version control directory mappings” list and then click the
“Modify…” button. The dialog shown in figure 8.8 will be displayed.
3. Make the necessary changes to the two directories and then click “OK” to confirm the edits.
To remove an existing mapping:
1. Select [Version Control->Configure…]. The dialog shown in figure 8.1 will be displayed. Select the
“Projects” tab, the dialog shown in figure 8.7 will be displayed.
2. Select the mapping to be removed from the “Version control directory mappings” list and then click the
“Remove” button.
Once the mappings have been defined you can use the “Version control directory” placeholder, $(VCDIR), to
represent the directory in which the project file is stored. Consider the scenario shown in figure 8.9. Here are
three directories, which are mapped from a shared version control drive (X:\) to a local drive where the
development is being done (C:\).
C:\work\application\project1
X:\vc\sw\app\project1
C:\work\application\src
X:\vc\sw\app\src
C:\work\shared
X:\vc\sw\shared
LOCAL - C:\
NETWORK - X:\
Mapped To
Figure 8.9: Example Mappings
Now let’s imagine that a version control executable has been selected which uses a –GET command to obtain a
read only copy of a file. In order to get all of the files in a project we need to use the following command:
-GET “$(VCDIR)\$(FILENAME)”
When the HEW executes the command for a given project file, it will replace $(VCDIR) for the equivalent
version control directory in the file mapping.
For example, suppose FILE1.C is located at:
c:\work\application\project1\file1.c
If the get command is applied to FILE1.C then:
(1) X:\vc\sw\app\project1 is substituted for $(VCDIR) as this is the version control directory mapping for
c:\work\application\project1.
(2) FILE1.C is substituted for $(FILENAME).