<html>
<head>
<style><!--
  body {background-color:#ffffff;}
  .file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
  .pathname {font-family:monospace; float:right;}
  .fileheader {margin-bottom:.5em;}
  .diff {margin:0;}
  .tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
  .tasklist ul {margin-top:0;margin-bottom:0;}
  tr.alt {background-color:#eeeeee}
  #added {background-color:#ddffdd;}
  #addedchars {background-color:#99ff99;font-weight:bolder;}
  tr.alt #added {background-color:#ccf7cc;}
  #removed {background-color:#ffdddd;}
  #removedchars {background-color:#ff9999;font-weight:bolder;}
  tr.alt #removed {background-color:#f7cccc;}
  #copied {background-color:#ccccff;}
  tr.alt #copied {background-color:#bbbbf7;}
  #info {color:#888888;}
  #context {background-color:#eeeeee;}
  td {padding-left:.3em;padding-right:.3em;}
  tr.head {border-bottom-width:1px;border-bottom-style:solid;}
  tr.head td {padding:0;padding-top:.2em;}
  .task {background-color:#ffff00;}
  .comment {white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;padding:4px;border:1px dashed #000000;background-color:#ffffdd}
  .error {color:red;}
  hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="5">Commit in <b><tt>as2api/trunk/as2api</tt></b></td></tr>
<tr><td><tt><a href="#file1">as2api-documentation.xml</a></tt> </td><td></td><td align="right" id="added">+115</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center">323 -&gt; 324</td></tr>
</table>
<pre class="comment">
Beginnings of documentation for API-changes mode
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname">as2api/trunk/as2api</span><br />
<div class="fileheader"><big><b>as2api-documentation.xml</b></big> <small id="info">323 -&gt; 324</small></div>
<pre class="diff"><small id="info">--- trunk/as2api/as2api-documentation.xml        2006-03-22 20:47:49 UTC (rev 323)
+++ trunk/as2api/as2api-documentation.xml        2006-03-22 23:46:36 UTC (rev 324)
@@ -7,7 +7,7 @@
</small></pre><pre class="diff" id="context">   &lt;!ATTLIST titleabbrev id ID #IMPLIED&gt;
 ]&gt;
 
</pre><pre class="diff" id="removed">-&lt;?xml-stylesheet href="/home/dave/projects/<span id="removedchars">docbook/</span>css/xml/docbook/driver.css"
</pre><pre class="diff" id="added">+&lt;?xml-stylesheet href="/home/dave/projects/css/xml/docbook/driver.css"
</pre><pre class="diff" id="context">                  type="text/css"?&gt;
 
 
</pre><pre class="diff"><small id="info">@@ -70,8 +70,18 @@
</small></pre><pre class="diff" id="context">           &lt;arg&gt;--draw-diagrams&lt;/arg&gt;
           &lt;arg&gt;--dot-exe &lt;replaceable&gt;executable-path-and-name&lt;/replaceable&gt;&lt;/arg&gt;
           &lt;arg&gt;--sources&lt;/arg&gt;
</pre><pre class="diff" id="added">+          &lt;arg&gt;--api-export&lt;/arg&gt;
+          &lt;arg&gt;--api-name &lt;replaceable&gt;text&lt;/replaceable&gt;&lt;/arg&gt;
+          &lt;arg&gt;--api-version &lt;replaceable&gt;text&lt;/replaceable&gt;&lt;/arg&gt;
</pre><pre class="diff" id="context">           &lt;arg rep="repeat" choice="plain"&gt;&lt;replaceable&gt;package-spec&lt;/replaceable&gt;&lt;/arg&gt;
         &lt;/cmdsynopsis&gt;
</pre><pre class="diff" id="added">+        &lt;cmdsynopsis&gt;
+          &lt;command&gt;as2api&lt;/command&gt;
+          &lt;arg choice="plain"&gt;--diff-load-old &lt;replaceable&gt;file.xml&lt;/replaceable&gt;&lt;/arg&gt;
+          &lt;arg choice="plain"&gt;--diff-load-new &lt;replaceable&gt;file.xml&lt;/replaceable&gt;&lt;/arg&gt;
+          &lt;arg&gt;--diff-url-old &lt;replaceable&gt;DocsURL&lt;/replaceable&gt;&lt;/arg&gt;
+          &lt;arg&gt;--diff-url-new &lt;replaceable&gt;DocsURL&lt;/replaceable&gt;&lt;/arg&gt;
+        &lt;/cmdsynopsis&gt;
</pre><pre class="diff" id="context">       &lt;/refsynopsisdiv&gt;
 
       &lt;refsection id="options"&gt;
</pre><pre class="diff"><small id="info">@@ -217,6 +227,49 @@
</small></pre><pre class="diff" id="context">               converted to an HTML file with 'syntax highlighting'.&lt;/para&gt;
             &lt;/listitem&gt;
           &lt;/varlistentry&gt;
</pre><pre class="diff" id="added">+
+          &lt;varlistentry&gt;
+            &lt;term&gt;&lt;option&gt;--api-export&lt;/option&gt;&lt;/term&gt;
+            &lt;listitem&gt;
+              &lt;para&gt;Causes as2api to export the API description as a single
+              XML document, rather than the normal set of HTML files.  This
+              file is for use with the &lt;option&gt;--diff-load-old&lt;/option&gt; and
+              &lt;option&gt;--diff-load-new&lt;/option&gt; options.&lt;/para&gt;
+              &lt;para&gt;If this option is used, the &lt;option&gt;--api-name&lt;/option&gt; and
+              &lt;option&gt;--api-version&lt;/option&gt; options become mandatory, and
+              their values are used to determine the name of the XML file that
+              will be produced.&lt;/para&gt;
+            &lt;/listitem&gt;
+          &lt;/varlistentry&gt;
+
+          &lt;varlistentry&gt;
+            &lt;term&gt;&lt;option&gt;--api-name &lt;replaceable&gt;text&lt;/replaceable&gt;&lt;/option&gt;&lt;/term&gt;
+            &lt;listitem&gt;
+              &lt;para&gt;A short name for the ActionScript API being
+              processed.&lt;/para&gt;
+            &lt;/listitem&gt;
+          &lt;/varlistentry&gt;
+
+          &lt;varlistentry&gt;
+            &lt;term&gt;&lt;option&gt;--api-version &lt;replaceable&gt;text&lt;/replaceable&gt;&lt;/option&gt;&lt;/term&gt;
+            &lt;listitem&gt;
+              &lt;para&gt;A value identifting the version of the API being processed,
+              to differentiate it from other versions of the same API.  This
+              free-form value may be a version number, release date, CVS tag,
+              etc.&lt;/para&gt;
+            &lt;/listitem&gt;
+          &lt;/varlistentry&gt;
+
+          &lt;varlistentry&gt;
+            &lt;term&gt;&lt;option&gt;--diff-load-old &lt;replaceable&gt;oldfile.xml&lt;/replaceable&gt;&lt;/option&gt; / &lt;option&gt;--diff-load-new &lt;replaceable&gt;newfile.xml&lt;/replaceable&gt;&lt;/option&gt;&lt;/term&gt;
+            &lt;listitem&gt;
+              &lt;para&gt;When this pair of options are supplied, as2api doesn't
+              generate any API documentation, instead, the two versions of the
+              API described by &lt;replaceable&gt;oldfile.xml&lt;/replaceable&gt; and
+              &lt;replaceable&gt;newfile.xml&lt;/replaceable&gt; are examined, and a
+              report is produced describing how the API has changed.&lt;/para&gt;
+            &lt;/listitem&gt;
+          &lt;/varlistentry&gt;
</pre><pre class="diff" id="context">         &lt;/variablelist&gt;
       &lt;/refsection&gt;
     &lt;/refentry&gt;
</pre><pre class="diff"><small id="info">@@ -853,4 +906,65 @@
</small></pre><pre class="diff" id="context">     &lt;/section&gt;
   &lt;/section&gt;
 
</pre><pre class="diff" id="added">+  &lt;section&gt;
+    &lt;title&gt;Advanced Usage&lt;/title&gt;
+
+    &lt;section&gt;
+      &lt;title&gt;API 'Diffs'&lt;/title&gt;
+
+      &lt;para&gt;This feature of as2api is inspired by the
+      &lt;ulink url="http://www.jdiff.org/"&gt;JDiff&lt;/ulink&gt; tool for JavaDoc.&lt;/para&gt;
+
+      &lt;para&gt;as2api has a special mode of operation in which it doesn't document
+      an API, but rather it documents the differences between two versions of
+      the same API.&lt;/para&gt;
+
+      &lt;para&gt;These reports allow the user's of an API to focus attention on the
+      important features when learning about a new release.  They could also
+      be used by the API developer to check for backwards-incompatable
+      changes.&lt;/para&gt;
+
+      &lt;para&gt;Since parsing ActionScript code is a somewhat expensive operation,
+      as2api doesn't use the original code as the basis for comparison.
+      Instead, it first dumps a description of the API to an XML file, and
+      then given two dump-files, it can report the differences between
+      them.&lt;/para&gt;
+
+      &lt;para&gt;As an example, we will generate a report of the differences between
+      the core classes in Flash 7 and Flash 8.&lt;/para&gt;
+
+      &lt;example&gt;
+        &lt;title&gt;Generating API Dump Files&lt;/title&gt;
+
+        &lt;para&gt;Dump the Flash 7 API description to a file called
+        &lt;filename&gt;flash_core_classes-7.xml&lt;/filename&gt;,&lt;/para&gt;
+
+        &lt;screen&gt;as2api --api-export \
+        --classpath examples/flash8/FP7 \
+        --api-name "Flash Core Classes" \
+        --api-version 7 \
+        "(default)" "System" "TextField"&lt;/screen&gt;
+
+        &lt;para&gt;Dump the Flash 8 API description to a file called
+        &lt;filename&gt;flash_core_classes-8.xml&lt;/filename&gt;,&lt;/para&gt;
+
+        &lt;screen&gt;as2api --api-export \
+        --classpath examples/flash8/FP8 \
+        --api-name "Flash Core Classes" \
+        --api-version 8 \
+        "(default)" "System" "TextField" "flash.*"&lt;/screen&gt;
+      &lt;/example&gt; 
+
+      &lt;para&gt;With two API dump files, we are now in a position to generate the
+      report describing the changes.&lt;/para&gt;
+
+      &lt;example&gt;
+        &lt;title&gt;Generating an API-Change Report&lt;/title&gt;
+
+        &lt;para&gt;Creates a report starting at &lt;filename&gt;apidoc/changes/change-summary.html&lt;/filename&gt;&lt;/para&gt;
+        &lt;screen&gt;as2api --diff-load-old flash_core_classes-7.xml \
+        --diff-load-new flash_core_classes-8.xml&lt;/screen&gt;
+      &lt;/example&gt;
+    &lt;/section&gt;
+  &lt;/section&gt;
</pre><pre class="diff" id="context"> &lt;/article&gt;
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -&gt; email">CVSspam</a> 0.2.12</small></center>
</body></html>