User: rinkrank
Date: 02/02/19 16:12:03
Modified: src/xjavadoc/ant XJavadocTask.java XJavadocRunner.java
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.3 +1 -0 xjavadoc/src/xjavadoc/ant/XJavadocTask.java
Index: XJavadocTask.java
===================================================================
RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/ant/XJavadocTask.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -r1.2 -r1.3
--- XJavadocTask.java 17 Feb 2002 21:12:09 -0000 1.2
+++ XJavadocTask.java 20 Feb 2002 00:12:03 -0000 1.3
@@ -51,6 +51,7 @@
/**
* This class should be subclassed to be used for XDoclet, revXDoclet etc.
*
+ * @author <a href="mailto:[EMAIL PROTECTED]">Aslak Helles�y</a>
* @author Ara Abrahamian
* @created February 17, 2002
*/
1.2 +66 -10 xjavadoc/src/xjavadoc/ant/XJavadocRunner.java
Index: XJavadocRunner.java
===================================================================
RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/ant/XJavadocRunner.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -r1.1 -r1.2
--- XJavadocRunner.java 21 Dec 2001 11:53:09 -0000 1.1
+++ XJavadocRunner.java 20 Feb 2002 00:12:03 -0000 1.2
@@ -1,3 +1,38 @@
+/*
+ * Copyright (c) 2001, Aslak Helles�y, BEKK Consulting
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * - Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * - Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * - Neither the name of BEKK Consulting nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ */
+
+/*
+ * Change log
+ *
+ */
package xjavadoc.ant;
import java.io.BufferedInputStream;
@@ -7,16 +42,18 @@
import java.io.ObjectInputStream;
import xjavadoc.XJavaDoc;
+/**
+ * @author <a href="mailto:[EMAIL PROTECTED]">Aslak Helles�y</a>
+ * @created 19. februar 2002
+ */
public class XJavadocRunner {
- private static XJavaDoc loadContext() throws IOException,
ClassNotFoundException
- {
- FileInputStream fis = new FileInputStream( XJavadocTask.TMP_FILE );
- ObjectInputStream ois = new ObjectInputStream( new
BufferedInputStream( fis ) );
- XJavaDoc context = ( XJavaDoc ) ois.readObject();
- return context;
- }
-
+ /**
+ * The main program for the XJavadocRunner class
+ *
+ * @param args Describe the command line arguments
+ * @todo-javadoc Describe the command line arguments
+ */
public static void main( String[] args ) {
try {
XJavaDoc engine = loadContext();
@@ -24,5 +61,24 @@
} catch( Exception e ) {
e.printStackTrace();
}
+ }
+
+
+ /**
+ * Describe what the method does
+ *
+ * @return Describe the return value
+ * @exception IOException Describe the exception
+ * @exception ClassNotFoundException Describe the exception
+ * @todo-javadoc Write javadocs for method
+ * @todo-javadoc Write javadocs for return value
+ * @todo-javadoc Write javadocs for exception
+ * @todo-javadoc Write javadocs for exception
+ */
+ private static XJavaDoc loadContext() throws IOException,
ClassNotFoundException {
+ FileInputStream fis = new FileInputStream(XJavadocTask.TMP_FILE);
+ ObjectInputStream ois = new ObjectInputStream(new
BufferedInputStream(fis));
+ XJavaDoc context = (XJavaDoc)ois.readObject();
+ return context;
}
}
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel