Hi,
OK, the jfreereports stage is now about usable for people who are able
to test. The stage allows you to convert the output from the SqlQuery
stage to a formatted PDF/HTML/CSV/XLS/RTF format. The result becomes
the pipeline document.
I've only used this inside JBoss, so for those of you not using an
application server (which I suspect is most of you, although some of you
may like to try the updated jmx scanner), these instructions may require
some tweaking:
1. Make sure that the jfreereports library and its dependencies are in
the classpath. Libraries include:
bsh-1.2b6.jar
gnujaxp.jar
itext-1.00.jar
jcommon-0.8.5.jar
jfreereport-0.8.4_4-all.jar
pixie-0.8.0.jar
poi-2.0-pre3-20030728.jar
Some of the versions may change slightly if you download the most recent
jfreereports version. They are in CVS, and should land up in build/lib,
so ant should take care of everything.
2. Configure a pipeline stage. This involved creating a stage of type
"JFreeReport"; setting the "reportOutputFormat" to one of html, pdf,
csv, xls, or rtf; setting "reportDefinition" to an XML string defining a
JFreeReport, or "reportDefinitionUrl" to a file containing the report
definition.
3. Make sure you have a query stage before the report stage, and
probably a file writer afterwards, and go.
4. Bug reports to me...
Can I merge this into the HEAD? I see a 1.3 revision tag, but I can't
see a 1.2 branch.
I could really do with a review of the build.xml. I'm not very familiar
with ant best practice, and I get the feeling my script additions are a
little, um, inflexible. Any suggestions very willingly accepted.
Cheers...
MikeA
|