Avg. Rating 5.0

Problem

I want to collaborate with other developers on a Flex Builder Project

Solution

We will use Subclipse, an SVN plugin for Flex Builder 3 (Eclipse) and set up and connect to a SVN repository hosted on Google Code

Detailed explanation

We begin by installing Subclipse inside Flex Builder. To do so, goto Help -> Software Updates -> Find and Install ... Select "Search for new features to install"

Click the "New Remote Site" button and set Name to "Subclipse" and URL as "http://subclipse.tigris.org/update_1.2.x"(For Flex Builder 3) and select "Ok"

In the "Updates" menu that appears, ensure that only "Subclipse Plugin" is checked and click "Next" and then "Finish"

We shall first upload our Flex project that we have on the local system to the repository on Google Code. Note that the URL for your Google Code project should be of the form- https://PROJECTNAME.googlecode.com/svn/trunk and for the credentials (these will be asked in order to access the repository), your username shall be the same as gmail username, and for the password go to your GC home page and select the "Profile" menu and then click the "Settings" tab to find your password - this is not the same as your gmail password.

Back in Flex 3, select Window -> Perspective -> Other.. and select the "SVN Repository Exploring" perspective (this will not be available if Subclipse has not been correctly installed)

In the "Add new SVN Repository" view,  enter the URL as described above. You will now be prompted for the authentication details, again described in Step 4. Your repository is now set up.

Switch back to the "Flex Development" Perspective and in the Project Explorer, right click on a project and select Team -> Share Project...

Next, select to use the repository location you just added. You now get options to choose the folder on the repository or make a new folder for your Flex project. Click finish and your project will be commited to the repository.

For the other developers to import the project, they have to install Subclipse and then in Flex Builder, Select Import and open "Other" to find "Checkout Projects from SVN" and repeat the aforementioned steps.

Here are some screenshots of Sublclipse to familiarise you with the SVN functionalities.

If you are new to SVN, you should take a look at this tutorial


+
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Report abuse

Related recipes