Uncategorized
Flex 2 Beta 1 Compiles on OS X with Ant
I blogged yesterday about my trials in getting Ant to compile the new Flex 2 Beta files. My buddy Rob Rohan hit me on IM today to see if I had any luck. I explianed were I got to with the process. I offered to send him my files to get him a head start on making it work.
Not 30 minutes later he had a script that was compiling all but for one error. I asked him to shoot me back his ant script and I would take a look. Well no looking was required. I dropped his task into my build file and it worked like a charm (after updating some path properties)
So here for the world to share is the task that made it all happen for me
Thanks Rob!
/>
In order to have the files i needed to make this run, I installed the Flex 2 Enterprise Services. I chose the “I have my own j2ee server” option. In the folder that is created by this installation is a tools directory. I dropped that folder into a project in eclipse and named it flex. The cdir property in the script is the full path to that folder.
Have some fun now all you mac-ers!
UPDATE
On my previous post on this phoc888 commented that he had a functioning Ant script as well. His was much shorter than mine and rob’s so I wanted to post it here.
failonerror="true"
maxmemory="128m"
>
02 Feb 2006 Simeon

Does this result in a working Flex Builder, or merely the framework?
This is just to allow you to compile mxml and as files. This is just the free version of the sdk.
There are several xml editors out there that will allow you to have syntax highlighting in eclipse for flex files. I recommend either Aefe from <a href="http://www.robrohan.com/projects/afae/">Rob Rohan</a> or <a href="http://www.myeclipseide.com">MyEclipse IDE</a>
Hi,
I tried to install that script. I am not at all familiar with eclipse. How do you create a task and run the script? That was where I got lost. I found where to open the window to create a task but then no more. Could you please give a bit more information.
Thanks a lot!
Hey Jay,
Check out the eclipse help docs for info on using ant inside eclipse
http://help.eclipse.org/help31/topic/org.eclipse.platform.doc.user/gettingStarted/qs-81_basics.htm
Also I posted again on this trying to make the process more clear. Take a look here and see how that treats you.
http://www.simb.net/blog/index.cfm/2006/2/9/Wrapup-of-my-Flex-2-Ant-Adventure
phoc888’s Ant script looks like a version of my QuickStart example for the Flex 2 alpha (http://robbevan.com/blog/2005/10/23/working-with-flex-2-on-mac-os-x/) and it won’t work because 1. it’s missing the build.properties file in which the ${frameworks.dir} is set and 2. there’s also no argument "-keep". See my post also for a method to extract the framework from the Windows installer.
Does this result in a working Flex Builder, or merely the framework?
The name of the company is supposedly derived from Ahura Mazda, the transcendental God of Zoroastrianism. It is also said that Mazda coincides with the anglicized pronunciation of the founder’s name, Jujiro Matsuda, who was interested in spirituality, and chose to rename it in honor of both his family and the Zoroastrians.[2] Mazda means "wisdom" in the Avestan language. However, in Japanese, the company has always been pronounced and spelled as "Matsuda" leading many to believe that Mazda is really just a poorly anglicized version of the founder’s name.
http://www.mazdacardealer.150m.com/index.html
http://www.mercedescardealer.150m.com/index.html