Archive

Posts Tagged ‘svn’

Flex ANT + SVN tasks

September 18th, 2008

I using ANT + SVN tasks a lot for compiling the startup for projects. Took me a while to setup it to work on MAC but the solutions was pretty easy. This will work on a PC as well.

What you first need.
You need the ANT plug-in and you can get that from Eclipse JDT Development
1.) Open Flex Builder
2.) Help -> Software Updates -> Find and Install…
3.) Select: Search for new features to install
4.) Mark: “The Eclipse Project Updates” and click Finish. (url if needed)
5.) Expand the tree “Eclipse 3.3.2″ or newer.
6.) Find: “Eclipse Java Development Tools”, Mark and install.

This is what you do.
1.) You will need SVN Ant, and for some actions it help to add the jakarta regexp, jakarta oro, commons, commons-net packages. To make it simple, grab this zip file.
2.) Open “Flex folder”/plugins/ and create a folder “svnant” and place all the files.
3.) Open Flex -> Preferences -> Ant -> Runtime
4.) Select “And Home Entries” and then “Add External JARs…”
5.) Select all the JAR files you copied to /Flex Builder 3/plugins/svnant/
6.) Create a new project in Flex. Place the build.xml file in the project root.
7.) Right click on the build.xml and select Open With -> Ant Editor.
8.) Set your properties in the top and then right click on getSVNCode in the “Outline window”, Run As -> Ant Build.

TIP.
ANT scripts can grab properties files and run ANT tasks from other ANT files. So you could setup a structure how to read scripts and unique project data to make it more generic.

Documentation to read.
SVN: http://subclipse.tigris.org/svnant/svn.html
ANT: http://ant.apache.org/manual/tasksoverview.html

Flex , ,

Adobe Version Cue 3, webdav/svn/cvs

October 26th, 2007

By reading specifications I found out that Adobe Version Cue 3 uses webdav to handle files. My first thought here is why aint they using svn or cvs. And how should I then work with Adobe Bridge as a developer.

What I would like to do is to handle every project and all files with Version Cue. I can setup and use documents, psd files and life is just good. What I’m getting irretated on is when I develop, how am I suppose to handle this?

Should I use Flash IDE for the *.fla files and *.as. Well, If they built a decent actionscript editor I might. But the reality is that there is so many good editors out there. Myself and my dev team uses Eclipse with FDT, a wonderfull plugin. Then we have for example Flash Developer, and I would guess that every serious programmer uses another actionscript editor than the Flash IDE.

Tried to contact and talk with Adobe about how to connect to Version Cue and handle flash project without using Bridge. There is the webdav interface in Windows but it still doesnt really do it. Best senario is if I could access my Version Cue project like I do with SVN or CVS. I could check in and merge my classes and lock *.fla files to skip conflicts with other developers on the same project.

After trying every plugin I could find to Eclipse I still only could access with the WebDAV, could se the files but not touch it. So well, whats the solution? Keep the project in Version Cue with art, files, specs. and keep the Flash part in a SVN repository somewhere else. Keeping everything locked up at one place just makes the restless sleep at night.

Life , , , , ,