Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-2710

when importing a template, the package replacement can replace things besides package names

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.0.0.RC1
    • Fix Version/s: None
    • Component/s: INTEGRATION
    • Labels:
      None

      Description

      In the past, when templates were managed by STS, we controlled the names of the packages in the templates, so used uncommon strings like mytld, mycompany, and myapp. Thus, to change the package name when importing a sample template, it was relatively safe to just replace all instances of e.g. "mytld".

      Now that templates can be self-hosted, the package substrings in the template might be anything, e.g. "com.ducky.data", and the user can give any name for the new package, e.g. "ca.gc.datastore". Unfortunately, a straight string-replacement isn't good enough: "componentCounter" ends up as "caponentCounter" in this example; "databaseRecord" ends up as "datastorebaseRecord".

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            kaitlinsherwood Kaitlin Duck Sherwood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: