jakarta-site-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@locus.apache.org
Subject cvs commit: jakarta-site2/examples/jakarta-myproject/xdocs/stylesheets project.xml
Date Mon, 27 Nov 2000 03:23:45 GMT
jon         00/11/26 19:23:44

  Added:       examples/jakarta-myproject build.sh build.xml
               examples/jakarta-myproject/xdocs index.xml
                        velocity.properties
               examples/jakarta-myproject/xdocs/stylesheets project.xml
  Log:
  added example website for getting started quickly
  
  Revision  Changes    Path
  1.1                  jakarta-site2/examples/jakarta-myproject/build.sh
  
  Index: build.sh
  ===================================================================
  #!/bin/sh
  
  if [ "$JAVA_HOME" = "" ] ; then
    echo You must set JAVA_HOME to point at your Java Development Kit directory
    exit 1
  fi
  
  # convert the existing path to unix
  if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
     CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
  fi
  
  # Add in your .jar files first
  for i in ./lib/*.jar
  do
      CLASSPATH=$CLASSPATH:"$i"
  done
  # Add in the jakarta-site2 library files
  for i in ../jakarta-site2/lib/*.jar
  do
      CLASSPATH=$CLASSPATH:"$i"
  done
  
  # convert the unix path to windows
  if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
     CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
  fi
  
  BUILDFILE=build.xml
  
  #echo $CLASSPATH
  
  java $ANT_OPTS -classpath "$CLASSPATH" org.apache.tools.ant.Main \
                  -Dant.home=$ANT_HOME \
                  -buildfile ${BUILDFILE} \
                   "$@"
  
  
  
  1.1                  jakarta-site2/examples/jakarta-myproject/build.xml
  
  Index: build.xml
  ===================================================================
  <project name="build-site" default="docs" basedir=".">
  
      <!-- Initialization properties -->
      <property name="project.name"   value="site"/>
      <property name="docs.src" value="./xdocs"/>
      <property name="docs.dest" value="./docs"/>
  
      <target name="prepare">    
          <available classname="org.apache.velocity.anakia.AnakiaTask" 
              property="AnakiaTask.present"/>
      </target>
  
      <target depends="prepare" name="prepare-error" unless="AnakiaTask.present">
          <echo>
              AnakiaTask is not present! Please check to make sure that 
              velocity.jar is in your classpath.
          </echo>
      </target>
  
      <target name="docs" depends="prepare-error" if="AnakiaTask.present">
          <taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask"/>
          <anakia basedir="${docs.src}" destdir="${docs.dest}/"
               extension=".html" style="./site.vsl"
               projectFile="stylesheets/project.xml"
               excludes="**/stylesheets/** empty.xml"
               includes="**/*.xml"
               lastModifiedCheck="true"
               velocityPropertiesFile="${docs.src}/velocity.properties">
          </anakia>
  
          <copy todir="${docs.dest}/images" filtering="no">
              <fileset dir="${docs.src}/images">
                  <include name="**/*.gif"/>
                  <include name="**/*.jpeg"/>
                  <include name="**/*.jpg"/>
              </fileset>
          </copy>
          <!-- In case we have CSS someday
          <copy todir="${docs.dest}" filtering="no">
              <fileset dir="${docs.src}">
                  <include name="**/*.css"/>
              </fileset>
          </copy>
          -->
      </target>
  </project>
  
  
  
  1.1                  jakarta-site2/examples/jakarta-myproject/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  <?xml version="1.0"?>
  <document>
  
    <properties>
      <author email="jon@latchkey.com">Jon S. Stevens</author>
      <title>My Project</title>
    </properties>
  
  <body>
  
    <section name="My Example Project">
  
  <p>
  The goal of the Jakarta Project is to provide commercial-quality
  server solutions based on the Java Platform that are developed in an
  open and cooperative fashion.
  </p>
  
    </section>
  
  </body>
  </document>
  
  
  
  
  1.1                  jakarta-site2/examples/jakarta-myproject/xdocs/velocity.properties
  
  Index: velocity.properties
  ===================================================================
  #----------------------------------------------------------------------------
  # These are the default properties for the
  # Velocity Runtime. These values are used when
  # Runtime.init() is called, and when Runtime.init(properties)
  # fails to find the specificed properties file.
  #----------------------------------------------------------------------------
  
  #----------------------------------------------------------------------------
  # R U N T I M E  L O G  
  #----------------------------------------------------------------------------
  # This is the location of the Velocity Runtime log.
  #----------------------------------------------------------------------------
  
  runtime.log = velocity.log
  
  #----------------------------------------------------------------------------
  # T E M P L A T E  E N C O D I N G
  #----------------------------------------------------------------------------
  
  template.encoding=8859_1
  
  #----------------------------------------------------------------------------
  # C O N T E N T  T Y P E  
  #----------------------------------------------------------------------------
  # This is the default content type for the VelocityServlet.
  #----------------------------------------------------------------------------
  
  default.contentType=text/html
  
  #----------------------------------------------------------------------------
  # F O R E A C H  P R O P E R T I E S
  #----------------------------------------------------------------------------
  # These properties control how the counter is accessed in the #foreach
  # directive. By default the reference $velocityCount will be available
  # in the body of the #foreach directive. The default starting value
  # for this reference is 1.
  #----------------------------------------------------------------------------
  
  counter.name = velocityCount
  counter.initial.value = 1
  
  #----------------------------------------------------------------------------
  # I N C L U D E  P R O P E R T I E S
  #----------------------------------------------------------------------------
  # These are the properties that governed the way #include'd content
  # is governed.
  #----------------------------------------------------------------------------
  
  include.path=../jakarta-site2/xdocs/stylesheets
  include.cache = false
  include.output.errormsg.start = <!-- include error : 
  include.output.errormsg.end   =  see error log -->
  
  #----------------------------------------------------------------------------
  # P A R S E  P R O P E R T I E S
  #----------------------------------------------------------------------------
  
  parse_directive.maxdepth = 10
  
  #----------------------------------------------------------------------------
  # T E M P L A T E  L O A D E R S
  #----------------------------------------------------------------------------
  # 
  # 
  #----------------------------------------------------------------------------
  
  template.loader.1.public.name = File
  template.loader.1.description = Velocity File Template Loader
  template.loader.1.class = org.apache.velocity.runtime.loader.FileTemplateLoader
  template.loader.1.template.path = ../jakarta-site2/xdocs/stylesheets
  template.loader.1.cache = false
  template.loader.1.modificationCheckInterval = 2
  
  #template.loader.2.public.name = URL
  #template.loader.2.description = Velocity URL Template Loader
  #template.loader.2.class = org.apache.velocity.runtime.loader.URLTemplateLoader
  #template.loader.2.template.path = http://localhost/templates/
  #template.loader.2.cache = false
  
  #----------------------------------------------------------------------------
  # E X T E R N A L  S E R V I C E  I N I T I A L I Z A T I O N
  #----------------------------------------------------------------------------
  # If this property is set to true then an external service will
  # set certain system properties and initialize the Velocity
  # Runtime. This method is used by Turbine to initialize the
  # Velocity Runtime for the TurbineVelocityService.
  #----------------------------------------------------------------------------
  
  external.init = false
  
  #----------------------------------------------------------------------------
  # VELOCIMACRO GLOBAL LIBRARY
  #----------------------------------------------------------------------------
  # name of default global library.  It is expected to be in the regular
  # template path.  You may remove it (either the file or this property) if 
  # you wish with no harm.
  #----------------------------------------------------------------------------
  #velocimacro.library.global=VM_global_library.vm
  
  
  
  
  1.1                  jakarta-site2/examples/jakarta-myproject/xdocs/stylesheets/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <project name="Jakarta Site"
          href="http://jakarta.apache.org/">
  
      <title>The Jakarta Site</title>
      <!-- uncomment and put your project logo here!
      <logo href="/images/jakarta-logo.gif">The Jakarta Project</logo>
      -->
      
      <body>
      <menu name="Essentials">
          <item name="Front Page"            href="/index.html"/>
          <item name="News &amp; Status"     href="/site/news.html"/>
          <item name="Mission"               href="/site/mission.html"/>
          <item name="Guidelines Notes"      href="/site/guidelines.html"/>
          <item name="FAQs"                  href="/site/faqs.html"/>
      </menu>
  
      <menu name="Download">
          <item name="Binaries"              href="/site/binindex.html"/>
          <item name="Source Code"           href="/site/sourceindex.html"/>
      </menu>
  
      <menu name="Get Involved">
          <item name="Overview"              href="/site/getinvolved.html"/>
          <item name="CVS Repositories"      href="/site/cvsindex.html"/>
          <item name="Mailing Lists"         href="/site/mail.html"/>
          <item name="Reference Library"     href="/site/library.html"/>
          <item name="Bug Database"          href="/site/bugs.html"/>
      </menu>
  
      <menu name="SubProjects">
          <item name="Ant"                   href="/ant/index.html"/>
          <item name="ORO"                   href="/oro/index.html"/>
          <item name="Regexp"                href="/regexp/index.html"/>
          <item name="Slide"                 href="/slide/index.html"/>
          <item name="Struts"                href="/struts/index.html"/>
          <item name="Taglibs"               href="/taglibs/index.html"/>
          <item name="Tomcat"                href="/tomcat/index.html"/>
          <item name="Velocity"              href="/velocity/index.html"/>
          <item name="Watchdog"              href="/watchdog/index.html"/>
      </menu>
  
      <menu name="Misc">
          <item name="Who We Are"            href="/site/whoweare.html"/>
          <item name="Acknowledgements"      href="/site/acknowledgements.html"/>
          <item name="Contact"               href="/site/contact.html"/>
          <item name="Legal"                 href="/site/legal.html"/>
      </menu>
      </body>
  </project>
  
  
  

Mime
View raw message