Ant and ASDoc

by Ruben

After my personal little tragedy with ASDoc I started looking into some Ant scripts. After trying out a few yesterday (without any success) I decided I'd write my own.

At the hand of the Ant script made by Darron Schall and the one by Dave Williamson I put together my own.

If you're interested in using it, download it, and extract the two files in the zip to the bin folder of the project you'd like to generate documentation for.
Next, open the project. In the navigator, right click build.xml and select Run As » 1 Ant Build.
..and off you go, after the console (in the bottom of your Flex screen) says you're done, check out the asdoc folder (in bin).
However, before you go and try it out, please read through to the end of this post..

Note that if you've got your classes anywhere else than in (or below) com (as in com\rubenswieringa\MyClass.as) you should make a slight modification to the domainextensions property in the build.properties file.
Furthermore, in this file you can also customize the title of the documentation and the folder to which the docs will be outputted.

Also, apparently Ant support has to be enabled beforehand in a typical Flex installation, please read Peter Elst's post regarding this subject.

Please don't be shy and post a comment if you can't get it to work or got something else to ask/tell..