Package de.valtech.aecu.core.installhook
Class AecuInstallHook
- java.lang.Object
-
- de.valtech.aecu.core.installhook.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 Summary
Constructors Constructor Description AecuInstallHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(org.apache.jackrabbit.vault.packaging.InstallContext installContext)
-
-
-
Method Detail
-
execute
public void execute(org.apache.jackrabbit.vault.packaging.InstallContext installContext) throws org.apache.jackrabbit.vault.packaging.PackageException- Specified by:
executein interfaceorg.apache.jackrabbit.vault.packaging.InstallHook- Throws:
org.apache.jackrabbit.vault.packaging.PackageException
-
-