Bookshelf Home | Contents | Index | Search | PDF |
Siebel Tools Reference > Repositories > Integrating with External Source Code Control Software >
Configuring the srcctrl.bat File
The srcctrl.bat batch file contains the sequence of commands to be executed in order to check the archived projects in to the source control system. The name of the archive file for the project to be checked in is specified as an argument to the batch file, in addition to other arguments. The syntax for the command line that executes the batch file is as follows:
SRCCTRL action dir comment_file project_file
The arguments for srcctrl.bat are shown in Table 62.
Srcctrl.bat executes once for each project, following the completion of repository check-in. It checks the archive file for the project into or out of the source control system. Srcctrl.bat is executed from a command line that is internally generated from the Siebel application software. You do not have access to the command line setup, and you cannot modify the parameter list.
The following batch file program code is taken from the standard srcctrl.bat file provided with Siebel applications, and is designed to work with Microsoft Visual SourceSafe. Comment lines have been removed. You need to customize the program code in this batch file, particularly if you are running source control software other than Microsoft Visual SourceSafe, or if the path is incorrect.
set PATH=C:\Program Files\DevStudio\Vss\win32\;%PATH%
set CHECKIN=%SOFTWARE% checkin
set CHECKOUT=%SOFTWARE% checkout
set OPTIONS=-i-y -y%SRC_USR%,%SRC_PSWD%
echo =======================srcctrl.bat========================== >> %LOGFILE%
echo Change local directory to %DIR% >> %LOGFILE%
echo Set %PROJECT% as the working folder at Source Control System >> %LOGFILE%
%SETPROJ% %PROJECT% >> %LOGFILE% 2>&1
if %ACTION%==checkout goto CHECK_OUT
if %ACTION%==checkin goto CHECK_IN
echo ============Check out file %FILE% from Source Control System============
if not exist %FILE% echo "New File" >> %FILE%
echo Add %FILE% in case it doesn't exist in Source Control System >> %LOGFILE%
%ADD% %FILE% %NON_COMMENT% %OPTIONS% >> %LOGFILE% 2>&1
echo Start checking out %FILE% from Source Control System >> %LOGFILE%
%CHECKOUT% %FILE% %NON_COMMENT% %OPTIONS% >> %LOGFILE% 2>&1
echo ============Check in file %FILE% into Source Control System============
echo Check in %FILE% into Source Control System >> %LOGFILE%
%CHECKIN% %FILE% %COMMENT% %OPTIONS% >> %LOGFILE% 2>&1
echo ===================End Of srcctrl.bat====================== >> %LOGFILE%
Table 63 explains the variables used in the srcctrl.bat batch file.
- Change the program code in the batch file to reflect the development environment
- Distribute to all of the developers at your site
These MS-DOS limitations exist in Windows 95 and 98:
- The default command-line character limitation is 127 characters. You can increase the global command-line character limit to its maximum by placing the following line in config.sys:
- The default environment space limitation is 256 bytes. You can increase it by placing the following line in config.sys:
shell=c:\command.com /p /e:2048
or by placing the following line in the [NonWindowsApp] section in the system.ini file:
2048 is the size of the new environment space, so you might specify a different value here.
Bookshelf Home | Contents | Index | Search | PDF |
Siebel Tools Reference Published: 20 October 2003 |