This section describes the source control features available within Netscape Application Builder.
About Source Control
Configuring Source Control
Invoking Commands from the Main Menu
Sharing Settings Among Programmers
Prevents editing conflicts.
With source control, you can check out a file and gain exclusive rights to edit it. Other developers can still view the file, but only you can change it.
Makes compiling and building easier.
When you build a project, you can ensure that you use the latest version (or the correct version) of all files.
Reduces storage space.
Changes between file versions are stored as deltas, not as complete files. This also avoids the potential confusion of keeping separate files for each version.
Specify which source control utility to use.
Map the source control menu items in Netscape Application Builder to corresponding command lines in the source control utility.
CVS
PVCS
Microsoft Visual Source Safe
A user-defined utility
vlog %b%e
Relationship of Text Fields to Source Control Submenu
Default Values for Command Lines
Macro Definitions
it cannot request input; for example, it cannot prompt for a value or option
it assumes that the command is run from the directory that contains the file
Source file is c:\nab\apps\onlinebank\UpdateCust.java
Project file is c:\nab\apps\projects\OnlineBank.gxm
Set youir CVSROOT environment variable.
set CVSROOT=:pserver:user@cvsserver:/m/src
Change to a directory in which CVS is already set up and add the application directory tree at each level.
cd D:\cvssource mkdir Netscape cvs add Netscape cd Netscape mkdir Server4 cvs add Server4 cd Server4 mkdir NAS cvs add NAS cd NAS mkdir cdx cvs add cdx
From the command line, add a single file into your application directory.
cd cdx cvs add dummy.txt
From the top-level, commit the file, which causes CVS to create a repository tree.
cd D:\cvssource cvs commit
From your CVS client tree, such as D:\cvssource, copy the applications directory, such as Netscape (and includes the file you just added), to your server directory; for example, D:\Netscape.
Launch the Visual SourceSafe Explorer.
Right-click on the root folder ($/) and select "Create Project."
Specify the name of your Visual SourceSafe project; for example, NABApps, and click OK.
Right click on "Set Working Folder."
Specify or navigate to the directory that contains your Netscape Application Builder projects; for example, D:\Netscape\Server4\NAS\Apps.
For each Netscape Application Builder project you want to place under source control, right-click on your Visual SourceSafe project, select "Create Project" and specify the name of the Netscape Application Builder project.
For example, if you specifed D:\Netscape\Server4\NAS\Apps in the previous step, when you specify cdx, D:\Netscape\Server4\NAS\Apps\cdx becomes the working folder.
; Your current SourceSafe project Project = $NABApps Force_Prj = Yes ... [$/NABApps] Dir (your_host_machine)=D:\Netscape\Server4\NAS\Apps
Open the Netscape registry editor by typing regedit from a DOS command prompt.
The registry editor appears, and it displays the keys and values that apply to the Netscape Application Server.
Locate the key denoted by the path HKEY_LOCAL_MACHINE\SOFTWARE\Netscape\Application Builder\4.0\SCCS
This key contains the command-line settings for source control in Netscape Application Builder.
Select the SCCS folder.
From the Registry menu, choose Export Registry File.
Specify the name and location of the file.
Do not specify a suffix. The .reg suffix is automatically appended to the file name.
Double-click the previously exported .reg file.
From a command prompt, run the command regedit filename, where filename is the previously exported .reg file.