> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Konstantin Pribluda
> Sent: 17. februar 2002 20:44
> 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? )
>
There is an own one. It's in the Util class. Can you remove Ant
DirectoryScanner and use Util instead? (xjavadoc shouldn't depend on
anything 3rd party if we can avoid it). I'd have done it myself, but my
laptop's screen is dead, and I'm working on a fucking 640/480 screen I found
in the attic, and it's too annoying to do anything but email reading.
Hopefully I'll get a new screen next week and get back on the scene ;-)
> 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
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel