Linux CVS Server + JCVS-5.3.2 Client Distributed Development (3)

zhaozj2021-02-08  340

JCVS-5.3.2 Client

First, install JDK

1) Install WIN9X / 2000 J2SDK-1_4_0-RC-Win.exe

Add to "My Computer" right key "Properties" -> "Senior" à "Environment Variable" to "System Variable"

Variable name: java_home

Variable: C: / JDK (your JDK installation directory)

Variable name: ClassPath

Variables: C: / JDK / LIB; C: / JDK / JRE / LIB

Variable name: Path

Variables: C: / JDK / BIN; C: / JDK / JRE / BIN (added behind the PATH)

The installation is complete

2) Install Linux J2SDK-1_3_1-Linux-i386.bin

CHMOD 755 J2SDK-1_3_1-Linux-i386.bin

Unstope the compression package

./ j2sdk-1_3_1-linux-i386.bin

Directory processing

Ln -s JDK1.3.1 JDK

LN -s JDK / JRE JRE

Set $ ​​JAVA_HOME, $ ClassPath

VI / ETC / PROFILE

Join:

Java_home = / usr / local / jdk

Export java_home

Classpath = / usr / local / jdk / lib: / usr / local / jre / lib

Export ClassPath

PATH = $ PATH: / USR / local / jdk / bin: / usr / local / jre / bin

Note: The installation of JDK is over this

Second, install JCVS

1) JCVS is written in Java, so it can be used after unpacking.

2) Command line to start entering you to install JCVS directory CD JCVS-5.3.2 / binjavaw -jar jcvsii.jar This method is used for Windows, Linux, UNIX Like

3) Windows startup method "My Computer / Explorer" enters the JCVS-5.3.2 / BIN directory selection jcvsii.jar right à open mode ... In the "Program" list, select JavaW if not, choose "Browse ..." You install JDK / bin directory to find javaw.exe selection "Always open this file with the selected program" "OK", double-click JCVSII.jar.

Third, use / configuration method

1) JCVS will pop up a dialog box to configure some basic options to configure the default editor ENTER key: .ext.verb (eg .java.edit) This line means:. Extension. Action (name Event) The extension can be .txt / .java / .pl / .php / .c / .h / .cpp action can be open / edit one of the Command: Yes, when the EDIT event is triggered, Environment: Yes Command Environment (The directory where the order), I wrote .java.edit means starting notepad as the default editor while editing * .java file, Double Click Verb is the mouse Double-click the event, here I use Edit, when the user is in the project list When you double-click a file, open this file with Notepad. Configuring a temporary file directory, please create a directory named Temp, or you will change the Temp Directory and then Save.

2) Get files from the CVS warehouse: Test the CVS server We must first enable a project to develop this project (whitening is the code to the local code from the server) User name Your Linux system user password you Password Server uses users, but don't pass the PServer use user password mode cvs module your project name CVS Server your CVS server address, IP, Host, DomainNameCVS Repository CVS code warehouse is the root of the CVS server Checkout Directory on the CVS server The code download to the local location arguments can type the parameters on the CVS command line. The default is not the latest version, fill in -r release-patches-2, you can download Release-Patches-2, then the development will be in Release-2 The branch finally clicked "Checkout Module" appears in CHECKOUT WAS Completed SuccessFully Successfully CHECKOUT MODULE simultaneously appears: Checkout Module is only used when the project is enabled for the first time. In the future, use UpdateCommand Arguments as a CVS command line method CVS Entry showing all source programs of this item REV is a revised version number Modified is a modified date, and the time is right-click on the file in the cvs entry. CVS operation

Editing files Open file verification File file log file Tap File history update file (download the latest source from the server to the local) Submit file (upload to the server to the server) Lock file file unlock the backup file

3) Update / Submit File Every day we go to work, you should choose to enter the JCVS selection Update update once in your development work. When we modify the source program. When you are submitted to a CVS server, select the file menu: Selectionàcommit Enter some comments so that others know what you have done for this file, your operation is successful.

4) Add to workbench

For future use, we add this project to "Workbench", then enter JCVS, double-click "Workbench" list to quickly develop.

5) Creating a new project

CVS Module new project name

Next we also need to initialize the development environment of CVS. Suppose you want to develop in your D: / product / webmail directory, this is the original version, we now use import to put the original code IMPORT in this directory in the warehouse of the CVS server:

Pay attention to it:

Vendor Tag: Guangshang Label Release Tag: The release version, the version number, these two items. Import module after filling out, Import Module

6) The above method should be completed two steps, first create, then import.

Of course, we have better ways, step by step. Use only import can automatically create CVS Module when importing

User Name Your Linux System User Password Your password Server uses users, but don't pass code SSHSERVER Connect to the SSH Connection PSERVER CVS Module Your Project Name CVS Server Your CVS Server Address, IP, Host, DomainNamecvs Repository CVS The code repository is the root directory of the CVS server IMPORT DIRECTORY downloads the code on the CVS server to the local location arguments cvs command line.

7) Export source code You don't have to participate in the development of the module, just a version of the module, you can use your Linux system user password your Linux system user password, but do not pass code SSHServer uses users with users Password Mode CVS Module Your Project Name CVS Server Your CVS server address, IP, Host, DomainNameCVS Repository CVS Code Warehouse is the root of the CVS server Export Directory downloads the code on the CVS server to the local location arguments cvs command line Parameters, here must be filled, pay attention to the -R parameter I exported to Release-1

8) Init usually use, UNIX, FreeBSD, Linux ... After the CVS Server server is installed, the first use should be initialized first: user name must be the CVSROOT user initialization work, you will find it in CVS On the server, a cvsroot directory is created in the code warehouse, and you will find some files, suffix ".v". The development will never be the function of init.

Fourth, other and precautions

1) IMPORT DIRECTORY directory does not use the same directory with the Checkout Directory directory

2) CVS Server can use IP, domain name, computer name (NetBIOS name)

3) The above picture is inconsistent with the WinXP interface is a new function of JCVS-5.3.2.

4) Please keep the document complete

5) Quote Article "The concept of version control and the introduction of several version control tools" author is not detailed

6) JCVS Home Pagethe JCVS Home Page Will Keep You Abreast of New Releases, As Well as Point You to Download Locations.

Home address: http://www.9812.nethttp://www.kdeopen.comHttp://www.xaid.nethtp: //www.xuser.net

OICQ: 13721218

ICQ: 101888222

Author: Netkiller (Chen Jingfeng)

On Wednesday, January 30, 2002, "Linux CVS Server and JCVS Client for distributed development" Monday, July 22, 2002 "Linux CVS Server JCVS-5.3.2 Client for distributed development"

If there is any problem E-mail: Netkiller@9812.net

转载请注明原文地址:https://www.9cbs.com/read-647.html

New Post(0)