John Fallows wrote:
On 7/12/05, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:


John Fallows wrote:

We have a custom report that generated a bunch of xdoc files for
Maven1, and would like to know the easiest way to migrate that report
to Maven2.

Can we continue to generate xdoc files and then transform those files
to .html as before?

you can, but do you really need to generate xdoc files?


During transition, we need to keep both Maven1 and Maven2 builds
available in parallel.  Therefore, I'd much prefer to focus on other
issues in the short term, and update the custom report to use the Sink
API directly after the Maven1 build is no longer needed.

I looked at the SiteRenderer Java code, but found it a bit confusing. I'm hoping to save some time by asking the experts. :-)

How can I use the SiteRenderer API to transform the xdoc files to .html?

Is there a some existing part of the M2 codebase that illustrates the
correct usage for an individual report like this, rather than the
whole site?

Look at the site plugin.

You need to call siteRenderer.render with your generated directory as parameter. this directory must contains a xdoc directory with all your files in it.

Emmanuel


Kind Regards,
John Fallows.

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





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

Reply via email to