Griffon
  1. Griffon
  2. GRIFFON-123

Add a preInstall hook for plugins

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.2.x, 0.3
    • Fix Version/s: 0.9.5-rc1
    • Component/s: cli
    • Labels:
      None
    • Number of attachments :
      0

      Description

      It may be the case that a plugin requires an specific environment or may whack/replace some existing artifacts. It would be a good idea to let the developer know and make a choice of continue with the installation or stop it.

      I believe a workaround would be to place a check on scripts/_Install.groovy, possibly calling uninstall if the developer does not agree with the plugin's intentions. The problem I see with this is that it may be too late, specially if the plugin has dependencies on other plugins that are not installed (they will be pulled too).

      Some examples:

      • check for JDK6/JDK7 before installing
      • slideware plugin replaces Application.groovy altogether
      • swt plugin may replace some config files

        Activity

        Hide
        Andres Almiray added a comment -

        Solved with archetypes.

        Show
        Andres Almiray added a comment - Solved with archetypes.

          People

          • Assignee:
            Danno Ferrin
            Reporter:
            Andres Almiray
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: