Setting Up Read-Only Access - Google Code

looneyvillestaticSoftware and s/w Development

Aug 15, 2012 (4 years and 10 months ago)

326 views

Accessing Team 997’s Code

What You Will Need



NetBeans

(
http://
NetBeans
.org/
)

o

If you don’t plan to edit the robot code, Java files can be opened in any text editor (e.g.
notepad) or another development environment (e.g.

Eclipse).



Tortoise SVN (
http://tortoisesvn.tigris.org/
)

o

Note that
NetBeans

also has functionality built
-
in for retrieving files from Team 997’s
Subversion repository on Google code.



For Write access you wi
ll need to be a project member on

T
eam 997

s Google code project at
https://code.google.com/p/team997robotics/
. As of this writing the administrators are Floyd
Moore and Nic Stevens.

Setting Up
Re
ad
-
Only Access

1.

Install Tortoise
SVN
.

2.

Optionally install
NetBeans
.

3.

Go to
https://code.google.com/p/team997robotics/
.

a.

If you ever forget this address you can do the following:

i.

Go to
http://code.google.com
.

ii.

Search for team997.

iii.

You may need to click on
Project Hosting

to see the 997 robotics page on the
list.

iv.

Click on the team997robotic project link.

4.

Click on the
source

tab.

5.

You’ll see something like “svn checko
ut

http
://team997robotics.googlecode.com/svn/

team997robotics
-
read
-
only”. The part you care about is the address
http
://team997robotics.googlecode.com/svn/
, so keep
this

web page open so you can copy it
.

Not
e

the address is http and not httpS. The S

is required
when you want
write access

and
requires a Google code

account

that is a project member
.

6.

Create an empty
folder

somewhere on your computer’s hard drive
. If you are using
NetBeans

to
view the code it is
best
to create the folder in the
NetBeans
Projects folder in your (My)
Documents folder. It’s also good to give it a descriptive folder name such as
team997re
adonly
.

7.

To get the code using Tortoise SVN:

a.

Right
-
click on the empty folder and select
SVN Checkout
. If you don’t see SVN Checkout,
reinstall Tortoise SVN.





b.

In the checkout dialog change the
URL of Repository

to
http
://team997robotics.googlecode.com/svn/
.

c.

Click
OK

on the dialog
.

d.

The SVN Checkout dialog should appear and you should see lots

of files being added to
the folder.

i.

At times you
may
get

an

error messages part way through getting files. It usually
works to right
-
click on the top level folder (formerly called empty folder) again
and select the
SVN Update

option.


8.

To get the code using
NetBeans
:

a.

Launch NetBeans.

i.

If you’ve already gotten th
e code using Tortoise SVN you should be able to just
open it.

b.

Go to the Team menu and access Team


Subversion

Checkout…

c.

You may be prompted to install SVN. Click
OK
.

d.

For the
Repository URL

input
http
://team997robotics.googlecode.com/svn/

.

e.

This is read
-
only access so make sure the user name and password are blank.

f.

Click
Next
.

g.

For
Local Folder

use the browse button to select the empty folder you created.

h.

Click
Finish
.

Setting Up Read and Write
Access

1.

Make sure you are a project member for the team997robotics project. If you are not, contact
one of the administrators (Floyd Moore or Nic Stevens) and send them your Google account e
-
mail address.

2.

Install Tortoise SVN.

3.

Optionally install NetBeans.

4.

Go to
https://code.google.com/p/team997robotics/
.

a.

If you ever forget this address you can do the following:

i.

Go to
http://code.google.com
.

ii.

Search for team997.

iii.

You may need to click on
Project Hosting

to see the 997 robotics page on the
list.

iv.

Click on the team997robotic project link.

5.

Click the
sign
in

link on the upper right and sign in.

This will require your Google account e
-
mail
address
and your Google account password. This does not use the Google Code password
acquired later

in this section
.


6.

Click on the
source

tab.

7.

You’ll see something like “
svn checkout
http
s
://team997robotics.googlecode.com/svn/

team997robotics
--
username nicholas.d.stevens@gmail.com
”. The part you care about is the
address
http
s
://team997robotics.googlecode.com/svn/
, so keep
this

w
eb page open so you can
copy it.

Not
e

the address is http
S and not http
. The S

is required when you want write access
and requires a Google code account that is a project member.

8.

Discover your Google Code password.

a.

From the
sources

tab click the link to

get your
googlecode.com password.

b.


You may need to click a button to generate your password.

c.

On the page you’ll see a password that looks something like
R2DzY8UP9rV9
. Yes, that’s
your password and you can’t change it to something easier to remember.

9.

Create an empty folder somewhere on your computer’s hard drive. If you are using NetBeans to
view the code it is best to create the folder in the NetBeansProjects folder in your (My)
Documents folder. It’s also good to give it a descriptive folder name s
uch as
team997read
AndWrite
.

10.

To get the code using Tortoise SVN:

a.

Right
-
click on the empty folder and select
SVN Checkout
. If you don’t see SVN Checkout,
reinstall Tortoise SVN.




b.

In the checkout dialog change the
URL of Repository

to
http
s
://team997robotics.googlecode.com/svn/
. It’s very important the address is http
S.

c.

Click
OK

on the dialog
.

d.

The SVN Checkout dialog should appear and you should see lots of files being added to
the folder.

i.

Your password may not be required at this point. If prompted, enter your
Google account e
-
mail address and the Google Code password. Do not enter
your normal Google account password.

ii.

At times you may get an error messages part way through getting files.

It usually
works to right
-
click on the top level folder (formerly called empty folder) again
and select the
SVN Update

option.

11.

To get the code using NetBeans:

a.

Launch NetBeans.

i.

If you’ve already gotten the code using Tortoise SVN you should be able to

just
open it.

b.

Go to the Team menu and access Team


Subversion

Checkout…

c.

You may be prompted to install SVN. Click
OK
.

d.

For the
Repository URL

input
http
s
://team997robotics.googlecode.com/svn/
.
It’s very
important the address is httpS.

e.

This is for read and write access, so enter your Google account e
-
mail address and the
Google Code password. Do not enter your normal Google account password.

f.

Click
Next
.

g.

For
Local Folder

use the browse button to select the empty folder you created.

h.

Click
Finish
.

G
etting

the Latest Code After Setting U
p Access

1.

Using Tortoise SVN:

a.

In Windows Explorer locate the folder you created for storing the code.

b.

Right
-
click and
SVN Update
.

2.

Using
NetBeans:

a.

Right
-
click on the project you want to update and select Subversion

Update.

Saving Files to Subversion

NOTE:

Bein
g able to work on the same file

in two places at once is one of the great features of Software
Configuration Management software like

Subversion. The issue is that these changes must be merged at
some point. Merging is a process that is not described in this document and should be done with care.

1.

Using Tortoise SVN:

a.

In Windows Explorer locate the folder you created for storing the code
.

b.

If there are any new files or folders go to them. Right
-
click on the new files and select
TortoiseSVN


Add.

c.

Right
-
click
on the files or folder you want to backup and select
SVN
Commit…


d.

Enter your Google account e
-
mail address and your Google Code pas
sword.

2.

Using NetBeans:

a.

Right
-
click on the
file, package, or
project you want to
save

and select
Subversion

Commit
.

b.

Enter a description of what has changed.

c.

Click
OK
.