logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: logging-site/src/xdocs/stylesheets project.xml
Date Sat, 20 Dec 2003 18:43:53 GMT
ceki        2003/12/20 10:43:53

  Added:       .        build.properties build.xml
               src/xdocs index.xml
               src/xdocs/stylesheets project.xml
  Log:
  
  Really basic site for Logging Services
  
  PR:
  Obtained from:
  Submitted by:	
  Reviewed by:	
  
  Revision  Changes    Path
  1.1                  logging-site/build.properties
  
  Index: build.properties
  ===================================================================
  
  # jakarta-site2 module is used to transform xml files to html using
  # Anakia. You do not need to worry about this property unless you
  # intend to build the Logging Services web site yourself.
  jakarta-site2=/home/ceki/ASF/jakarta-site2/
  
  
  
  1.1                  logging-site/build.xml
  
  Index: build.xml
  ===================================================================
  
  <!-- This file is an ANT build script. ANT is a Java based build tool. -->
  <!-- It is availale from http://jakarta.apache.org/ant/                -->
  
  
  <project name="logging-site" default="site" basedir="." >
  
  
    <!-- The build.properties file defines the parth to local jar files -->
    <property file="build.properties"/>
  
    <!-- The base directory relative to which most targets are built -->
    <property name="base" value="."/>
  
    <!-- Destination for documentation files -->
    <property name="docs.dest" value="./docs"/>
  
    <!-- Source directory for xml docs -->
    <property name="xdocs.src" value="./src/xdocs"/>
  
    <!-- Construct classpath for building the html pages-->
    <path id="site.classpath">
      <fileset dir="${jakarta-site2}/lib">
        <include name="*.jar"/>
      </fileset>
    </path>
  
  
    <!-- ================================================================= -->
    <!-- Default target                                                    -->
    <!-- ================================================================= -->
  
    <target name="usage">
      <echo>
  
      These are the targets supported by this ANT build scpript:
  
      site     - build Logging Services web-site
      </echo>
    </target>
  
    <!-- ============================================== -->
    <!-- Build the site files using Anakia              -->
    <!-- ============================================== -->
    <target name="prepareSite">
      <available classname="org.apache.velocity.anakia.AnakiaTask"
        property="AnakiaTask.present">
        <classpath refid="site.classpath"/>
      </available>
    </target>
  
    <target name="checkSite" depends="prepareSite" unless="AnakiaTask.present">
      <echo>
        AnakiaTask is not present! Please check to make sure that
        velocity.jar is in your classpath.
      </echo>
    </target>
  
    <target name="site" depends="checkSite" if="AnakiaTask.present">
      <taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask">
        <classpath refid="site.classpath"/>
      </taskdef>
  
      <anakia basedir="${xdocs.src}" destdir="${docs.dest}/"
        extension=".html"
        style="site.vsl"
        projectFile="stylesheets/project.xml"
        excludes="**/stylesheets/**"
        includes="**/*.xml"
        lastModifiedCheck="true"
        templatePath="${jakarta-site2}/xdocs/stylesheets">
      </anakia>
  
     
    </target>
  
  
  </project>
  
  
  
  
  1.1                  logging-site/src/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  <?xml version="1.0"?>
  <document>
  
    <properties>
      <author email="ceki at apache.org">Ceki Gulcu</author>
      <title>Introduction</title>
    </properties>
  
    <meta name="keywords" content="java, logging, tracing, component, framework, API, log4j"/>
  
  
  <body>
      <section name="Introduction">
  
        <p>Inserting log statements into your code is a low-tech method
  	for debugging it.  It may also be the only way because
  	debuggers are not always available or applicable.  This is
  	often the case for distributed applications.</p>
      </section>
    </body>
  </document>
  
  
  
  
  1.1                  logging-site/src/xdocs/stylesheets/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <project name="Logging Services"
           href="http://logging.apache.org/">
  
    <title>Logging Services</title>
    <logo href="images/logo.jpg">Apache Logging Services</logo>
    
    <body>
      
      <menu name="Logging Services Project">
        <item name="Introduction"   href="/index.html"/>
      </menu>
  
    </body>
  </project>
  
  
  

Mime
View raw message