Google Code is Google’s hosting service for open source projects. It provides a Subversion repository for you to store your project’s code, and a Web page so other people can learn more about your project or browse the code online.
Creating a Google Code Project
To create a project, first go to the Google Code homepage (http://code.google.com/) and click the “Create a new project” link. Enter the project details, then click “Create project” to proceed to your project’s home page.
You’ll see a page with 5 tabs: Project Home, Downloads, Wiki, Issues, and Source. The Downloads section is where you’ll upload usable binary versions of your software, and the Issues section isn’t as useful unless your project has some active users who find bugs and want to report them. The Source section is where you’ll find the information needed to connect to the SVN repository from another program, like Eclipse.
Setting up Subversion in Eclipse
Eclipse does not come with a way to connect to Subversion servers, but there is a popular plugin called Subclipse that can do this. To install it, go to Help>Install New Software. Click the Add button, and enter Subclipse for the name and http://subclipse.tigris.org/update_1.6.x/ for the location. Change to the new repository that you just added, then click the checkbox next to Subclipse and click Next. Follow the prompts, and Subclipse should now be installed.
Importing a Project into Google Code
In the package explorer, right click the project that you want to import and click Team>Share Project. Choose SVN for the repository type, and then “Create a new repository location” on the next page. The URL is https://projectname.googlecode.com/svn/trunk/, where projectname is the short name that appears in your project’s web site URL. Now click Finish to perform the import. When prompted for a username and password, use your Google account’s email address and your generated Google Code password, which can be found at https://code.google.com/hosting/settings .
Your project will now be hosted on Google’s servers, and you’ll be able to interact with your Google Code repository just like any other Subversion repository.Tags: java