<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>assertTrue: AsDoc and COMPC now supported in Sprouts</title>
    <link>http://www.asserttrue.com/articles/2008/02/25/asdoc-and-compc-now-supported-in-sprouts</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>powered by Pattern Park</description>
    <item>
      <title>AsDoc and COMPC now supported in Sprouts</title>
      <description>&lt;p&gt;I just got some enhancements into the &lt;a href="http://www.projectsprouts.org"&gt;Sprout&lt;/a&gt; packages that provide full support for &lt;a href="http://www.projectsprouts.org/rdoc/classes/Sprout/AsDocTask.html"&gt;asdoc&lt;/a&gt; and &lt;a href="http://www.projectsprouts.org/rdoc/classes/Sprout/COMPCTask.html"&gt;compc&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;The AsDoc support is especially handy because it gives the full terminal interface, but also allows you to generate documentation against any already defined &lt;span class="caps"&gt;MXMLC&lt;/span&gt; task without duplicating all of your configuration!&lt;/p&gt;


	&lt;p&gt;A Rakefile might look something like this:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;desc &amp;quot;Compile the main application&amp;quot;
mxmlc 'bin/SomeProject.swf' do |t|
  t.input = 'src/SomeProject.as'
  t.source_path = 'lib/yourlib'
  t.source_path = 'lib/asunit'
  t.source_path = 'test'
  t.source_path = 'src'
end

desc &amp;quot;Generate documentation&amp;quot;
asdoc :doc =&amp;gt; 'bin/SomeProject.swf'&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;


	&lt;p&gt;You just set an &lt;span class="caps"&gt;MXMLC&lt;/span&gt; task as a prerequisite for an asdoc task and the configuration options are inherited.&lt;/p&gt;


	&lt;p&gt;The latest &lt;code&gt;as3&lt;/code&gt; bundle gem automatically adds something similar to all of your new project rake files.&lt;/p&gt;


You can always get the latest Rubyforge gems with the following:
&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;sprout -R
sudo gem update sprout&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Be sure to &lt;a href="http://groups.google.com/group/projectsprouts"&gt;let us know&lt;/a&gt; if anything doesn&amp;#8217;t work as expected!&lt;/p&gt;</description>
      <pubDate>Mon, 25 Feb 2008 00:24:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:a174f67e-e130-4557-845f-3d5924201674</guid>
      <author>Luke Bayes</author>
      <link>http://www.asserttrue.com/articles/2008/02/25/asdoc-and-compc-now-supported-in-sprouts</link>
      <category>sprouts</category>
      <trackback:ping>http://www.asserttrue.com/articles/trackback/1515</trackback:ping>
    </item>
  </channel>
</rss>
