bloritsch 2003/02/27 11:10:00 Modified: i18n build.xml default.properties i18n/src/xdocs index.xml Removed: i18n/src/xdocs menu.xml Log: convert to forrest docs build Revision Changes Path 1.53 +9 -42 avalon-excalibur/i18n/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/avalon-excalibur/i18n/build.xml,v retrieving revision 1.52 retrieving revision 1.53 diff -u -r1.52 -r1.53 --- build.xml 7 Feb 2003 18:01:05 -0000 1.52 +++ build.xml 27 Feb 2003 19:09:58 -0000 1.53 @@ -18,7 +18,6 @@ <path id="tools.class.path"> <pathelement location="${junit.jar}"/> - <fileset dir="${avalon-site.dir}/lib"/> </path> <path id="test.class.path"> @@ -298,48 +297,16 @@ </target> - <target name="anakia-avail"> - <available classname="org.apache.velocity.anakia.AnakiaTask" - property="AnakiaTask.present"> - <classpath refid="tools.class.path"/> - </available> - </target> - - <target name="anakia-check" depends="anakia-avail" unless="AnakiaTask.present"> - <echo> - AnakiaTask is not present! Please check to make sure that - velocity.jar is in your classpath. The easiest way to build - the documentation is to checkout avalon-site CVS and specify - avalon-site.dir property. - </echo> - </target> - - <target name="docs" depends="anakia-check" description="Generate documentation and website"> - <taskdef name="anakia" - classname="org.apache.velocity.anakia.AnakiaTask"> - <classpath refid="tools.class.path"/> - </taskdef> + <target name="docs" description="Generate documentation and website"> + <mkdir dir="${docs.dir}"/> + + <ant antfile="${basedir}/../forrestbuild.xml"/> - <anakia basedir="${xdocs.dir}" - destdir="${docs.dir}" - style="docs.vsl" - projectfile="menu.xml" - includes="**/*.xml" - excludes="menu.xml" - velocitypropertiesfile="../site/src/stylesheets/velocity.properties" - /> - - <copy todir="${docs.dir}" filtering="off"> - <fileset dir="../site/src" includes="css/*.css" /> - <fileset dir="${xdocs.dir}"> - <include name="**/images/**"/> - <include name="**/*.gif"/> - <include name="**/*.jpg"/> - <include name="**/*.png"/> - <include name="**/*.css"/> - <include name="**/*.js"/> - </fileset> - </copy> + <copy todir="${docs.dir}"> + <fileset dir="${build.docs}"> + <include name="**"/> + </fileset> + </copy> </target> <target name="site" depends="docs" description=" Places Docs ready for hosting on website"> 1.14 +1 -4 avalon-excalibur/i18n/default.properties Index: default.properties =================================================================== RCS file: /home/cvs/avalon-excalibur/i18n/default.properties,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- default.properties 7 Feb 2003 22:17:56 -0000 1.13 +++ default.properties 27 Feb 2003 19:10:00 -0000 1.14 @@ -44,11 +44,8 @@ build.docs = ${build.dir}/docs build.xdocs = ${build.dir}/xdocs context.dir = ../../avalon/src/documentation -tools.dir = ../../avalon/tools tools.jar = ${java.home}/../lib/tools.jar -xdocs.dir = ${src.dir}/xdocs - -avalon-site.dir = ../../avalon-site +docs.dir = docs # Set the properties for distribution directories dist.dir = dist 1.6 +11 -8 avalon-excalibur/i18n/src/xdocs/index.xml Index: index.xml =================================================================== RCS file: /home/cvs/avalon-excalibur/i18n/src/xdocs/index.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- index.xml 21 Feb 2003 21:07:00 -0000 1.5 +++ index.xml 27 Feb 2003 19:10:00 -0000 1.6 @@ -1,12 +1,15 @@ <?xml version="1.0"?> +<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd"> <document> - <properties> + <header> <title>Excalibur Internationalization - Overview</title> - <author email="dev@avalon.apache.org">Avalon Documentation Team</author> - </properties> + <authors> + <person name="Avalon Documentation Team" email="dev@avalon.apache.org"/> + </authors> + </header> <body> - <section name="Introduction"> + <section><title>Introduction</title> <p> Excalibur's Internationalization package is found in <code>org.apache.avalon.excalibur.i18n</code>. Avalon @@ -15,7 +18,7 @@ XML resource bundles are still under development. </p> </section> - <section name="usage"> + <section><title>usage</title> <p> Using the i18n code is really straightforward; a good example of its use is Avalon-Phoenix, which is completely @@ -23,7 +26,7 @@ (lines wrapped for readability): </p> - <pre> + <source> // in a file called src/java/MyClass.java import org.apache.avalon.excalibur.i18n.ResourceManager; @@ -51,7 +54,7 @@ # in a file called src/java/Resources.properties myclass.error.dostuff.bad-argument=the argument passed to the \ doStuff method is invalid; it is {0}, which is plain silly! - </pre> + </source> <p> That's basically all there is to it. If you follow this @@ -63,7 +66,7 @@ This i18n package is, indeed, a trivial wrapper around the built-in i18n features java has using ResourceBundles and the like. See the java api docs for - <a href="http://java.sun.com/j2se/1.4.1/docs/api/java/util/ResourceBundle.html">ResourceBundle</a> + <link href="http://java.sun.com/j2se/1.4.1/docs/api/java/util/ResourceBundle.html">ResourceBundle</link> to learn more about i18n, and take a look at the javadoc for Resources and ResourceManager to see which options are available.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]