XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.9.1
    • 2.9
    • None
    • Sprint 5 (Kromeriz)
    • 2

      The migrate theme task is private. It seems that existing non magnolia themes are not automatically migrated. Seems like the MigrateThemeTask can't be called by customers as it is a private inner class.

       private class MigrateThemeTask extends NodeExistsDelegateTask {
              public MigrateThemeTask(final String themeName) {
                  super(
                          String.format("Copy %s theme to its new home", themeName),
                          String.format("/modules/site/config/themes/%s", themeName),
                          new WarnTask("Warn about already existing theme", String.format("Could not copy '%s' theme to new site module. Check you configuration at /modules/site/config/themes/%s", themeName, themeName)),
                          new ArrayDelegateTask("",
                                  new CopyNodeTask(String.format("Copy %s theme to its new home", themeName), String.format("/modules/standard-templating-kit/config/themes/%s", themeName), String.format("/modules/site/config/themes/%s", themeName), false),
                                  new CheckOrCreatePropertyTask("", String.format("/modules/site/config/themes/%s", themeName), "class<span class="code-quote">", "info.magnolia.module.templatingkit.style.ThemeImpl")
                          )
                  );
              }
          }
      

        Acceptance criteria

              rkovarik Roman Kovařík
              jschulte Jan Schulte
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 1h 55m
                  1h 55m