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!


value="${installdir}/asc.jar:${installdir}/batik-dom.jar:${installdir}/batik-svggen.jar:${installdir}/commons-logging.jar:${installdir}/swfkit.jar:${installdir}/axis.jar:${installdir}/batik-ext.jar:${installdir}/batik-transcoder.jar:${installdir}/compc.jar:${installdir}/xercesImpl.jar:${installdir}/batik-awt-util.jar:${installdir}/batik-gvt.jar:${installdir}/batik-util.jar:${installdir}/fdb.jar:${installdir}/xercesPatch.jar:${installdir}/batik-bridge.jar:${installdir}/batik-parser.jar:${installdir}/batik-xml.jar:${installdir}/jaxrpc.jar:${installdir}/xmlParserAPIs.jarbatik-css-patch.jar:${installdir}/batik-script.jar:${installdir}/commons-collections.jar:${installdir}/mm-velocity-1.4.jar:${installdir}/batik-css.jar:${installdir}/batik-svg-dom.jar:${installdir}/commons-discovery.jar:${installdir}/mxmlc.jar"
/>














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.



fork="true"
failonerror="true"
maxmemory="128m"
>