I added a new Propertie (generateIndex=true/false) to the documentation
task of the build-torque.xml. This property is used in the control.vm of
the doc templates. If generateIndex=true, an Index file with a list of all
schemes is generated.
Hope it helps. At least it helped me a lot.
---+++--------------------+++---------------------+++---
Markus M. May
[EMAIL PROTECTED]
Provide you with free J2EE projects
Please use my public key at:
http://www.javafreedom.org/mmay_javafreedom_org.key
---+++--------------------+++---------------------+++---
<?xml version="1.0"?>
<document>
<properties>
<title>Torque Generated Tables Documentation</title>
</properties>
<body>
<section name="Tables">
#foreach ($dataModel in $dataModels)
<p>
<a href="${dataModel.name}.html">${dataModel.name}</a>
</p>
#end
</section>
</body>
</document>
Index: Control.vm
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-torque/src/templates/doc/Control.vm,v
retrieving revision 1.2
diff -u -r1.2 Control.vm
--- Control.vm 18 Dec 2001 23:26:07 -0000 1.2
+++ Control.vm 28 Sep 2002 18:57:41 -0000
@@ -9,6 +9,24 @@
#end
File to be created: $outFile
-
$generator.parse("doc/$outputFormat/datamodel.vm",$outFile,"dataModel",$dataModel)
+
+
#end
+
+
+ @$generateIndex@
+ #if ($generateIndex == true)
+
+ #if ($outputFormat=="html")
+ ##Not implemented yet
+ ##set ( $outFile = "index.html" )
+ #else
+ #set ( $outFile = "index.xml" )
+ #end
+
+ File to be created: $outFile
+
+
+ $generator.parse("doc/$outputFormat/index.vm",$outFile,"dataModel",$dataModel)
+ #end
\ No newline at end of file
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>