You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-cvs@jakarta.apache.org by se...@apache.org on 2007/08/19 17:12:07 UTC
svn commit: r567414 - in /jakarta/site: build.xml xdocs/empty.xml
Author: sebb
Date: Sun Aug 19 08:12:06 2007
New Revision: 567414
URL: http://svn.apache.org/viewvc?view=rev&rev=567414
Log:
Incorporate characterset checking code
Modified:
jakarta/site/build.xml
jakarta/site/xdocs/empty.xml
Modified: jakarta/site/build.xml
URL: http://svn.apache.org/viewvc/jakarta/site/build.xml?view=diff&rev=567414&r1=567413&r2=567414
==============================================================================
--- jakarta/site/build.xml (original)
+++ jakarta/site/build.xml Sun Aug 19 08:12:06 2007
@@ -58,6 +58,19 @@
<!-- Show the build version in gump logs -->
<echo>Version $Revision$ Last updated: $Date$</echo>
<!--antcall target="_gump_run"/-->
+
+ <!-- Check that the correct charset is being used -->
+ <xslt style="xdocs/stylesheets/charsetchk.xsl"
+ in="xdocs/empty.xml"
+ out="${docs.downloads.tmp}/charsetchk.html" force="true">
+ </xslt>
+ <condition property="compareOK">
+ <filesmatch file1="xdocs/charsetchk.html" file2="${docs.downloads.tmp}/charsetchk.html"/>
+ </condition>
+ <fail unless="compareOK">
+ Failed to process some special characters - check the default encoding.
+ </fail>
+ <delete file="${docs.downloads.tmp}/charsetchk.html"></delete>
</target>
<target name="docs" depends="init,CheckXSL,news-gen"
Modified: jakarta/site/xdocs/empty.xml
URL: http://svn.apache.org/viewvc/jakarta/site/xdocs/empty.xml?view=diff&rev=567414&r1=567413&r2=567414
==============================================================================
--- jakarta/site/xdocs/empty.xml (original)
+++ jakarta/site/xdocs/empty.xml Sun Aug 19 08:12:06 2007
@@ -23,8 +23,8 @@
<body>
<section name="">
-<p>
-</p>
+ <!-- Next line must agree with charsetchk.html -->
+<p>ö=246=ö ü=252=ü</p>
</section>
</body>
---------------------------------------------------------------------
To unsubscribe, e-mail: site-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: site-cvs-help@jakarta.apache.org