Technical Blog Of JackCHAN

June 4, 2010

Configue svn plugin in Eclipse/MyEclipse (3)

Filed under: eclipse, java, linux, myeclipse, svn, Technology — Tags: , , , , — kaisechen @ 5:44 am

Next, we need to set the ‘Enviroment variables’  ‘SVN_SSH’ in your desk machine.

1) Right click ‘mycomputer’, choice ‘Properties’, in ‘System Properties’, choice ‘Advanced’, click ‘Enviroment variables’.

2) in ‘System variables’, input ‘SVN_SSH’ value, then click ‘ok’

Now, we can begin to use svn plugin in eclipse/myeclipse

You can check in a new project into svn server or check out a existed project from svn server.

If check in a new project into svn server.

1) Chose the project, right click, and in popuped list, chose ‘Team’, then chose ‘Share Project….”

2) chose ‘SVN’

3)create a new repository location

4)Input the url:svn+ssh://jackchan@mycompany.com/svn/myproject/trunk/

5)Enter fold name

6)click Finish

If check out a existed project from svn server.

click File–>’Import…’ , chose ‘SVN’ , ‘checkout projects from SVN’, create a new repository location or use existing repository location, click ‘next’, select the folder to be checked out from SVN, then click ‘Finish’ button.

Because we have finished the ssh automation connection configure, the process of check out or check in will be finished automatically.

If the configue is fine, we should see svn plugin work normally.

Configue svn plugin in Eclipse/MyEclipse (2)

Filed under: eclipse, java, linux, myeclipse, svn, Technology — Tags: , , , , — kaisechen @ 5:12 am

After installing svn plugin in eclipse/myeclipse, we need to configue how to connect svn server.

The svn repository location is:

svn+ssh://jackchan@mycompany.com/svn/myproject/trunk/

Before connecting svn repository in eclipse/myeclipse, we need to configue Putty client to connect the svn server automatically.

How to configue Putty client to connect the svn server automatically? The important thing is producing a private key file.

1) login the svn server using your name (here  use jackchan),

then input below command in server:

ssh-keygen -b 2048 -t rsa -N happy1HAPPY1 -f jack.ppk
Generating public/private rsa key pair.

2) mv jack.ppk.pub .ssh/authorized_keys , the authorized_keys will be used as public rsa key file in server.

3) scp jack.ppk to your client machine, it will be used as private rsa key file in client.

4)open putty client,select ‘session’, input the hostname and click ‘save’

5)click ‘Data’ in putty,in ‘Auto-login username’ input your name(here is jack)

6)click ‘Auth’ in putty, in ‘Private key file for authentication’, load your private rsa key file

7)return session in putty, saves the session again.

8)in putty installation directory, run ‘pageant’

9)right click pageant icon in right-bottom at your desk, and choice ‘add key ‘

10) load your private rsa key file, and input your password, then ‘close’

11) close putty client, reopen it, and you will find you can login automatically the svn server now.


Configue svn plugin in Eclipse/MyEclipse (1)

Filed under: eclipse, java, linux, myeclipse, svn, Technology — Tags: , , , , , — kaisechen @ 2:25 am

How to connect svn Server?

I tried sliksvn, tortoisesvn.

Sliksvn don’t support too much protocal, such as svn+ssh.

Tortoisesvn is good as a svn client.

Both of them support command line. But my favorite IDE is eclipse/myeclipse, so i decide to install a svn client plugin.

There are two kind svn plugins .

(1) Eclipse Subversive – SVN Team Provider Project, Visit http://www.eclipse.org/subversive

(2)Subversion Native Library Adapter (JavaHL), Subclipse is an Eclipse team provider for the Subversion version
control system.  Visit http://subclipse.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/), includes SVNKit(http://svnkit.com/).

I installed both of them,Eclipse Subversive installs and uses easily, so i  just introduce how to install subversion.

Install subversion steps:

1) In myeclipse, click help–>Software Update –>Add/Remove Software …

2)click “Add”. Then in the opened window, click “Add Site..”.

input ‘http://subclipse.tigris.org/update_1.6.x’

3) click “OK”, click “next”, click “Apply”, the myeclipse will begin to install the plugin, and after finishing the install, it will remind to restart myeclipse.

Blog at WordPress.com.