You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/06/17 14:35:59 UTC

cvs commit: jakarta-avalon-excalibur/cli/src/xdocs/stylesheets project.xml

donaldp     2002/06/17 05:35:59

  Modified:    cli      build.xml default.properties
               cli/src/xdocs index.xml
  Added:       cli/src/xdocs/stylesheets project.xml
  Removed:     cli/src/xdocs book.xml cli.uris
               cli/src/xdocs/dtd changes-v10.dtd characters.ent
                        document-v10.dtd faq-v10.dtd specification-v10.dtd
                        todo-v10.dtd
               cli/src/xdocs/images build.gif code.gif design.gif
                        update.gif
  Log:
  Update distribution target to incliude src.zip and to use anakia to build docs.
  
  Revision  Changes    Path
  1.42      +49 -80    jakarta-avalon-excalibur/cli/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/cli/build.xml,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- build.xml	2 Jun 2002 06:40:44 -0000	1.41
  +++ build.xml	17 Jun 2002 12:35:58 -0000	1.42
  @@ -21,6 +21,7 @@
           <pathelement location="${tools.jar}"/>
           <fileset dir="${tools.dir}/lib"/>
           <fileset dir="${tools.dir}/ext"/>
  +        <fileset dir="${jakarta-site.dir}/lib"/>
       </path>
   
       <path id="test.class.path">
  @@ -254,15 +255,19 @@
   
       <!-- Creates the distribution -->
       <target name="dist"
  -        depends="dist-jar, test-reports, checkstyle-report, javadocs"
  +        depends="dist-jar, test-reports, checkstyle-report, javadocs, docs"
           description="Generates a distribution (jar + javadocs + unit tests + checkstyle reports)">
   
           <copy file="${build.conf}/LICENSE.txt" todir="${dist.dir}"/>
           <copy file="../KEYS" todir="${dist.dir}"/>
           <copy file="README.txt" todir="${dist.dir}"/>
   
  +        <zip zipfile="${dist.dir}/src.zip" compress="false">
  +            <zipfileset dir="src/java"/>
  +        </zip>
  +
           <copy todir="${dist.dir}">
  -            <fileset dir="examples"/>
  +            <fileset dir="." includes="examples/**" />
           </copy>
   
           <mkdir dir="${dist.base}"/>
  @@ -317,84 +322,48 @@
   
       </target>
   
  -    <!-- Setup the filters -->
  -    <target name="setup-filters">
  -      <filter token="Name" value="Avalon ${Name}"/>
  -      <filter token="name" value="${dir-name}"/>
  -      <filter token="version" value="${version}"/>
  -      <filter token="year" value="${year}"/>
  -      <filter token="status" value="${status}"/>
  -      <filter token="release" value="${release}"/>
  -      <filter token="short-version" value="${short.version}"/>
  -
  -      <property name="avalon.base" value="http://jakarta.apache.org/avalon"/>
  -      <property name="framework.base" value="http://jakarta.apache.org/avalon/framework"/>
  -      <property name="phoenix.base" value="http://jakarta.apache.org/avalon/phoenix"/>
  -      <property name="cornerstone.base" value="http://jakarta.apache.org/avalon/cornerstone"/>
  -      <property name="logkit.base" value="http://jakarta.apache.org/avalon/logkit"/>
  -      <property name="testlet.base" value="http://jakarta.apache.org/avalon/testlet"/>
  -
  -      <filter token="year" value="${year}"/>
  -      <filter token="AVALON_BASE" value="${avalon.base}"/>
  -      <filter token="FRAMEWORK_BASE" value="${framework.base}"/>
  -      <filter token="PHOENIX_BASE" value="${phoenix.base}"/>
  -      <filter token="CORNERSTONE_BASE" value="${cornerstone.base}"/>
  -      <filter token="LOGKIT_BASE" value="${logkit.base}"/>
  -      <filter token="TESTLET_BASE" value="${testlet.base}"/>
  -    </target>
  -    
  -    
  -    <!-- Prepares the documentation directory -->
  -    <target name="docs" depends="setup-filters"> <!-- depends="javadocs" description="Generates the Docs" -->
  -      <mkdir dir="${docs.dir}"/>
  -
  -      <mkdir dir="${build.context}"/>
  -      <mkdir dir="${build.xdocs}"/>
  -      <mkdir dir="${build.docs}"/>
  -      <mkdir dir="${build.dir}/work"/>
  -  
  -      <!-- Base pointers for non-xdocs documentation. Override these in .ant.properties to link to local docs -->
  -      <copy todir="${build.context}" filtering="on">
  -        <fileset dir="${context.dir}">
  -          <exclude name="diagrams/**"/>
  -          <exclude name="resources/**"/>
  -          <exclude name="xdocs"/>
  -        </fileset>
  -      </copy>
  -  
  -      <copy todir="${build.context}/xdocs" filtering="on" overwrite="yes">
  -        <fileset dir="${xdocs.dir}"/>
  -      </copy>
  -
  -      <copy todir="${build.context}/resources" filtering="off" overwrite="yes">
  -        <fileset dir="${context.dir}/resources"/>
  -        <fileset dir="${xdocs.dir}">
  -          <include name="**/images/**"/>
  -        </fileset>
  -      </copy>
  -
  -      <java classname="org.apache.cocoon.Main" fork="true">
  -        <arg value="-c${build.context}/"/>
  -        <arg value="-d${build.docs}"/>
  -        <arg value="-w${build.dir}/work"/>
  -        <arg value="-l${build.dir}/work/cocoon.log"/>
  -        <arg value="-uINFO"/>
  -        <arg value="-f${xdocs.dir}/${dir-name}.uris"/>
  -        <classpath>
  -          <path refid="tools.class.path"/>
  -          <fileset dir="${tools.dir}/ext"/>
  -        </classpath>
  -      </java>
  -
  -      <copy todir="${docs.dir}">
  -        <fileset dir="${build.docs}">
  -          <include name="**"/>
  -        </fileset>
  -      </copy>    
  -
  -      <!-- hack for stupid transport on api link -->
  -      <replace file="${docs.dir}/index.html" token="index.html.xml" value="index.html"/>
  -     
  +    <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 jakarta-site CVS and specify
  +            jakarta-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>
  +
  +        <anakia basedir="${xdocs.dir}"
  +            destdir="${docs.dir}"
  +            style="docs.vsl"
  +            projectfile="stylesheets/project.xml"
  +            includes="**/*.xml"
  +            excludes="stylesheets/**"
  +            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>
       </target>
       
       <target name="site" depends="javadocs, docs" description=" Places Docs ready for hosting on website">  
  
  
  
  1.6       +1 -1      jakarta-avalon-excalibur/cli/default.properties
  
  Index: default.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/cli/default.properties,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- default.properties	16 Apr 2002 12:00:40 -0000	1.5
  +++ default.properties	17 Jun 2002 12:35:58 -0000	1.6
  @@ -9,7 +9,7 @@
   Name=Excalibur CLI
   dir-name=cli
   version=1.0
  -package-version=0.99
  +package-version=1.0
   year=2000-2002
   
   #  Settings used to configure compile environment
  
  
  
  1.7       +9 -17     jakarta-avalon-excalibur/cli/src/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/cli/src/xdocs/index.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- index.xml	8 Jun 2002 05:38:58 -0000	1.6
  +++ index.xml	17 Jun 2002 12:35:58 -0000	1.7
  @@ -1,14 +1,11 @@
  -<?xml version="1.0"?>
  -
  +<?xml version="1.0" encoding="UTF-8"?>
   <document>
  -    <header>
  +    <properties>
           <title>Excalibur Command-line Utilities - Overview</title>
  -        <authors>
  -            <person name="Peter Donald" email="peter@apache.org"/>
  -        </authors>
  -    </header>
  +        <author email="peter@apache.org">Peter Donald</author>
  +    </properties>
       <body>
  -        <s1 title="Introduction">
  +        <section name="Introduction">
               <p>
               This component allows you to parse Command Line Options
               during application start-up.  It is designed to parse the
  @@ -23,8 +20,8 @@
               fast and easy.  See the examples/README.txt file for
               further details.
               </p>
  -        </s1>
  -        <s1 title="Parsing Rules">
  +        </section>
  +        <section name="Parsing Rules">
               <p>
               The command line is parsed according to the following rules. There are
               two forms of options in this package, the Long form and the Short form.
  @@ -66,12 +63,7 @@
               line "-- -b" would result in the program being passed the
               text "-b" (ie. not as an option).
               </p>
  -        </s1>
  +        </section>
       </body>
  -    <footer>
  -        <legal>
  -          Copyright (c) @year@ The Jakarta Apache Project All rights reserved.
  -          $Revision$ $Date$
  -        </legal>
  -    </footer>
  +    
   </document>
  
  
  
  1.1                  jakarta-avalon-excalibur/cli/src/xdocs/stylesheets/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <project name="Excalibur CLI" href="http://jakarta.apache.org/avalon/excalibur/cli">
    
    <title>Excalibur CLI</title>
    <body>
    <item href="@AVALON_BASE@" name="Back to Avalon"/>
    <item href="/../index.html" name="Back to Excalibur"/>
  
    <menu name="About">
      <item name="Overview" href="/index.html"/>
      <item name="Excalibur Home" href="http://jakarta.apache.org/avalon/excalibur/index.html"/>
      <item name="Download" href="http://jakarta.apache.org/builds/jakarta-avalon-excalibur/release/cli"/>
      <item name="API Docs" href="/api/index.html"/>
    </menu>
    </body>
  </project>
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>