avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-logkit build.xml
Date Sun, 25 Feb 2001 07:15:42 GMT
donaldp     01/02/24 23:15:42

  Modified:    .        build.xml
  Log:
  integrate javadocs into build process.
  
  Revision  Changes    Path
  1.3       +76 -6     jakarta-avalon-logkit/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-logkit/build.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.xml	2001/02/21 04:28:21	1.2
  +++ build.xml	2001/02/25 07:15:41	1.3
  @@ -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}">
  @@ -143,6 +148,71 @@
       <jar jarfile="${build.lib}/log.jar" basedir="${build.classes}">
         <include name="org/apache/log/**" />
       </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>
   
  
  
  

Mime
View raw message