Flex builder and SVN

Feb. 13, 2007 8 Comments Posted under: ActionScript, Flex, Random

Having done quite a bit of work in Flex recently it came to the point when putting it in SVN was getting more and more important. However it wasn’t as simple as I thought it would be.

It appears that when you compile in flex builder many of the files are moved around into temp folders in order to create the swfs. The problem is that the flex builder also moves around any SVN folders too, which as you can imagine causes all sorts of problems.

I worked on including only the source files (ignoring the bin and html folders), but really the SWF is needed so you can roll out onto live servers from SVN. So after a bit of research it turns out that you can install the SVN eclipse add on (eclipse) into the flex builder. This seems to stop all the movement (at least of the SVN files) and sort out the problems.

Hopefully this will help someone else add their flex projects to SVN without a headache starting at terminal…

This entry was posted on Tuesday, February 13th, 2007 at 9:28 am and is filed under ActionScript, Flex, Random. You can leave a comment and follow any responses to this entry through the RSS 2.0 feed.

8 Comments Leave a comment

  1. chris 14 February 2007 at 11:41 am #

    Just being a bit nosey here, but what are you using flex for? Have always considered it a bit of an underrated platform myself and have never really had the opportunity to get into developing with it. Is it for work? or pleasure?

  2. Rob 14 February 2007 at 7:53 pm #

    Not too sure I can divulge that mate ;)
    No it is for work as part of the future statistics reporting platform in Ceros, which is really exciting. Flex seemed like a nice way into ActionScript (albeit 3) and development of flash with out the time line. Also the graphing helped as its a lot nicer and flasher than through image magic.

    It looks like it may also be really good for when Apollo comes out and it turns into a real dev environment.

  3. danny 19 July 2007 at 2:35 pm #

    Are you able to commit you build folder (bin)?
    For some reason, I am not able to – it’s like Flex Builder has ignored it.
    Any recommendations?

  4. Rob 19 July 2007 at 2:39 pm #

    Not sure, probibly not a good idea to add it because it gets updated every time you compile and would mess up the .svn folder

  5. [...] me and others noticed here is that, since Flex Builder copies all the project root files and folders into “/bin”, including [...]

  6. Ron 15 July 2009 at 6:15 am #

    I installed subclipse in flex builder but it still copies the .svn directories into the bin-debug directory. Did you have to do anything special to stop this? Is there an exclude filter somewhere that maybe didn’t get set because I installed subclipse after I had already created the project?

  7. Rob 15 July 2009 at 10:13 am #

    Hi Ron, make sure your bin-debug folder isn’t checked into SVN. As you created the project first it won’t have been ignored. It may be worth checking it out again removing the bin directory manually then opening it as a new project in Flex builder.

  8. Aeldron 20 January 2010 at 1:16 pm #

    We can add the bin-debug to the ignore list on Subversion, so it never gets commited. However every time we compile the application, Flex Builder copies the .svn folders from:

    /html-template
    /html-template/history

    into the bin-debug and also the release build (if you select Project/Export Release Build).

    It would be nice to stop that from happening but I can’t find a way of doing it. I tried to look up the list of compiler arguments but nothing looks useful for that.

    Any suggestions?

Leave a Reply