avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject svn commit: rev 21413 - avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks
Date Fri, 18 Jun 2004 10:11:44 GMT
Author: mcconnell
Date: Fri Jun 18 03:11:42 2004
New Revision: 21413

Modified:
   avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks/JavadocTask.java
Log:
add project packages during javadoc generation

Modified: avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks/JavadocTask.java
==============================================================================
--- avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks/JavadocTask.java	(original)
+++ avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks/JavadocTask.java	Fri Jun
18 03:11:42 2004
@@ -44,6 +44,9 @@
  */
 public class JavadocTask extends SystemTask
 {
+    private static final Link J2SE = 
+      new Link( "http://java.sun.com/j2se/1.4/docs/api/" );
+
     private static class Link
     {
         final String m_href;
@@ -104,8 +107,7 @@
         Definition def = getReferenceDefinition();
         File root = getJavadocRootDirectory( def );
         Path classpath = def.getPath( getProject(), Policy.RUNTIME );
-        Link j2se = new Link( "http://java.sun.com/j2se/1.4/docs/api/" );
-        Link[] links = new Link[]{ j2se };
+        Link[] links = new Link[]{ J2SE };
 
         File api = new File( root, "api" );
         File spi = new File( root, "spi" );
@@ -186,6 +188,10 @@
             if( local.exists() )
             {
                 source.createPathElement().setLocation( local );
+                DirSet packages = new DirSet();
+                packages.setDir( local );
+                packages.setIncludes( "**/**" );
+                javadoc.addPackageset( packages );
             }
         }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message