You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2009/03/23 23:07:01 UTC

svn commit: r757568 - /incubator/pivot/trunk/build.xml

Author: tvolkert
Date: Mon Mar 23 22:07:00 2009
New Revision: 757568

URL: http://svn.apache.org/viewvc?rev=757568&view=rev
Log:
Added Google Analytics code to javadoc output

Modified:
    incubator/pivot/trunk/build.xml

Modified: incubator/pivot/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/build.xml?rev=757568&r1=757567&r2=757568&view=diff
==============================================================================
--- incubator/pivot/trunk/build.xml (original)
+++ incubator/pivot/trunk/build.xml Mon Mar 23 22:07:00 2009
@@ -50,6 +50,20 @@
             <packageset dir="${core}/${src}" includes="**/*"/>
             <packageset dir="${web}/${src}" includes="**/*"/>
             <packageset dir="${wtk}/${src}" includes="**/*"/>
+            <header>
+              <![CDATA[
+                 <script type="text/javascript">
+                   var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+                   document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+                 </script>
+                 <script type="text/javascript">
+                   try {
+                     var pageTracker = _gat._getTracker("UA-7977275-1");
+                     pageTracker._trackPageview();
+                   } catch(err) {}
+                 </script>
+              ]]>
+            </header>
         </javadoc>
 
         <delete file="${ant.project.name}_${version}-${doc}.zip"/>