You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by aj...@apache.org on 2008/07/04 02:12:16 UTC

svn commit: r673883 - /incubator/jspwiki/trunk/build.xml

Author: ajaquith
Date: Thu Jul  3 17:12:16 2008
New Revision: 673883

URL: http://svn.apache.org/viewvc?rev=673883&view=rev
Log:
Added Ant target 'api-diff' which allows arbitrary diffing against previous JSPWiki.jar artifacts. It prints a nicely formatted HTML page describing public API differences. The report file is tests/reports/API-changes.html.

Modified:
    incubator/jspwiki/trunk/build.xml

Modified: incubator/jspwiki/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/build.xml?rev=673883&r1=673882&r2=673883&view=diff
==============================================================================
--- incubator/jspwiki/trunk/build.xml (original)
+++ incubator/jspwiki/trunk/build.xml Thu Jul  3 17:12:16 2008
@@ -1414,5 +1414,38 @@
   <target name="i18n-clean-templates" description="Deletes all i18n directory structures">
 	<delete dir="${tmplt.i18n.dir}" />
   </target>
+  
+  <target name="api-diff" description="Compares API in JSPWiki.jar with previous version"
+    depends="jar">
+     <check-property prop="jarfile.old" />
+     <mkdir dir="${tests.reports}" />
+     <!--
+     <java classname="com.jeantessier.dependencyfinder.cli.JarJarDiff"
+       output="${tests.reports}/API-changes.xml">
+       <classpath refid="path.tests" />
+        <arg value="-new" />
+        <arg value="${jarfile}" />
+        <arg value="-old" />
+        <arg value="${jarfile.old}" />
+        <arg value="-name" />
+        <arg value="JSPWiki Public API Changes" />
+     </java>
+     -->
+        <!--
+        <arg value="-level" />
+        <arg value="incompatible" />
+        -->
+     <!-- Filthy hack that suppresses DTD resolution -->
+     <replace file="${tests.reports}/API-changes.xml"
+       token='&lt;!DOCTYPE differences SYSTEM "http://depfind.sourceforge.net/dtd/differences.dtd"&gt;'
+       value=""/>
+     <!-- Just to be safe, replace raw ampersands with something bogus -->
+     <replace file="${tests.reports}/API-changes.xml"
+       token="&amp;" value="(ampersand)"/>
+     <xslt in="${tests.reports}/API-changes.xml"
+       out="${tests.reports}/API-changes.html"
+       style="${tests.src}/etc/DiffToHTML.xsl">
+     </xslt>
+  </target>
 
 </project>