Spring Roo
  1. Spring Roo
  2. ROO-1257

Comment aspectJ files so that users know they should not be modified.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0.M2
    • Fix Version/s: 1.1.0.M3
    • Component/s: @ CORE
    • Labels:
      None

      Description

      If a user changes any of the AspectJ files created by roo, those changes will be lost if the associated Java class is modified (and Roo overwrites the generated file). A simple comment at the top of the AspectJ file would warn the user that the file should not be manually modified.

        Activity

        Hide
        Ben Alex added a comment -

        The following block now appears at the top of any code-generated ITD:

        // WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
        // You may push code into the target .java compilation unit if you wish to edit any member(s).
        

        Added to Git commit ad4b774c34f351ff79029b5e56699df6cd2eb425.

        Show
        Ben Alex added a comment - The following block now appears at the top of any code-generated ITD: // WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO. // You may push code into the target .java compilation unit if you wish to edit any member(s). Added to Git commit ad4b774c34f351ff79029b5e56699df6cd2eb425.

          People

          • Assignee:
            Ben Alex
            Reporter:
            Paul Chapman
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: