Wrong place for DirectoryScanner. XJavaDocTask already uses it, and
XJavadoc should not have any dependency on Ant.

Btw, there's a lot more serious stuff we should implement for xjavadocs:
- modifiers for program elements
- inner classes
- scanning fields
- binary classes/methods/etc are just place holders currently, not fully
implemented
- optimizing grammar for source blocks parsing with #void/etc.
- I saw some dangerous uses of classname/token.indexOf('.') in many
places, should be checked again.

Basically other than Doc class of Doclet API other classes should be
available/implemented in xjavadocs.

We're going to use xjavadocs in xdoclet core first, because of
performance. Xdocletgui/etc will come after that.

Cheers,
Ara.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:xdoclet-devel-
> [EMAIL PROTECTED]] On Behalf Of Konstantin Pribluda
> Sent: Sunday, February 17, 2002 11:14 PM
> To: [EMAIL PROTECTED]
> Subject: [Xdoclet-devel] CVS update: xjavadoc/src/xjavadoc
XJavaDoc.java
> 
>   User: ko5tik
>   Date: 02/02/17 11:43:43
> 
>   Modified:    src/xjavadoc XJavaDoc.java
>   Log:
>   added creation of xjavadoc from single directory
>   (necessary for loading sources in xdocletgui )
> 
>   Introduced dependency to org.apache.tools.ant.DirectoryScanner
>   ( maybe develop own one? )
> 
>   Revision  Changes    Path
>   1.8       +515 -492  xjavadoc/src/xjavadoc/XJavaDoc.java
> 
>   Index: XJavaDoc.java
>   ===================================================================
>   RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/XJavaDoc.java,v
>   retrieving revision 1.7
>   retrieving revision 1.8
>   diff -u -w -r1.7 -r1.8
>   --- XJavaDoc.java   11 Feb 2002 14:11:57 -0000      1.7
>   +++ XJavaDoc.java   17 Feb 2002 19:43:43 -0000      1.8
>   @@ -54,6 +54,8 @@
>    import xjavadoc.binary.BinaryClass;
>    import xjavadoc.parser.SourceClass;
> 
>   +import org.apache.tools.ant.DirectoryScanner;
>   +
>    /**
>     * @author Aslak Helles�y
>     * @created 3. januar 2002
>   @@ -122,6 +124,27 @@
> 
> 
>       /**
>   +    * Constructor
>   +    *
>   +    * @param dir source dir to search for .java files
>   +    * @param docletClass doclet to invoke after parsing
>   +    */
>   +   public XJavaDoc(File dir, String docletClass) {
>   +           _dir = dir;
>   +           _docletClass = docletClass;
>   +           // compose list of files like in XJavaDocTask
>   +           DirectoryScanner ds = new DirectoryScanner();
>   +
>   +           ds.setBasedir(dir);
>   +           ds.setIncludes(new String[]{"**/*.java"});
>   +           ds.addDefaultExcludes();
>   +           ds.scan();
>   +           _files = ds.getIncludedFiles();
>   +
>   +   }
>   +
>   +
>   +   /**
>        * Get the XClass corresponding to the qualifiedName
>        *
>        * @param qualifiedName Describe what the parameter does
> 
> 
> 
> 
> _______________________________________________
> Xdoclet-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-devel


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Reply via email to