<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>nightdrops.com &#187; documentation</title>
	<atom:link href="http://www.nightdrops.com/tag/documentation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nightdrops.com</link>
	<description>like the color blue</description>
	<lastBuildDate>Thu, 01 Jul 2010 13:19:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>FlexBuilder: generating documentation</title>
		<link>http://www.nightdrops.com/2009/flex-3-generating-documentation/</link>
		<comments>http://www.nightdrops.com/2009/flex-3-generating-documentation/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 22:25:49 +0000</pubDate>
		<dc:creator>kajyr</dc:creator>
				<category><![CDATA[Blog posts]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[asdoc]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[Flexbuilder]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.nightdrops.com/blog/?p=20</guid>
		<description><![CDATA[Has anyone tryed to document ActionScript code using asdoc? I for myself hate to input shell commands in Windoze. I used to be a unix &#8211; bash hacker (in another life), and i find particularly annoying the windows shell (don&#8217;t even talk about the one in Vista..). So i said to my good old friend [...]]]></description>
			<content:encoded><![CDATA[<p>Has anyone tryed to document ActionScript code using asdoc? I for myself hate to input shell commands in Windoze. I used to be a unix &#8211; bash hacker (in another life), and i find <span class="clickable" onclick="dr4sdgryt(event,&quot;Ox&quot;)"><span class="sg"><span class="se1"><span class="trn">particularly annoying the windows shell (don&#8217;t even talk about the one in Vista..).</span></span></span></span></p>
<p><span class="clickable" onclick="dr4sdgryt(event,&quot;Ox&quot;)"><span class="sg"><span class="se1"><span class="trn">So i said to my good old friend Google: how can i use ant (which can be used in eclipse) to generate documentation with some clicks?</span></span></span></span></p>
<p><span class="clickable" onclick="dr4sdgryt(event,&quot;Ox&quot;)"><span class="sg"><span class="se1"><span class="trn">The answer lies around and need a few hacks, I post here my version for the sake of clarity.</span></span></span></span></p>
<p><span class="clickable" onclick="dr4sdgryt(event,&quot;Ox&quot;)"><span class="sg"><span class="se1"><span class="trn">I won&#8217;t tell you how to install ANT in Eclipse / Flex Builder using the Software Update tool, this may offend you.</span></span></span></span></p>
<p><span class="clickable" onclick="dr4sdgryt(event,&quot;Ox&quot;)"><span class="sg"><span class="se1"><span class="trn">Instead i&#8217;ll tell you that once setup is done, you need to upen the Ant view and you need an xml named build.xml with some rules in it, that tells which program to run, in which folder to save the output and so on. The xml is pretty self explaining, but in case just drop a line.</span></span></span></span></p>
<pre><span class="clickable" onclick="dr4sdgryt(event,&quot;Ox&quot;)"><span class="sg"><span class="se1"><span class="trn">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;project name="asdoc" default="main" basedir="."&gt;

    &lt;property name="Flex.dir" location="C:\Program Files\Adobe\Flex Builder 3"/&gt;

    &lt;property name="FlexSDK.dir" location="${Flex.dir}\sdks\3.2.0"/&gt;

    &lt;property name="AsDocs.dir" location="${FlexSDK.dir}\bin\asdoc.exe"/&gt;

    &lt;property name="AppClasses.dir" location="${basedir}\..\src"/&gt;

    &lt;property name="Output.dir" location="${basedir}\out" /&gt;

    &lt;target name="main" depends="clean,compile" description="full build of asdocs"/&gt;

    &lt;target name="clean"&gt;
        &lt;delete dir="${Output.dir}" failOnError="false" includeEmptyDirs="true"/&gt;
        &lt;mkdir dir="${Output.dir}"/&gt;
    &lt;/target&gt;

    &lt;target name="compile"&gt;
        &lt;exec executable="${AsDocs.dir}" failonerror="true"&gt;
            &lt;arg line='+configname=air'/&gt;
            &lt;arg line='-doc-sources ${AppClasses.dir}'/&gt;
            &lt;arg line='-window-title "My Application"'/&gt;
            &lt;arg line='-output ${Output.dir}'/&gt;
        &lt;/exec&gt;
    &lt;/target&gt;

&lt;/project&gt;

</span></span></span></span></pre>
<p><span class="clickable" onclick="dr4sdgryt(event,&quot;Ox&quot;)"><span class="sg"><span class="se1"><span class="trn">Note that the paths are relative to the position of the build.xml file.<br />
(Also, i didn&#8217;t build the xml from scratch, there are many version of the same file on many blogs, so if the one who wrote it shows up, it will be an honor to credit him)<br />
</span></span></span></span></p>
<p><span class="clickable" onclick="dr4sdgryt(event,&quot;Ox&quot;)"><span class="sg"></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nightdrops.com/2009/flex-3-generating-documentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
