<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Get Source Code</title><link>https://sourceforge.net/adobe/flexsdk/wiki/Get%2520Source%2520Code/</link><description>Recent changes to Get Source Code</description><atom:link href="https://sourceforge.net/adobe/flexsdk/wiki/Get%20Source%20Code/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 15 Mar 2012 18:13:18 -0000</lastBuildDate><atom:link href="https://sourceforge.net/adobe/flexsdk/wiki/Get%20Source%20Code/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Get Source Code modified by SourceForge Editorial Staff</title><link>https://sourceforge.net/adobe/flexsdk/wiki/Get%2520Source%2520Code/</link><description># Get source code
The Flex SDK is one of several open-source projects in a &lt;a href="http://subversion.tigris.org/" title="None" _TARGET="_blank"_&gt;Subversion&lt;/a&gt; repository hosted by Adobe. Subversion is an open-source revision control system used for many open-source projects. If you haven't used it before, please see the official &lt;a href="http://svnbook.red-bean.com/" title="None" _TARGET="_blank"_&gt;documentation&lt;/a&gt;. For a high-level overview of source control concepts, see &lt;a href="http://betterexplained.com/articles/a-visual-guide-to-version-control/" title="None" _TARGET="_blank"_&gt;A Visual Guide to Version Control&lt;/a&gt;. 

There are two ways to access the repository. You can use any web browser to see the structure of the project and view the latest version of each file. However, you must use a Subversion client to perform more complex operations such as reviewing the commit log, looking at older revisions or diffs, or checking out your own working copy to build and test.

## Web browsing

To browse the Flex SDK project, go to http://opensource.adobe.com/svn/opensource/flex/sdk/

Within the project are directories named `trunk`, `branches`, and `tags`, as is standard for Subversion projects.

The trunk is work-in-progress on the version under current development, which is currently Flex 4. The trunk should build and pass basic tests but may be unstable and unsuitable for use.

Branches are created when projects need to stabilize code for a release. The Flex 3 code can be found in `branches/3.x`.

Tags record the code that shipped as a specific release, or other milestones in a project. The code which was used to build the 3.0.0.477 release of the Flex SDK has been tagged as `tags/3.0.0.477`.

This site often uses the word &amp;#8220;branch&amp;#8221; as shorthand for &amp;#8220;trunk, branch, or tag&amp;#8221;.

To understand what's where inside each branch, see [SDK Organization](https://sourceforge.net/adobe/flexsdk/wiki/SDK%20Organization/).

You can access directories and files inside the project by appending them onto the project's URL. For example, to browse the `frameworks` directory in the `trunk` of the Flex SDK, you can go directly to &lt;http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks&gt;.

## Installing a Subversion client

To get your own working copy of the source code, you'll need a Subversion client. A client will also let you see the repository structure, look at the revision history of any file or directory, diff two versions of a file, etc. 

The SDK team has had good experience with &lt;a href="http://tortoisesvn.tigris.org/" title="None" _TARGET="_blank"_&gt;TortoiseSVN&lt;/a&gt; on Windows and &lt;a href="http://www.syntevo.com/smartsvn/index.html" title="None" _TARGET="_blank"_&gt;SmartSVN&lt;/a&gt; on Macintosh, both of which are GUI clients. (This is not an official endorsement of these products by Adobe.) Of course, you can use whatever client you prefer, including Subversion's official command-line tool `svn`. We'll assume you're using `svn` in our instructions. An `svn` client version of 1.6.2 or later is recommended.

You can get the Subversion installer, which includes `svn`, here: 

  * Windows: http://subversion.tigris.org/files/documents/15/46906/Setup-Subversion-1.6.6.msi
  * Mac: http://downloads.open.collab.net/binaries.html
  * All OSes: http://subversion.tigris.org/getting.html

After installing `svn` using the Windows installer, you should be able to execute `svn` from any directory because it will be found on your `PATH`.

On Macintosh, test the installation by opening Terminal and executing:  

    svn --version
      
If you get `svn: command not found`, then you'll need to add the `/usr/local/bin` directory onto your `PATH`, since this is where `svn` lives. Assuming you're using the default `bash` shell in Terminal, you can do this by putting the following lines into a `~/.bash_profile` file:


    PATH="/usr/local/bin:$PATH"
    export PATH
    

Otherwise, you'll have to invoke `svn` as `/usr/local/bin/svn`.

## Checking out code

When you access the repository with a Subversion client, the Flex SDK project is at the URL http://opensource.adobe.com/svn/opensource/flex/sdk

To get the entire source code for the project, do a "checkout" from this URL into a local directory on your machine. Using the command-line client, you would execute


    svn checkout http://opensource.adobe.com/svn/opensource/flex/sdk &lt;local-directory&gt;
    

If you only want the trunk, or a particular branch or tag, adjust the URL appropriately.

Some of the files in the repository are rather large --- 10 or 20 MB --- so expect the output from the checkout to slow down when you get to one of them.

## Updating a project skeleton

Subversion doesn't make it possible to check out a top-level project directory without checking out every branch and tag as well. This may be too much code and take a long time. But if you check out only individual branches, you won't get a top-level project directory where you can see a project-wide log (i.e, you won't be able to run `svn log` on the `sdk` directory).

To solve this problem, you can download a project skeleton that we provide [here](http://opensource.adobe.com/wiki/download/attachments/2392224/flex-svn.zip). Download this file and unzip it. You can place the `flex` directory anywhere convenient for command-line access.

We checked out the entire `/flex/sdk` part of the repository for you and then removed the contents, leaving the `.svn` directories that tell a Subversion client how to access the repository. You can simply &amp;#8220;update&amp;#8221; the particular directories you care about, such as `trunk`, or `branches/3.x`, or `tags/3.0.0.477`. Using the command-line client `svn`, you would execute something like


    cd flex/sdk/trunk
    svn update
    

to pull down the code in the trunk.

If you're using the TortoiseSVN client, you can simply right-click on the `trunk` directory and choose "SVN Update".

Of course, if you want the whole enchilada, just update the `flex/sdk` directory.

## Building and testing

Want to build and test the source code? See the sections [Set up your development environment](Setup) and [How to build and test](https://sourceforge.net/adobe/flexsdk/wiki/Build%20and%20Test/).

## Access rights

Everyone has read-only access to the Flex SDK project. You don't need a username or password.

Want to contribute? See [Flex SDK Project Roles](Roles) and [Submitting a Patch](https://sourceforge.net/adobe/flexsdk/wiki/Submitting%20a%20Patch/).

## Change notifications

If you'd like to keep up-to-date on changes to the Flex SDK project, you may subscribe to the &lt;a href="http://www.adobeforums.com/webx/.3c061177/" title="None" _TARGET="_blank"_&gt;Commits forum&lt;/a&gt;. Every time anyone commits a change to the Flex SDK, a description of that change is posted to this forum. You can request to receive an email for each commit, or to receive a digest on a regular basis.
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SourceForge Editorial Staff</dc:creator><pubDate>Thu, 15 Mar 2012 18:13:18 -0000</pubDate><guid>https://sourceforge.netb6873d9d7da7a7dbef108057ce31b1a075000c57</guid></item></channel></rss>