Sharing a Flex project with a team
April 28, 2009
Recently I've been working on a Flex project with another developer. We use SVN (subversion) and have been committing the entire Flex project to the repository. The problem with this is that any compiler/custom settings you have break as they are stored as part of the project.
The solution that we have come up with is for each developer to...
- Create a new Flex project which is outside of your working copy (files & folders that are committed to version control).
- Right click on the Flex Project in Flex Builder and select "new -> folder"
- Type in "src_svn" for the folder name
- Click the "Advanced button"
- Tick the "Link to folder in the file system" and browse to the "src" folder in your working copy
- Click the "Finish" button
- You should now see all the existing mxml files in a folder called "src_svn"
- Right click on the project folder in Flex Builder and select "properties"
- Select "Flex Build Path" section and change the "Main source folder" from "src" to "src_svn"
- Select the "Flex Applications" section
- Highlight the projectname.mxml (marked as deleted) and click the Remove button
- Click the "Add" button and select the an mxml file from the list
- Hightlight the mxml file you just added above and click the "Set as default" button
- Click "OK"
That's it, you can now edit the source code (mxml files) under version control but still have your own project settings. You may also want to link to the libs folder the same way you did when creating a new folder.
- Posted in:
- Subversion
- Flex
11 comments
Leave a comment
If you found this post useful, interesting or just plain wrong, let me know - I like feedback :)





Comment by sck – April 28, 2009
Comment by Russell Brown – April 28, 2009
We then tokenize the properties files with Eclipse resources, making them work across machines. This way, links to things like other projects, external libs, etc., get propagated to developer's workstations as part of their next SVN update.
Comment by Joe Rinehart – April 28, 2009
Comment by TJ Downes – April 28, 2009
Comment by TJ Downes – April 28, 2009
Comment by Adam Lofts – April 28, 2009
Comment by TJ Downes – April 28, 2009
We have used svn:ignore in the past, but it only takes one developer to forget to set their working copy up and you get the files committed (and downloaded on the next update).
@TJ - the Window>>Preferences>>Team>>Ignored Resources is a top tip, thanks!
@Joe - I really like that method. Sorry for being dense but are you using ANT or something to build the properties file?
Thanks again everyone :)
Comment by John Whish – April 28, 2009
Comment by diamondTearz – April 28, 2009
Comment by John Whish – April 28, 2009
Comment by Tom Schober – October 28, 2009