public class PackageOptions
public PackageOptions(@NotNull
AemExtension aem)
@NotNull public java.io.File getContentDir()
Package root directory containing 'jcr_root' and 'META-INF' directories.
public void setContentDir(@NotNull
java.io.File p)
Package root directory containing 'jcr_root' and 'META-INF' directories.
@NotNull public java.io.File getJcrRootDir()
JCR root directory.
@NotNull public java.io.File getVltDir()
Vault metadata files directory (package definition).
@NotNull public java.io.File getMetaCommonDir()
Custom path to Vault files that will be used to build CRX package. Useful to share same files for all packages, like package thumbnail.
public void setMetaCommonDir(@NotNull
java.io.File p)
Custom path to Vault files that will be used to build CRX package. Useful to share same files for all packages, like package thumbnail.
@NotNull public java.lang.String getInstallPath()
Content path for OSGi bundle jars being placed in CRX package.
Default convention assumes that subprojects have separate bundle paths, because of potential re-installation of subpackages. When all subprojects will have same bundle path, reinstalling one subpackage may end with deletion of other bundles coming from another subpackage.
Beware that more nested bundle install directories are not supported by AEM by default (up to 4th depth level). That's the reason of using dots in subproject names to avoid that limitation.
public void setInstallPath(@NotNull
java.lang.String p)
Content path for OSGi bundle jars being placed in CRX package.
Default convention assumes that subprojects have separate bundle paths, because of potential re-installation of subpackages. When all subprojects will have same bundle path, reinstalling one subpackage may end with deletion of other bundles coming from another subpackage.
Beware that more nested bundle install directories are not supported by AEM by default (up to 4th depth level). That's the reason of using dots in subproject names to avoid that limitation.
@NotNull public java.lang.String getStoragePath()
Content path at which CRX Package Manager is storing uploaded packages.
public void setStoragePath(@NotNull
java.lang.String p)
Content path at which CRX Package Manager is storing uploaded packages.
@NotNull public kotlin.jvm.functions.Function1<com.cognifide.gradle.aem.common.pkg.PackageFile,java.lang.String> getStorageDir()
Calculate directory under storage path for each CRX package.
public void setStorageDir(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.pkg.PackageFile,java.lang.String> p)
Calculate directory under storage path for each CRX package.
public boolean getInstallRepository()
Configures a local repository from which unreleased JARs could be added as 'compileOnly' dependency and be deployed within CRX package deployment.
public void setInstallRepository(boolean p)
Configures a local repository from which unreleased JARs could be added as 'compileOnly' dependency and be deployed within CRX package deployment.
@NotNull public java.util.List<java.lang.String> getErrors()
Define patterns for known exceptions which could be thrown during package installation making it impossible to succeed.
When declared exception is encountered during package installation process, no more retries will be applied.
public void setErrors(@NotNull
java.util.List<java.lang.String> p)
Define patterns for known exceptions which could be thrown during package installation making it impossible to succeed.
When declared exception is encountered during package installation process, no more retries will be applied.
@NotNull public java.util.List<java.lang.String> getSnapshots()
CRX package name conventions (with wildcard) indicating that package can change over time while having same version specified. Affects CRX packages composed and satisfied.
public void setSnapshots(@NotNull
java.util.List<java.lang.String> p)
CRX package name conventions (with wildcard) indicating that package can change over time while having same version specified. Affects CRX packages composed and satisfied.
public int getResponseBuffer()
Determines number of lines to process at once during reading Package Manager HTML responses.
The higher the value, the bigger consumption of memory but shorter execution time. It is a protection against exceeding max Java heap size.
public void setResponseBuffer(int p)
Determines number of lines to process at once during reading Package Manager HTML responses.
The higher the value, the bigger consumption of memory but shorter execution time. It is a protection against exceeding max Java heap size.
public void validator(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.pkg.PackageValidator,kotlin.Unit> options)
Customize default validation options.
@NotNull public NodeTypesSync getNodeTypesSync()
Controls automatic node types exporting from available instance to be later used in package validation.
public void setNodeTypesSync(@NotNull
NodeTypesSync p)
Controls automatic node types exporting from available instance to be later used in package validation.
public void nodeTypesSync(@NotNull
java.lang.String name)
@NotNull public java.io.File getNodeTypesSyncFile()
Determines location on which synchronized node types will be saved.
public void setNodeTypesSyncFile(@NotNull
java.io.File p)
Determines location on which synchronized node types will be saved.