You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by do...@apache.org on 2001/02/25 08:25:31 UTC

cvs commit: jakarta-avalon-testlet build.xml

donaldp     01/02/24 23:25:31

  Modified:    .        build.xml
  Log:
  Integrated javadocs into build process.
  
  Revision  Changes    Path
  1.2       +76 -6     jakarta-avalon-testlet/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-testlet/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml	2001/02/20 00:49:45	1.1
  +++ build.xml	2001/02/25 07:25:30	1.2
  @@ -63,10 +63,19 @@
     <property name="java.dir" value="${src.dir}/java"/>
     <property name="tools.dir" value="tools"/>
     <property name="docs.dir" value="docs"/>
  -  <property name="javadocs.dir" value="${build.docs}/api"/>
  +  <property name="www.dir" value="www"/>
  +  <property name="javadocs.dir" value="${docs.dir}/api"/>
   
     <property name="dist.name" value="${Name}-${version}"/>
   
  +  <path id="project.class.path">
  +    <pathelement path="${java.class.path}" />
  +    <fileset dir="${lib.dir}">
  +      <include name="*.jar" />
  +    </fileset>
  +    <pathelement path="${build.classes}" />
  +  </path>
  +
     <!--
          ===================================================================
                                     Main target
  @@ -116,11 +125,7 @@
              debug="${debug}"
              optimize="${optimize}"
              deprecation="${deprecation}">
  -      <classpath>
  -        <fileset dir="${lib.dir}">
  -          <include name="*.jar" />
  -        </fileset>
  -      </classpath>
  +      <classpath refid="project.class.path" />
       </javac>
   
       <copy todir="${build.classes}">
  @@ -144,6 +149,71 @@
         <include name="org/apache/testlet/**" />
         <zipfileset src="${lib.dir}/clutil.jar" includes="**/*.class"/>
       </jar>
  +
  +  </target>
  +
  +  <!--
  +       ===================================================================
  +       Create the API documentation
  +       ===================================================================
  +  -->
  +  <target name="javadocs">
  +
  +    <delete dir="${build.javadocs}"/>
  +    <mkdir dir="${build.javadocs}"/>
  +
  +    <javadoc packagenames="org.apache.*"
  +             sourcepath="${java.dir}"
  +             destdir="${build.javadocs}">
  +      <classpath refid="project.class.path" />
  +      <doclet name="com.sun.tools.doclets.standard.Standard">
  +       <param name="-author"/>
  +       <param name="-version"/>
  +       <param name="-use"/>
  +       <param name="-doctitle" value="${Name}"/>
  +       <param name="-windowtitle" value="${Name} API"/>
  +       <param name="-bottom" 
  +              value="&quot;Copyright &#169; 2001 Apache Jakarta Project. All Rights Reserved.&quot;"/>
  +      </doclet>
  +    </javadoc>
  +
  +  </target>
  +
  +  <!--
  +       ===================================================================
  +       Create the Local API documentation
  +       ===================================================================
  +  -->
  +  <target name="local-javadocs" depends="javadocs">
  +
  +    <delete dir="${javadocs.dir}"/>
  +    <mkdir dir="${javadocs.dir}"/>
  +
  +    <copy todir="${javadocs.dir}">
  +      <fileset dir="${build.javadocs}" />
  +    </copy>
  +
  +  </target>
  +
  +  <!--
  +       ===================================================================
  +       Update the www directory
  +       ===================================================================
  +  -->
  +  <target name="site-docs" depends="local-javadocs">
  +
  +    <!-- delete all old documents but keep CVS directories -->
  +    <!-- note that by doing an include the defaultexcludes (CVS dirs) will be kept -->
  +    <delete>
  +      <fileset dir="${www.dir}">
  +        <include name="**"/>
  +      </fileset>
  +    </delete>
  +
  +    <mkdir dir="${www.dir}"/>
  +    <copy todir="${www.dir}">
  +      <fileset dir="${docs.dir}" />
  +    </copy>
   
     </target>