Author: fhanik Date: Wed Apr 26 12:49:26 2006 New Revision: 397280 URL: http://svn.apache.org/viewcvs?rev=397280&view=rev Log: Documentation and build script for it
Added: tomcat/container/tc5.5.x/modules/groupcom/build/ tomcat/container/tc5.5.x/modules/groupcom/build/build.xml tomcat/container/tc5.5.x/modules/groupcom/build/commons-logging-api.jar (with props) tomcat/container/tc5.5.x/modules/groupcom/doc/tomcat-docs.xsl Modified: tomcat/container/tc5.5.x/modules/groupcom/doc/introduction.xml tomcat/container/tc5.5.x/modules/groupcom/test/org/apache/catalina/tribes/demos/ChannelCreator.java Added: tomcat/container/tc5.5.x/modules/groupcom/build/build.xml URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/build/build.xml?rev=397280&view=auto ============================================================================== --- tomcat/container/tc5.5.x/modules/groupcom/build/build.xml (added) +++ tomcat/container/tc5.5.x/modules/groupcom/build/build.xml Wed Apr 26 12:49:26 2006 @@ -0,0 +1,100 @@ +<project name="Tribes" default="dist" basedir=".."> + + <!--Independent build script for Tribes, to not require the entire Tomcat tree to build + this module--> + + <path id="tribes.classpath"> + <pathelement location="${basedir}/build/commons-logging-api.jar"/> + </path> + + <path id="java.sourcepath"> + <pathelement location="${basedir}/src/share"/> + <pathelement location="${basedir}/test"/> + </path> + + <path id="javadoc.sourcepath"> + <pathelement location="${basedir}/src/share"/> + <pathelement location="${basedir}/test"/> + </path> + + + <property name="dist.path" value="${basedir}/dist/tribes"/> + <property name="temp.path" value="${basedir}/dist/temp"/> + <property name="compile.path" value="${temp.path}/classes"/> + <property name="docs.path" value="${temp.path}/docs"/> + <property name="javadoc.path" value="${temp.path}/javadoc"/> + + <path id="tribes.classpath"> + <pathelement location="${basedir}/build/commons-logging-api.jar"/> + </path> + + + <target name="clean"> + <delete dir="${dist.path}"/> + <delete dir="${temp.path}"/> + </target> + + <target name="init" depends="clean"> + <mkdir dir="${dist.path}"/> + <mkdir dir="${compile.path}"/> + <mkdir dir="${docs.path}"/> + <mkdir dir="${javadoc.path}"/> + </target> + + <target name="compile" depends="init"> + <javac debug="true" deprecation="true" destdir="${compile.path}" nowarn="true" source="1.4" target="1.4"> + <src refid="java.sourcepath" /> + </javac> + <!--include all the other resources, including source code--> + <copy todir="${compile.path}"> + <fileset dir="${basedir}/src/share"/> + <fileset dir="${basedir}/test"/> + </copy> + </target> + + <target name="docs"> + <style basedir="${basedir}/doc" + destdir="${docs.path}" + extension=".html" + style="tomcat-docs.xsl" + excludes="build.xml project.xml" + includes="*.xml"> + <param name="relative-path" expression="."/> + </style> + </target> + + <target name="javadoc"> + <javadoc packagenames="org.apache.catalina.*" + classpathref="tribes.classpath" + sourcepathref="java.sourcepath" + destdir="${javadoc.path}" + author="true" + version="true" + windowtitle="Tribes API Documentation" + doctitle="Tribes API" + bottom="Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved." + verbose="false" + /> + </target> + + <target name="dist" depends="compile,docs,javadoc"> + <jar destfile="${dist.path}/apache-tribes.jar"> + <fileset dir="${compile.path}"/> + <fileset dir="${basedir}"> + <include name="VERSION"/> + </fileset> + </jar> + <jar destfile="${dist.path}/tribes-all.zip"> + <fileset dir="${dist.path}"> + <include name="apache-tribes.jar"/> + </fileset> + <fileset dir="${temp.path}"> + <exclude name="classes/**"/> + </fileset> + <fileset dir="${basedir}"> + <include name="VERSION"/> + </fileset> + </jar> + </target> + +</project> Added: tomcat/container/tc5.5.x/modules/groupcom/build/commons-logging-api.jar URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/build/commons-logging-api.jar?rev=397280&view=auto ============================================================================== Binary file - no diff available. Propchange: tomcat/container/tc5.5.x/modules/groupcom/build/commons-logging-api.jar ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Modified: tomcat/container/tc5.5.x/modules/groupcom/doc/introduction.xml URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/doc/introduction.xml?rev=397280&r1=397279&r2=397280&view=diff ============================================================================== --- tomcat/container/tc5.5.x/modules/groupcom/doc/introduction.xml (original) +++ tomcat/container/tc5.5.x/modules/groupcom/doc/introduction.xml Wed Apr 26 12:49:26 2006 @@ -238,7 +238,14 @@ Of course, the membership component will be expanded to support WAN memberships in the future. But this is very useful, when you want to hide members from the rest of the group and only communicate with them </p> - +</section> + +<section name="Where can I get Tribes"> + <p> + I hope you have enjoyed this short introduction to Tribes. You can download <a href="../apache-tribes.jar">Tribes here</a> + or you can download Tribes <a href="../tribes-all.zip">including javadoc and this doc</a> + </p> + </section> Added: tomcat/container/tc5.5.x/modules/groupcom/doc/tomcat-docs.xsl URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/doc/tomcat-docs.xsl?rev=397280&view=auto ============================================================================== --- tomcat/container/tc5.5.x/modules/groupcom/doc/tomcat-docs.xsl (added) +++ tomcat/container/tc5.5.x/modules/groupcom/doc/tomcat-docs.xsl Wed Apr 26 12:49:26 2006 @@ -0,0 +1,436 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- Content Stylesheet for "tomcat-docs" Documentation --> + +<!-- $Id: tomcat-docs.xsl 377243 2006-02-12 21:26:03Z markt $ --> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version="1.0"> + + + <!-- Output method --> + <xsl:output method="html" + encoding="iso-8859-1" + indent="no"/> + + + <!-- Defined parameters (overrideable) --> + <xsl:param name="home-name" select="'The Tomcat Project'"/> + <xsl:param name="home-href" select="'http://tomcat.apache.org/'"/> + <xsl:param name="home-logo" select="'/images/tomcat.gif'"/> + <xsl:param name="printer-logo" select="'/images/printer.gif'"/> + <xsl:param name="apache-logo" select="'/images/asf-logo.gif'"/> + <xsl:param name="relative-path" select="'.'"/> + <xsl:param name="void-image" select="'/images/void.gif'"/> + <xsl:param name="project-menu" select="'menu'"/> + <xsl:param name="standalone" select="''"/> + <xsl:param name="buglink" select="'http://issues.apache.org/bugzilla/show_bug.cgi?id='"/> + + <!-- Defined variables (non-overrideable) --> + <xsl:variable name="body-bg" select="'#ffffff'"/> + <xsl:variable name="body-fg" select="'#000000'"/> + <xsl:variable name="body-link" select="'#525D76'"/> + <xsl:variable name="banner-bg" select="'#525D76'"/> + <xsl:variable name="banner-fg" select="'#ffffff'"/> + <xsl:variable name="sub-banner-bg" select="'#828DA6'"/> + <xsl:variable name="sub-banner-fg" select="'#ffffff'"/> + <xsl:variable name="source-color" select="'#023264'"/> + <xsl:variable name="attributes-color" select="'#023264'"/> + <xsl:variable name="table-th-bg" select="'#039acc'"/> + <xsl:variable name="table-td-bg" select="'#a0ddf0'"/> + + <!-- Process an entire document into an HTML page --> + <xsl:template match="document"> + <xsl:variable name="project" + select="document('project.xml')/project"/> + <html> + <head> + <title><xsl:value-of select="project/title"/> - <xsl:value-of select="properties/title"/></title> + <xsl:for-each select="properties/author"> + <xsl:variable name="name"> + <xsl:value-of select="."/> + </xsl:variable> + <xsl:variable name="email"> + <xsl:value-of select="@email"/> + </xsl:variable> + <meta name="author" value="{$name}"/> + <meta name="email" value="{$email}"/> + </xsl:for-each> + </head> + + <body bgcolor="{$body-bg}" text="{$body-fg}" link="{$body-link}" + alink="{$body-link}" vlink="{$body-link}"> + + <table border="0" width="100%" cellspacing="0"> + + <xsl:comment>PAGE HEADER</xsl:comment> + <tr> + <td> + <xsl:if test="project/logo"> + <xsl:variable name="alt"> + <xsl:value-of select="project/logo"/> + </xsl:variable> + <xsl:variable name="home"> + <xsl:value-of select="project/@href"/> + </xsl:variable> + <xsl:variable name="src"> + <xsl:value-of select="$relative-path"/><xsl:value-of select="project/logo/@href"/> + </xsl:variable> + + <xsl:comment>PROJECT LOGO</xsl:comment> + <a href="{$home}"> + <img src="{$src}" align="right" alt="{$alt}" border="0"/> + </a> + </xsl:if> + </td> + <td> + <font face="arial,helvetica,sanserif"> + <h1><xsl:value-of select="$project/title"/></h1> + </font> + </td> + <td> + <xsl:comment>APACHE LOGO</xsl:comment> + <xsl:variable name="src"> + <xsl:value-of select="$relative-path"/><xsl:value-of select="$apache-logo"/> + </xsl:variable> + <a href="http://www.apache.org/"> + <img src="{$src}" align="right" alt="Apache Logo" border="0"/> + </a> + </td> + </tr> + </table> + + <table border="0" width="100%" cellspacing="4"> + + <xsl:comment>HEADER SEPARATOR</xsl:comment> + <tr> + <td colspan="2"> + <hr noshade="noshade" size="1"/> + </td> + </tr> + + <tr> + + <!-- Don't generate a menu if styling printer friendly docs --> + <xsl:if test="$project-menu = 'menu'"> + <xsl:comment>LEFT SIDE NAVIGATION</xsl:comment> + <td width="20%" valign="top" nowrap="true"> + <xsl:apply-templates select="project/body/menu"/> + </td> + </xsl:if> + + <xsl:comment>RIGHT SIDE MAIN BODY</xsl:comment> + <td width="80%" valign="top" align="left"> + <table border="0" width="100%" cellspacing="4"> + <tr> + <td align="left" valign="top"> + <h1><xsl:value-of select="project/title"/></h1> + <h2><xsl:value-of select="properties/title"/></h2> + </td> + <td align="right" valign="top" nowrap="true"> + <!-- Add the printer friendly link for docs with a menu --> + <xsl:if test="$project-menu = 'menu'"> + <xsl:variable name="src"> + <xsl:value-of select="$relative-path"/><xsl:value-of select="$printer-logo"/> + </xsl:variable> + <xsl:variable name="url"> + <xsl:value-of select="/document/@url"/> + </xsl:variable> + <small> + <a href="printer/{$url}"> + <img src="{$src}" border="0" alt="Printer Friendly Version"/> + <br />print-friendly<br />version + </a> + </small> + </xsl:if> + <xsl:if test="$project-menu != 'menu'"> + <xsl:variable name="void"> + <xsl:value-of select="$relative-path"/><xsl:value-of select="$void-image"/> + </xsl:variable> + <img src="{$void}" width="1" height="1" vspace="0" hspace="0" border="0"/> + </xsl:if> + </td> + </tr> + </table> + <xsl:apply-templates select="body/section"/> + </td> + + </tr> + + <xsl:comment>FOOTER SEPARATOR</xsl:comment> + <tr> + <td colspan="2"> + <hr noshade="noshade" size="1"/> + </td> + </tr> + + <xsl:comment>PAGE FOOTER</xsl:comment> + <tr><td colspan="2"> + <div align="center"><font color="{$body-link}" size="-1"><em> + Copyright © 1999-2006, Apache Software Foundation + </em></font></div> + </td></tr> + + </table> + </body> + </html> + + </xsl:template> + + + <!-- Process a menu for the navigation bar --> + <xsl:template match="menu"> + <p><strong><xsl:value-of select="@name"/></strong></p> + <ul> + <xsl:apply-templates select="item"/> + </ul> + </xsl:template> + + + <!-- Process a menu item for the navigation bar --> + <xsl:template match="item"> + <xsl:variable name="href"> + <xsl:value-of select="@href"/> + </xsl:variable> + <li><a href="{$href}"><xsl:value-of select="@name"/></a></li> + </xsl:template> + + + <!-- Process a documentation section --> + <xsl:template match="section"> + <xsl:variable name="name"> + <xsl:value-of select="@name"/> + </xsl:variable> + <table border="0" cellspacing="0" cellpadding="2"> + <!-- Section heading --> + <tr><td bgcolor="{$banner-bg}"> + <font color="{$banner-fg}" face="arial,helvetica.sanserif"> + <a name="{$name}"> + <strong><xsl:value-of select="@name"/></strong></a></font> + </td></tr> + <!-- Section body --> + <tr><td><blockquote> + <xsl:apply-templates/> + </blockquote></td></tr> + </table> + </xsl:template> + + + <!-- Process a documentation subsection --> + <xsl:template match="subsection"> + <xsl:variable name="name"> + <xsl:value-of select="@name"/> + </xsl:variable> + <table border="0" cellspacing="0" cellpadding="2"> + <!-- Subsection heading --> + <tr><td bgcolor="{$sub-banner-bg}"> + <font color="{$sub-banner-fg}" face="arial,helvetica.sanserif"> + <a name="{$name}"> + <strong><xsl:value-of select="@name"/></strong></a></font> + </td></tr> + <!-- Subsection body --> + <tr><td><blockquote> + <xsl:apply-templates/> + </blockquote></td></tr> + </table> + </xsl:template> + + + <!-- Process a source code example --> + <xsl:template match="source"> + <xsl:variable name="void"> + <xsl:value-of select="$relative-path"/><xsl:value-of select="$void-image"/> + </xsl:variable> + <div align="left"> + <table cellspacing="4" cellpadding="0" border="0"> + <tr> + <td bgcolor="{$source-color}" width="1" height="1"> + <img src="{$void}" width="1" height="1" vspace="0" hspace="0" border="0"/> + </td> + <td bgcolor="{$source-color}" height="1"> + <img src="{$void}" width="1" height="1" vspace="0" hspace="0" border="0"/> + </td> + <td bgcolor="{$source-color}" width="1" height="1"> + <img src="{$void}" width="1" height="1" vspace="0" hspace="0" border="0"/> + </td> + </tr> + <tr> + <td bgcolor="{$source-color}" width="1"> + <img src="{$void}" width="1" height="1" vspace="0" hspace="0" border="0"/> + </td> + <td bgcolor="#ffffff" height="1"><pre> + <xsl:value-of select="."/> + </pre></td> + <td bgcolor="{$source-color}" width="1"> + <img src="{$void}" width="1" height="1" vspace="0" hspace="0" border="0"/> + </td> + </tr> + <tr> + <td bgcolor="{$source-color}" width="1" height="1"> + <img src="{$void}" width="1" height="1" vspace="0" hspace="0" border="0"/> + </td> + <td bgcolor="{$source-color}" height="1"> + <img src="{$void}" width="1" height="1" vspace="0" hspace="0" border="0"/> + </td> + <td bgcolor="{$source-color}" width="1" height="1"> + <img src="{$void}" width="1" height="1" vspace="0" hspace="0" border="0"/> + </td> + </tr> + </table> + </div> + </xsl:template> + + + <!-- Process an attributes list with nested attribute elements --> + <xsl:template match="attributes"> + <table border="1" cellpadding="5"> + <tr> + <th width="15%" bgcolor="{$attributes-color}"> + <font color="#ffffff">Attribute</font> + </th> + <th width="85%" bgcolor="{$attributes-color}"> + <font color="#ffffff">Description</font> + </th> + </tr> + <xsl:for-each select="attribute"> + <tr> + <td align="left" valign="center"> + <xsl:if test="@required = 'true'"> + <strong><code><xsl:value-of select="@name"/></code></strong> + </xsl:if> + <xsl:if test="@required != 'true'"> + <code><xsl:value-of select="@name"/></code> + </xsl:if> + </td> + <td align="left" valign="center"> + <xsl:apply-templates/> + </td> + </tr> + </xsl:for-each> + </table> + </xsl:template> + + <!-- Fix relative links in printer friendly versions of the docs --> + <xsl:template match="a"> + <xsl:variable name="href" select="@href"/> + <xsl:choose> + <xsl:when test="$standalone = 'standalone'"> + <xsl:apply-templates/> + </xsl:when> + <xsl:when test="$project-menu != 'menu' and starts-with(@href,'../')"> + <a href="../{$href}"><xsl:apply-templates/></a> + </xsl:when> + <xsl:when test="$project-menu != 'menu' and starts-with(@href,'./') and contains(substring(@href,3),'/')"> + <a href=".{$href}"><xsl:apply-templates/></a> + </xsl:when> + <xsl:when test="$project-menu != 'menu' and not(contains(@href,'//')) and not(starts-with(@href,'/')) and not(starts-with(@href,'#')) and contains(@href,'/')"> + <a href="../{$href}"><xsl:apply-templates/></a> + </xsl:when> + <xsl:when test="$href != ''"> + <a href="{$href}"><xsl:apply-templates/></a> + </xsl:when> + <xsl:otherwise> + <xsl:variable name="name" select="@name"/> + <a name="{$name}"><xsl:apply-templates/></a> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <!-- Changelog related tags --> + <xsl:template match="changelog"> + <table border="0" cellpadding="2" cellspacing="2"> + <xsl:apply-templates/> + </table> + </xsl:template> + + <xsl:template match="changelog/add"> + <tr> + <xsl:variable name="src"><xsl:value-of select="$relative-path"/>/images/add.gif</xsl:variable> + <td><img alt="add" class="icon" src="{$src}"/></td> + <td><xsl:apply-templates/></td> + </tr> + </xsl:template> + + <xsl:template match="changelog/update"> + <tr> + <xsl:variable name="src"><xsl:value-of select="$relative-path"/>/images/update.gif</xsl:variable> + <td><img alt="update" class="icon" src="{$src}"/></td> + <td><xsl:apply-templates/></td> + </tr> + </xsl:template> + + <xsl:template match="changelog/design"> + <tr> + <xsl:variable name="src"><xsl:value-of select="$relative-path"/>/images/design.gif</xsl:variable> + <td><img alt="design" class="icon" src="{$src}"/></td> + <td><xsl:apply-templates/></td> + </tr> + </xsl:template> + + <xsl:template match="changelog/docs"> + <tr> + <xsl:variable name="src"><xsl:value-of select="$relative-path"/>/images/docs.gif</xsl:variable> + <td><img alt="docs" class="icon" src="{$src}"/></td> + <td><xsl:apply-templates/></td> + </tr> + </xsl:template> + + <xsl:template match="changelog/fix"> + <tr> + <xsl:variable name="src"><xsl:value-of select="$relative-path"/>/images/fix.gif</xsl:variable> + <td><img alt="fix" class="icon" src="{$src}"/></td> + <td><xsl:apply-templates/></td> + </tr> + </xsl:template> + + <xsl:template match="changelog/scode"> + <tr> + <xsl:variable name="src"><xsl:value-of select="$relative-path"/>/images/code.gif</xsl:variable> + <td><img alt="code" class="icon" src="{$src}"/></td> + <td><xsl:apply-templates/></td> + </tr> + </xsl:template> + + <!-- Process an attributes list with nested attribute elements --> + <xsl:template match="status"> + <table border="1" cellpadding="5"> + <tr> + <th width="15%" bgcolor="{$attributes-color}"> + <font color="#ffffff">Priority</font> + </th> + <th width="50%" bgcolor="{$attributes-color}"> + <font color="#ffffff">Action Item</font> + </th> + <th width="25%" bgcolor="{$attributes-color}"> + <font color="#ffffff">Volunteers</font> + </th> + <xsl:for-each select="item"> + <tr> + <td align="left" valign="center"> + <xsl:value-of select="@priority"/> + </td> + <td align="left" valign="center"> + <xsl:apply-templates/> + </td> + <td align="left" valign="center"> + <xsl:value-of select="@owner"/> + </td> + </tr> + </xsl:for-each> + </tr> + </table> + </xsl:template> + + <!-- Link to a bug report --> + <xsl:template match="bug"> + <xsl:variable name="link"><xsl:value-of select="$buglink"/><xsl:value-of select="text()"/></xsl:variable> + <a href="{$link}"><xsl:apply-templates/></a> + </xsl:template> + + <!-- Process everything else by just passing it through --> + <xsl:template match="*|@*"> + <xsl:copy> + <xsl:apply-templates select="@*|*|text()"/> + </xsl:copy> + </xsl:template> + +</xsl:stylesheet> Modified: tomcat/container/tc5.5.x/modules/groupcom/test/org/apache/catalina/tribes/demos/ChannelCreator.java URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/test/org/apache/catalina/tribes/demos/ChannelCreator.java?rev=397280&r1=397279&r2=397280&view=diff ============================================================================== --- tomcat/container/tc5.5.x/modules/groupcom/test/org/apache/catalina/tribes/demos/ChannelCreator.java (original) +++ tomcat/container/tc5.5.x/modules/groupcom/test/org/apache/catalina/tribes/demos/ChannelCreator.java Wed Apr 26 12:49:26 2006 @@ -29,7 +29,6 @@ import org.apache.catalina.tribes.transport.MultiPointSender; import org.apache.catalina.tribes.transport.ReceiverBase; import org.apache.catalina.tribes.transport.ReplicationTransmitter; -import org.apache.tomcat.util.IntrospectionUtils; /** * <p>Title: </p> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]