User: rinkrank
  Date: 02/02/19 16:12:18

  Modified:    .        build.xml
  Log:
  -Added benchmark target, javadoc is still 20% faster than xjavadoc :-(
  -Optimizations: static parser, MULTI=false (no more ASTxxx classes)
  -Mades impl classes package private
  -Fixed some comments
  -Fixed a few bugs
  
  Revision  Changes    Path
  1.18      +33 -9     xjavadoc/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/xdoclet/xjavadoc/build.xml,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -w -r1.17 -r1.18
  --- build.xml 18 Feb 2002 01:29:13 -0000      1.17
  +++ build.xml 20 Feb 2002 00:12:17 -0000      1.18
  @@ -30,7 +30,7 @@
   
      <property name="javaparser.grammar"      value="Java1.2-b"/>
      <property name="javaparser.grammar"      value="JavaDoc"/>
  -   <property name="javaparser.dir"          
value="${build.java.src.dir}/xjavadoc/ast"/>
  +   <property name="javaparser.dir"          value="${build.java.src.dir}/xjavadoc"/>
   
      <!-- =================================================================== -->
      <!-- Initialization target.                                              -->
  @@ -68,9 +68,13 @@
      <!-- Compiles the source code                                            -->
      <!-- =================================================================== -->
      <target name="compile" depends="pretty,javacc" description="Compiles the source 
code">
  -      <javac srcdir="${build.java.src.dir}" destdir="${build.classes.dir}" 
debug="true">
  -         <classpath refid="classpath"/>
  -      </javac>
  +      <javac 
  +         srcdir="${build.java.src.dir}"
  +         destdir="${build.classes.dir}" 
  +         classpathref="classpath"
  +         optimize="false"
  +         debug="true"
  +      />
      </target>
   
      <!-- =================================================================== -->
  @@ -278,9 +282,9 @@
      </target>
   
      <!-- =================================================================== -->
  -   <!-- Test target tat runs xjavadoc on own sources                        -->
  +   <!-- Test target that runs xjavadoc on some sources                      -->
      <!-- =================================================================== -->
  -   <!--target name="xjavadoc" depends="jar">
  +   <target name="xjavadoc" depends="jar">
         <taskdef
            name="xjavadoc"
            classname="xjavadoc.ant.XJavadocTask"
  @@ -290,13 +294,33 @@
            classpath="${java.class.path};${jar.file}"
            maxmemory="160m"
            fork="yes"
  -         doclet="xjavadoc.xml.JavaDox"
         >
  -         <fileset dir="${java.src.dir}">
  +         <fileset dir="${scan.dir}">
               <include name="**/*.java"/>
            </fileset>
         </xjavadoc>
  -   </target-->
  +   </target>
  +
  +   <!-- =================================================================== -->
  +   <!-- Test target that runs classic javadoc on some sources               -->
  +   <!-- =================================================================== -->
  +   <target name="classic" depends="jar" description="Generates the API 
documentation">
  +      <property name="dateformat" value="HH:mm:ss:SS"/>
  +      <javadoc
  +         packagenames="*.*"
  +         sourcepath="${scan.dir}"
  +         classpath="${java.class.path};${jar.file}"
  +      >
  +         <doclet name="xjavadoc.NoopDoclet" path="${jar.file}">
  +            <param name="-dummy"/>
  +         </doclet>
  +      </javadoc>
  +   </target>
  +
  +   <!-- =================================================================== -->
  +   <!-- Runs Classic and XJavaDoc on the same sources. For benchmarking     -->
  +   <!-- =================================================================== -->
  +   <target name="benchmark" depends="classic,xjavadoc"/>
   
      <!-- =================================================================== -->
      <!-- Runs ClassDump                                                      -->
  
  
  

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to