jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Plugin Tools
  • MPLUGIN-7

Reformat the autogenerated goal parameters page to improve readibility.

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.2
  • Component/s: None
  • Labels:
    None
  • Environment:
    any, jdk 1.4.2_06

Description

The goal plugin:xdoc creates a table describing the parameters for a plugin. An example may be found here: http://mojo.codehaus.org/xmlbeans-maven-plugin/xmlbeans-mojo.html

In the example, notice that the nowrap on the type, expression and default-value columns causes the descriptions to be crammed into the right side of the page.

So rather than having these values in their own columns, position them in rows below the parameter as is done in the maven-model documentation for the project descriptor. This way the fields don't compete for space across the page:
http://maven.apache.org/maven2/maven-model/maven.html

What's more, the inclusion of hyperlinked xml at the top of the page describing the configuration section of the plugin would benefit the end user without manual effort of the plugin developer.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. HTML File
    assembly-mojo.html
    29/Jun/06 10:39 PM
    11 kB
    Edwin Punzalan
  2. HTML File
    assembly-mojo.html
    28/Jun/06 1:34 AM
    11 kB
    Edwin Punzalan
  3. HTML File
    assembly-mojo.html
    28/Jun/06 12:30 AM
    19 kB
    Edwin Punzalan
  4. HTML File
    assembly-mojo.html
    27/Jun/06 8:41 PM
    24 kB
    Edwin Punzalan
  5. Text File
    MPLUGIN-7-maven-plugin-tools-api.patch
    29/Jun/06 10:39 PM
    6 kB
    Edwin Punzalan
  6. Text File
    MPLUGIN-7-maven-plugin-tools-api.patch
    29/Jun/06 12:31 AM
    12 kB
    Edwin Punzalan
  7. Text File
    MPLUGIN-7-maven-plugin-tools-api.patch
    28/Jun/06 1:34 AM
    11 kB
    Edwin Punzalan
  8. Text File
    MPLUGIN-7-maven-plugin-tools-api.patch
    28/Jun/06 12:30 AM
    11 kB
    Edwin Punzalan
  9. Text File
    MPLUGIN-7-maven-plugin-tools-api.patch
    27/Jun/06 8:41 PM
    10 kB
    Edwin Punzalan
  10. HTML File
    xmlbeans-mojo1.html
    26/Jun/06 4:11 PM
    18 kB
    Herve Boutemy
  11. HTML File
    xmlbeans-mojo2.html
    26/Jun/06 4:11 PM
    15 kB
    Herve Boutemy

Issue Links

depends upon

New Feature - A new feature of the product, which has yet to be developed. MNG-2410 adding a method in AbstractMavenReport to obtain newSink()

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Improvement - An improvement or enhancement to an existing feature or task. MPLUGIN-11 add an introduction to plugin configuration in plugin report

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
is related to

Improvement - An improvement or enhancement to an existing feature or task. MNG-1941 add an introduction to plugin configuration (patch included)

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Johnny R. Ruiz III added a comment - 13/Oct/05 1:06 AM

Currently this plugin generates an xdoc file describing the goals and parameters of the plugin.
Shouldn't be instead of generating an xdoc, we generate an HTML report??
Currently it generates html report about the goal but not about the parameter.

Show
Johnny R. Ruiz III added a comment - 13/Oct/05 1:06 AM Currently this plugin generates an xdoc file describing the goals and parameters of the plugin. Shouldn't be instead of generating an xdoc, we generate an HTML report?? Currently it generates html report about the goal but not about the parameter.
Hide
Permalink
Brett Porter added a comment - 13/Oct/05 1:17 AM

yes, it should be direct to HTML eventually.

Show
Brett Porter added a comment - 13/Oct/05 1:17 AM yes, it should be direct to HTML eventually.
Hide
Permalink
Herve Boutemy added a comment - 09/Jan/06 1:03 AM

I tried to rewrite PluginXdocGenerator as a MavenReport, but I could not figure out how to use AbstractMavenMultiPageReport : did not find any documentation nor report using it.

Now I have code to write the new HTML report as a unique page : overview + 1 section per goal

If I don't find how to break it into multiple pages, I'll publish this version here : it's better than nothing and I hope it will help

Show
Herve Boutemy added a comment - 09/Jan/06 1:03 AM I tried to rewrite PluginXdocGenerator as a MavenReport, but I could not figure out how to use AbstractMavenMultiPageReport : did not find any documentation nor report using it. Now I have code to write the new HTML report as a unique page : overview + 1 section per goal If I don't find how to break it into multiple pages, I'll publish this version here : it's better than nothing and I hope it will help
Hide
Permalink
Vincent Siveton added a comment - 09/Jan/06 6:53 AM

Hervé,

FYI plugin:xdoc is already implemented as a MavenReport, according the MNG-706 issue
http://svn.apache.org/viewcvs.cgi?rev=291309&view=rev
http://maven.apache.org/plugins/maven-plugin-plugin/report-mojo.html

Here is a small thread about AbstractMavenMultiPageReport subject:
http://www.nabble.com/multi-page-reports-t690194.html#a1915556

HTH

Thanks a lot for your support.

Show
Vincent Siveton added a comment - 09/Jan/06 6:53 AM Hervé, FYI plugin:xdoc is already implemented as a MavenReport, according the MNG-706 issue http://svn.apache.org/viewcvs.cgi?rev=291309&view=rev http://maven.apache.org/plugins/maven-plugin-plugin/report-mojo.html Here is a small thread about AbstractMavenMultiPageReport subject: http://www.nabble.com/multi-page-reports-t690194.html#a1915556 HTH Thanks a lot for your support.
Hide
Permalink
Herve Boutemy added a comment - 09/Jan/06 3:58 PM

Hi Vincent,

Sorry, I did not explain myself clearly : I'm new to Maven2 internals (which are huge, but great)...

What I'm trying to do is to replace xdoc gerenation (what is done currently) by direct HTML generation through Sink API (what is proposed by Johnny and Brett on previous comments).
To do that, I need a way to create multiple pages with Sink API.
AbstractMultiPageReport has startPage(outputName) and endPage(MultiPageSink) methods : that seems to be here just for this need.
But when I call startPage, I get a NPE...

I could not find any Report using this API : when multi-page is needed, everybody seems to go back to xdoc generation (that's the "solution" proposed in the thread you quote).

Do you know how this class works ?

Thank for your interest and help

Show
Herve Boutemy added a comment - 09/Jan/06 3:58 PM Hi Vincent, Sorry, I did not explain myself clearly : I'm new to Maven2 internals (which are huge, but great)... What I'm trying to do is to replace xdoc gerenation (what is done currently) by direct HTML generation through Sink API (what is proposed by Johnny and Brett on previous comments). To do that, I need a way to create multiple pages with Sink API. AbstractMultiPageReport has startPage(outputName) and endPage(MultiPageSink) methods : that seems to be here just for this need. But when I call startPage, I get a NPE... I could not find any Report using this API : when multi-page is needed, everybody seems to go back to xdoc generation (that's the "solution" proposed in the thread you quote). Do you know how this class works ? Thank for your interest and help
Hide
Permalink
Edwin Punzalan added a comment - 26/Jun/06 3:21 AM

Hervé,

How was your work here? any progress?

Anyway, the suggestion is to make the page more like the page in maven's project descriptor... where the items are listed on a section and the their details are tabled somewhere below it. And I don't think that you'll need to use the Multipage report for that as they're in one page.

I would like to work on this right now, but when I imagine a page with plugin parameters listed and their detail table below, I feel like I only made it uglier. Is that really what we want this page to look like ?

Show
Edwin Punzalan added a comment - 26/Jun/06 3:21 AM Hervé, How was your work here? any progress? Anyway, the suggestion is to make the page more like the page in maven's project descriptor... where the items are listed on a section and the their details are tabled somewhere below it. And I don't think that you'll need to use the Multipage report for that as they're in one page. I would like to work on this right now, but when I imagine a page with plugin parameters listed and their detail table below, I feel like I only made it uglier. Is that really what we want this page to look like ?
Hide
Permalink
Herve Boutemy added a comment - 26/Jun/06 4:11 PM

Edwin,

I did not work more on this issue : I was waiting for patches on MPLUGIN-11 to be applied, because this issue consists to modify PluginXdocGenerator.java after them.

Now, the big question is "what do we want this page to look like ?".
I totally agree with you : the first idea proposed in the issue does not IMHO improve the report.

I had other ideas : here are 2 pages I wrote to check how it would look like. What do you think of these ?

Show
Herve Boutemy added a comment - 26/Jun/06 4:11 PM Edwin, I did not work more on this issue : I was waiting for patches on MPLUGIN-11 to be applied, because this issue consists to modify PluginXdocGenerator.java after them. Now, the big question is "what do we want this page to look like ?". I totally agree with you : the first idea proposed in the issue does not IMHO improve the report. I had other ideas : here are 2 pages I wrote to check how it would look like. What do you think of these ?
Hide
Permalink
Edwin Punzalan added a comment - 26/Jun/06 9:20 PM

Those pages are alright... but I was thinking of something similar to javadoc's Field Summary/Field Details section.

But if the plugin have the javadoc report included, they might become too similar.

Show
Edwin Punzalan added a comment - 26/Jun/06 9:20 PM Those pages are alright... but I was thinking of something similar to javadoc's Field Summary/Field Details section. But if the plugin have the javadoc report included, they might become too similar.
Hide
Permalink
Herve Boutemy added a comment - 27/Jun/06 3:10 PM

Currently, the class generating the report (PluginXdocGenerator.java) is not in the proper component and package (org.apache.maven.tools.plugin.generator instead of org.apache.maven.plugin.plugin).
It must be moved as proposed in MPLUGIN-11. Then, we'll be able to modify it: there are many good ideas how the report could be improved.

Show
Herve Boutemy added a comment - 27/Jun/06 3:10 PM Currently, the class generating the report (PluginXdocGenerator.java) is not in the proper component and package (org.apache.maven.tools.plugin.generator instead of org.apache.maven.plugin.plugin). It must be moved as proposed in MPLUGIN-11. Then, we'll be able to modify it: there are many good ideas how the report could be improved.
Hide
Permalink
Herve Boutemy added a comment - 27/Jun/06 3:17 PM

Current PluginXdocGenerator.java generates multiple report pages : if we want to rewrite it with Sink API instead of xdoc, we'll need the ability to have multi-page reports as requested in MNG-2410.

Perhaps this issue should be split in 2 :
1. reformat the page (staying with xdoc)
2. rewrite the report with Sink API

Show
Herve Boutemy added a comment - 27/Jun/06 3:17 PM Current PluginXdocGenerator.java generates multiple report pages : if we want to rewrite it with Sink API instead of xdoc, we'll need the ability to have multi-page reports as requested in MNG-2410. Perhaps this issue should be split in 2 : 1. reformat the page (staying with xdoc) 2. rewrite the report with Sink API
Hide
Permalink
Edwin Punzalan added a comment - 27/Jun/06 8:41 PM

I'm attaching my proposed html, and patch to produce it.

Hervé, do you have patches to your proposed pages? Please attach them so the maven dev team can choose what they want.... or maybe suggest something else.

Show
Edwin Punzalan added a comment - 27/Jun/06 8:41 PM I'm attaching my proposed html, and patch to produce it. Hervé, do you have patches to your proposed pages? Please attach them so the maven dev team can choose what they want.... or maybe suggest something else.
Hide
Permalink
Brett Porter added a comment - 27/Jun/06 9:12 PM

we will need to do this without the multi-page feature for now.

Edwin - that latest page looks good, however

  • I'd avoid using tables in the lower section and I'd include the description again (more like Javadoc).
  • Instead of Optional? Yes I'd say "Required: Yes/No".
  • In the table at the top, I think since the type is short I'd put it in it's own column which will make it more compact.
  • I'd suggest splitting the top table into 2 tables: first, "required fields" and "optional fields"
Show
Brett Porter added a comment - 27/Jun/06 9:12 PM we will need to do this without the multi-page feature for now. Edwin - that latest page looks good, however
  • I'd avoid using tables in the lower section and I'd include the description again (more like Javadoc).
  • Instead of Optional? Yes I'd say "Required: Yes/No".
  • In the table at the top, I think since the type is short I'd put it in it's own column which will make it more compact.
  • I'd suggest splitting the top table into 2 tables: first, "required fields" and "optional fields"
Hide
Permalink
Edwin Punzalan added a comment - 28/Jun/06 12:30 AM

Brett, please see attached sample page if that's what you like.

Show
Edwin Punzalan added a comment - 28/Jun/06 12:30 AM Brett, please see attached sample page if that's what you like.
Hide
Permalink
Edwin Punzalan added a comment - 28/Jun/06 1:34 AM

Please disregard my previous attachements... in this one, i've removed the read-only and plexus component/injected parameters.

Show
Edwin Punzalan added a comment - 28/Jun/06 1:34 AM Please disregard my previous attachements... in this one, i've removed the read-only and plexus component/injected parameters.
Hide
Permalink
Herve Boutemy added a comment - 28/Jun/06 11:51 AM

Edwin,

Thank you for your interest in my patches : but your proposal is a lot better.
You can ignore mine with no regret, and apply your patch ASAP.

Show
Herve Boutemy added a comment - 28/Jun/06 11:51 AM Edwin, Thank you for your interest in my patches : but your proposal is a lot better. You can ignore mine with no regret, and apply your patch ASAP.
Hide
Permalink
Edwin Punzalan added a comment - 29/Jun/06 12:31 AM

I re-did my patch to allow the @since tag to be shown in the report.

Show
Edwin Punzalan added a comment - 29/Jun/06 12:31 AM I re-did my patch to allow the @since tag to be shown in the report.
Hide
Permalink
Brett Porter added a comment - 29/Jun/06 12:57 AM

applied, but please make the following modifications:

  • remove the empty <p/> tag between the name and description.
  • don't show the optional parameters section if there aren't any (likewise the required parameters)
  • make optional, required, and parameter details headings h3 instead of h2

Other features that have been request:

  • show class level metadata at the top
  • show default value at the end of the description if there is one
Show
Brett Porter added a comment - 29/Jun/06 12:57 AM applied, but please make the following modifications:
  • remove the empty <p/> tag between the name and description.
  • don't show the optional parameters section if there aren't any (likewise the required parameters)
  • make optional, required, and parameter details headings h3 instead of h2
Other features that have been request:
  • show class level metadata at the top
  • show default value at the end of the description if there is one
Hide
Permalink
Edwin Punzalan added a comment - 29/Jun/06 10:39 PM

Brett,

Please see attached sample for the revisions/new features requested. I've also attached the patch to produce it.

Show
Edwin Punzalan added a comment - 29/Jun/06 10:39 PM Brett, Please see attached sample for the revisions/new features requested. I've also attached the patch to produce it.

People

  • Assignee:
    Edwin Punzalan
    Reporter:
    Corridor Software Developer
Vote (0)
Watch (1)

Dates

  • Created:
    04/Oct/05 10:02 PM
    Updated:
    30/Jun/06 4:10 AM
    Resolved:
    30/Jun/06 3:33 AM

Time Tracking

Estimated:
8h
Original Estimate - 8 hours Original Estimate - 8 hours
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
15h
Time Spent - 15 hours
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.