Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-901

Provide detailed information about added/removed/changed lines for any command

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.1.3.RELEASE
    • Component/s: @ CORE, SCM
    • Labels:
      None

      Description

      It would be nice to have the possibility to tell Roo, that it gives exact information about the lines added/removed/changed in the files any particular command has done. This would be helpful to a) understand what a particular command is doing b) in development and debugging of custom plugins, to see if it is working as expected.

      I could imagine this to be done by either providing a parameter to each command or by setting a global flag. Personally I would prefare the second option.

      Option one: anyRooCommand --parameters --printChangedLines
      Option two: printChangedLines [-enabled] [-disabled]

      In Roo shell (and maybe in the roo.log as comments):

      Created SRC_MAIN_RESOURCES\META-INF\spring\log4j.properties
      Added line log4j.rootLogger=info, stdout, R
      Added line log4j.appender.stdout=org.apache.log4j.ConsoleAppender
      Added line log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

      I guess for some commands it would not be that easy to read/understand the single changes (compare any version system compare between two versions). Anyways it should not be to hard to add an automated mechanism somewhere in the area of PollingFileMonitorService.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sschmidt Stefan Schmidt
              Reporter:
              nils_schmidt Nils Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: