Grails
  1. Grails
  2. GRAILS-2173

Indicate source file of errors and warnings when generating documentation

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0-RC4
    • Fix Version/s: 1.0-RC4
    • Component/s: Documentation
    • Labels:
      None
    • Patch Submitted:
      Yes

      Description

      The warnings are great but it's hard to tell where they might be coming from. Patch attached to emit source file names for errors

      • creates an 'InitialRenderContext instead of just a RenderContext, and uses that to initialize the DocEngine so properties are always available.
      • adds "sourceFile" property to context and updates for each file being rendered
      • adds 'emitWarning' for consistent messages
      • uses constants for context property keys
      • removes custom configureContext field from DocEngine

        Activity

        Hide
        Graeme Rocher added a comment -

        Thanks for the patch!

        Show
        Graeme Rocher added a comment - Thanks for the patch!

          People

          • Assignee:
            Graeme Rocher
            Reporter:
            Chad McHenry
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development