Class AecuInstallHook

  • All Implemented Interfaces:
    org.apache.jackrabbit.vault.packaging.InstallHook

    public class AecuInstallHook
    extends Object
    implements org.apache.jackrabbit.vault.packaging.InstallHook
    InstallHook handling installation of groovy scripts. The InstallHook gathers groovy scripts contained in the installed vault package and executes them depending on active runmodes and if the script has been added, modified or never executed.
    Example usage in content-package-maven-plugin:
     
     <plugin>
         <groupId>com.day.jcr.vault</groupId>
         <artifactId>content-package-maven-plugin</artifactId>
         <extensions>true</extensions>
         <configuration>
             <filterSource>src/main/content/META-INF/vault/filter.xml</filterSource>
             <verbose>true</verbose>
             <failOnError>true</failOnError>
             <group>Valtech</group>
             <properties>
                 <installhook.aecu.class>de.valtech.aecu.core.installhook.AecuInstallHook</installhook.aecu.class>
             </properties>
         </configuration>
     </plugin>
     
     
    Author:
    Christopher Piosecny, Roland Gruber
    • Constructor Detail

      • AecuInstallHook

        public AecuInstallHook()
    • Method Detail

      • execute

        public void execute​(org.apache.jackrabbit.vault.packaging.InstallContext installContext)
                     throws org.apache.jackrabbit.vault.packaging.PackageException
        Specified by:
        execute in interface org.apache.jackrabbit.vault.packaging.InstallHook
        Throws:
        org.apache.jackrabbit.vault.packaging.PackageException