You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by mc...@apache.org on 2002/07/17 17:46:02 UTC

cvs commit: jakarta-avalon-excalibur/assembly docs.xml build.xml

mcconnell    2002/07/17 08:46:02

  Modified:    assembly build.xml
  Added:       assembly docs.xml
  Log:
  moved doc generation to seperate build file to isolate dependecies
  
  Revision  Changes    Path
  1.25      +0 -73     jakarta-avalon-excalibur/assembly/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/assembly/build.xml,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- build.xml	17 Jul 2002 13:48:37 -0000	1.24
  +++ build.xml	17 Jul 2002 15:46:02 -0000	1.25
  @@ -25,7 +25,6 @@
         deploy           - places internal and external jars into an extensions directory
         javadoc          - javadoc API generation
         clean            - destroy the build, dist and extensions directory
  -      docs             - generates the project documentation
         help             - this message
         
       </echo>
  @@ -65,12 +64,6 @@
         </fileset>
     </path>
   
  -  <path id="tools.class.path">
  -      <fileset dir="${jakarta-site.dir}/lib">
  -        <include name="*.jar" />
  -      </fileset>
  -  </path>
  -
     <!-- MAIN TARGETS -->
   
     <target name="dist" depends="build"/>
  @@ -290,72 +283,6 @@
        </java>
     </target>
   
  -  <target name="anakia-available">
  -        <available classname="org.apache.velocity.anakia.AnakiaTask"
  -            property="AnakiaTask.present">
  -            <classpath refid="tools.class.path"/>
  -        </available>
  -  </target>
  -
  -  <target name="anakia-check" depends="anakia-available" unless="AnakiaTask.present">
  -        <echo>
  -            AnakiaTask is not present! Please check to make sure that
  -            the velocity jar and dependent resources are in your classpath.
  -        </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/** history/** changes.xml announcement.xml"
  -            velocitypropertiesfile="${xdocs.dir}/stylesheets/velocity.properties"
  -            />
  -
  -        <anakia basedir="${xdocs.dir}"
  -            destdir="${docs.dir}"
  -            style="changes.vsl"
  -            projectfile="stylesheets/project.xml"
  -            includes="changes.xml"
  -            velocitypropertiesfile="${xdocs.dir}/stylesheets/velocity.properties"
  -            />
  -
  -     <copy todir="${docs.dir}" filtering="off">
  -      <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>
  -
  -
  -  <!-- Creates the full docs using cocoon -->
  -  <!--
  -  <target name="docsx" depends="html-docs" description="generates all the Avalon documentation"/>
  -  <target name="html-docs" description="generates the xdocs-based documentation">
  -      <ant antfile="../cocoonbuild.xml"/>
  -  </target>
  -  <target name="site" depends="javadocs, docsx" description=" Places Docs ready for hosting on website">  
  -      <mkdir dir="../site/dist/docs/${dir-name}"/>
  -      <copy todir="../site/dist/docs/${dir-name}">
  -        <fileset dir="${build.docs}">
  -          <include name="**"/>
  -        </fileset>
  -      </copy>        
  -  </target>
  -  -->
   
     <target name="patch">
       <replace 
  
  
  
  1.1                  jakarta-avalon-excalibur/assembly/docs.xml
  
  Index: docs.xml
  ===================================================================
  
  <!-- 
  Copyright 2001-2002 OSM SARL, All Rights Reserved.
  -->
  
  <project name="assembly" default="docs" basedir=".">
  
    <property file="local.properties"/>
    <property file="build.properties"/>
    <property file="default.properties"/>
  
    <target name="help" >
      <echo>
  
        Description
        -----------
  
        ${project.title}
        
        General Targets:
        ----------------
  
        docs             - generates the project documentation
        help             - this message
        
      </echo>
    </target>
  
    <property name="jakarta-site.dir" value="../../jakarta-site"/>
    <property name="src.dir" value="src" />
    <property name="xdocs.dir" value="${src.dir}/xdocs" />
    <property name="dist.dir"  value="dist" />
    <property name="docs.dir" value="${dist.dir}/docs" />
  
    <!-- classpath -->
  
    <path id="tools.class.path">
        <fileset dir="${jakarta-site.dir}/lib">
          <include name="*.jar" />
        </fileset>
    </path>
  
    <!-- BLOCK -->
  
    <target name="anakia-available">
          <available classname="org.apache.velocity.anakia.AnakiaTask"
              property="AnakiaTask.present">
              <classpath refid="tools.class.path"/>
          </available>
    </target>
  
    <target name="anakia-check" depends="anakia-available" unless="AnakiaTask.present">
          <echo>
              AnakiaTask is not present! Please check to make sure that
              the velocity jar and dependent resources are in your classpath.
          </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/** history/** changes.xml announcement.xml"
              velocitypropertiesfile="${xdocs.dir}/stylesheets/velocity.properties"
              />
  
          <anakia basedir="${xdocs.dir}"
              destdir="${docs.dir}"
              style="changes.vsl"
              projectfile="stylesheets/project.xml"
              includes="changes.xml"
              velocitypropertiesfile="${xdocs.dir}/stylesheets/velocity.properties"
              />
  
       <copy todir="${docs.dir}" filtering="off">
        <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>
  
  </project>
  
  
  

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