Hi Roger,

> I followed the texen example given on the website. The output I am
> getting is one sinlge file named "generation.report" which is
> mentioned as the outputfile in the build.xml .
> 
> I would like to have three different output files and the example says
> that the the build should produce three different files. What do I
> need to do to get three different files?

I tried it, and got the same result.  Looked a bit further into it,
and found that the Control.vm is expecting StringUtils as $stringutils
(which is not mentioned in the docs  :().

I haven't look as far as to how to put tools in the Context, but
you'll get the same effect by changing Control.vm like this:

#set ($Planets = ["Earth", "Mars", "Venus"])

#foreach ($planet in $Planets)

   #set ($outputFile = "${planet}.html"))
   $generator.parse("HtmlTemplate.vm", $outputFile, "planet", $planet)

#end

Best regards,
-- Shinobu

--
Shinobu "Kawai" Yoshida <[EMAIL PROTECTED]>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to