Wednesday, July 28, 2010

VSS(Microsoft Visual Source Safe) and Eclipse Integration

VSS(Microsoft Visual Source Safe) and Eclipse Integration

Open VSS software right click on dashboard
Select get latest version select folder in which we want to get copied folder’s files suppose d:\\brworks and check recursive and build tree (override working folders) then click ok. We will get latest version of dashboard in d:\\brworks folder.

Close the VSS explorer

Open eclipse and create a new workspace
File->switch workspace select D:\brworks and click ok.

Then in this workspace go to File->New->Project select PHP->PHP Project

Give project name in project name text box project will also appear in project contents portion in directory which will be disabled it will be D:\brworks\dashboard
Then click finish.

Now dashboard folder will appear in navigator which can also be viewed by window->show view->navigator

Now right click on dashboard folder go to Team->share Project this will be shared from vss. Fill the entries (vss username, vss password vss mapped folder and vss working folder i.e. BR Website)and finish the task.

Now go to File->Properties->File synchronization sync d:/brworks from htdocs’s dashboard folder

1-Available synchronizing mappings will be VSS folder which can be add by clicking
Add Folder button
Add folder dashboard with checked text box.

2-Default target folder will be (htdocs folder which can be run on server)
C:\Program Files\xampp\htdocs\idk
Or
Y:\dashboard or v:\brickred(location is \\172.16.10.22\www\brickred) or v:\blog(location is \\172.16.10.22\www\blog)

Click ok button.

There are three locations
1-Work space folder (D://BRWorks)
2-Server Folder (which may be localhost (htdocs/dashboard)) or other server with mapping to our system (this is default target folder)
3-Other is on VSS which will be created by system admin department

Note: We can make more project in a wok space.
For example htdocs folder is the workspace and floder in side htdocs are projects like dashboard, Template_Design_New, Drupal etc.

there are some steps for working in dashboard.
1) Get latest version
2) Update Status
3) Check out
4) Check in with comment
We can add a new folder or file with right click on folder->new->folder or file.
Then add it to vss (Right click on file->Team->add to VSS)

Note: Main script is on VSS. We Copied the file from VSS to local folder (for example D:/brworks). Then sync it with development server which may be
C:\Program Files\xampp\htdocs\idk OR Y:\dashboard (map network drive of development server) in right click->properties->file synchronizationin default folder we give the development server path which is mapped using map network drive.

Chart for VSS implementation with synchronization:
sync local folder to development server (htdocs or other (Y:\dashboard))
^
|
|
VSS SERVER ----> Local Folder having script from VSS


for source jammer first to set default directory->get folder we will get folder from source jammer to local direcotry


Note: if not synch then right click on root folder and do force file synchronization

No comments:

Post a Comment