db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r491737 - in /db/ddlutils/trunk/src: antdoc/templates/html/main.vm antdoc/templates/html/task.vm java/org/apache/ddlutils/task/DatabaseTaskBase.java
Date Tue, 02 Jan 2007 02:39:06 GMT
Author: tomdz
Date: Mon Jan  1 18:39:06 2007
New Revision: 491737

URL: http://svn.apache.org/viewvc?view=rev&rev=491737
Log:
Minor documentation generation fixes

Modified:
    db/ddlutils/trunk/src/antdoc/templates/html/main.vm
    db/ddlutils/trunk/src/antdoc/templates/html/task.vm
    db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseTaskBase.java

Modified: db/ddlutils/trunk/src/antdoc/templates/html/main.vm
URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/antdoc/templates/html/main.vm?view=diff&rev=491737&r1=491736&r2=491737
==============================================================================
--- db/ddlutils/trunk/src/antdoc/templates/html/main.vm (original)
+++ db/ddlutils/trunk/src/antdoc/templates/html/main.vm Mon Jan  1 18:39:06 2007
@@ -31,13 +31,23 @@
 
 - Generating Task and Types documentation...
 ##
-#foreach( $taskDoc in $antroot.getAll() ) ##
-  #if ( ! $taskDoc.isIgnored() )
+#foreach( $curTaskDoc in $antroot.getAll() ) ##
+  #if (!$curTaskDoc.isIgnored())
 
-- Processing $taskDoc.antName ##
-      $velocity.eval( "html/task.vm", "${taskDoc.getFullClassName()}.html" ) ##
+- Processing $curTaskDoc.antName ##
+      #set ($taskDoc = $curTaskDoc)
+      $velocity.eval( "html/task.vm", "${curTaskDoc.getFullClassName()}.html" ) ##
+    #foreach ($curElement in $curTaskDoc.getNestedElements())
+      #set ($curElementDoc = $curTaskDoc.getElementDoc($curElement))
+      #if (!$curElementDoc.isIgnored() && $curElementDoc.sourceIncluded() &&
$curElementDoc.isTagged())
+
+    Processing sub element $curElementDoc.antName ##
+        #set ($taskDoc = $curElementDoc)
+        $velocity.eval( "html/task.vm", "${curElementDoc.getFullClassName()}.html" ) ##
+      #end
+    #end
   #else ##
-- Ignoring $taskDoc.fullClassName()##
+- Ignoring $curTaskDoc.fullClassName()##
   #end ##
 #end ##
 

Modified: db/ddlutils/trunk/src/antdoc/templates/html/task.vm
URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/antdoc/templates/html/task.vm?view=diff&rev=491737&r1=491736&r2=491737
==============================================================================
--- db/ddlutils/trunk/src/antdoc/templates/html/task.vm (original)
+++ db/ddlutils/trunk/src/antdoc/templates/html/task.vm Mon Jan  1 18:39:06 2007
@@ -82,7 +82,7 @@
 #foreach ($element in $taskDoc.getNestedElements())
   #set ($elementDoc = $taskDoc.getElementDoc($element))
   #if ($elementDoc.sourceIncluded() && $elementDoc.isTagged())
-	<p class="taskNestedElementRef">&rArr;&nbsp;<a href="../api/${elementDoc.getFullClassName().replace(".",
"/")}.html"><code>$element</code></a></p>
+	<p class="taskNestedElementRef">&rArr;&nbsp;<a href="${elementDoc.getFullClassName()}.html"><code>$element</code></a></p>
   #end
 #end
 </fieldset>

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseTaskBase.java
URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseTaskBase.java?view=diff&rev=491737&r1=491736&r2=491737
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseTaskBase.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/DatabaseTaskBase.java Mon Jan  1 18:39:06
2007
@@ -46,6 +46,8 @@
 {
     /**
      * Helper class that defines the possible values for the verbosity attribute.
+     * 
+     * @ant.task ignore="true"
      */
     public static class VerbosityLevel extends EnumeratedAttribute {
         /** The possible levels. */



Mime
View raw message