public class LocalInstanceManager
| Constructor and Description |
|---|
LocalInstanceManager(AemExtension aem) |
| Modifier and Type | Method and Description |
|---|---|
void |
backup(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.local.BackupResolver,kotlin.Unit> options) |
void |
create(java.util.List<com.cognifide.gradle.aem.common.instance.LocalInstance> instances) |
void |
createFromBackup(java.util.List<com.cognifide.gradle.aem.common.instance.LocalInstance> instances,
java.io.File backupZip) |
void |
createFromScratch(java.util.List<com.cognifide.gradle.aem.common.instance.LocalInstance> instances) |
BackupResolver |
getBackup()
Configure AEM backup sources.
|
java.io.File |
getBackupZip() |
java.util.List<java.lang.String> |
getExpandFiles()
Wildcard file name filter expression that is used to filter in which instance files properties can be injected.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExpandProperties()
Custom properties that can be injected into instance files.
|
InstallResolver |
getInstall() |
java.io.File |
getOverridesDir()
Path from which extra files for local AEM instances will be copied.
Useful for overriding default startup scripts ('start.bat' or 'start.sh') or providing some files inside 'crx-quickstart'.
|
QuickstartResolver |
getQuickstart() |
java.io.File |
getRootDir()
Path in which local AEM instances will be stored.
|
long |
getScriptTimeout()
Maximum time to wait for status script response.
|
Source |
getSource()
Determines how instances will be created (from backup or quickstart built from the scratch).
|
java.util.List<java.io.File> |
getSourceFiles()
Collection of files potentially needed to create instance
|
void |
init(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.LocalInstance,kotlin.Unit> options)
Configure action to be performed only once when instance is up first time.
|
void |
install(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.local.InstallResolver,kotlin.Unit> options)
Configure CRX packages, bundles to be pre-installed on instance(s).
|
void |
quickstart(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.local.QuickstartResolver,kotlin.Unit> options)
Configure AEM source files when creating instances from the scratch.
|
void |
setExpandFiles(java.util.List<java.lang.String> p)
Wildcard file name filter expression that is used to filter in which instance files properties can be injected.
|
void |
setExpandProperties(java.util.Map<java.lang.String,? extends java.lang.Object> p)
Custom properties that can be injected into instance files.
|
void |
setOverridesDir(java.io.File p)
Path from which extra files for local AEM instances will be copied.
Useful for overriding default startup scripts ('start.bat' or 'start.sh') or providing some files inside 'crx-quickstart'.
|
void |
setRootDir(java.io.File p)
Path in which local AEM instances will be stored.
|
void |
setScriptTimeout(long p)
Maximum time to wait for status script response.
|
void |
setSource(Source p)
Determines how instances will be created (from backup or quickstart built from the scratch).
|
public LocalInstanceManager(@NotNull
AemExtension aem)
@NotNull public java.io.File getRootDir()
Path in which local AEM instances will be stored.
public void setRootDir(@NotNull
java.io.File p)
Path in which local AEM instances will be stored.
@NotNull public Source getSource()
Determines how instances will be created (from backup or quickstart built from the scratch).
public void setSource(@NotNull
Source p)
Determines how instances will be created (from backup or quickstart built from the scratch).
public long getScriptTimeout()
Maximum time to wait for status script response.
public void setScriptTimeout(long p)
Maximum time to wait for status script response.
@NotNull public java.util.List<java.io.File> getSourceFiles()
Collection of files potentially needed to create instance
@NotNull public java.io.File getOverridesDir()
Path from which extra files for local AEM instances will be copied. Useful for overriding default startup scripts ('start.bat' or 'start.sh') or providing some files inside 'crx-quickstart'.
public void setOverridesDir(@NotNull
java.io.File p)
Path from which extra files for local AEM instances will be copied. Useful for overriding default startup scripts ('start.bat' or 'start.sh') or providing some files inside 'crx-quickstart'.
@NotNull public java.util.List<java.lang.String> getExpandFiles()
Wildcard file name filter expression that is used to filter in which instance files properties can be injected.
public void setExpandFiles(@NotNull
java.util.List<java.lang.String> p)
Wildcard file name filter expression that is used to filter in which instance files properties can be injected.
@NotNull public java.util.Map<java.lang.String,java.lang.Object> getExpandProperties()
Custom properties that can be injected into instance files.
public void setExpandProperties(@NotNull
java.util.Map<java.lang.String,? extends java.lang.Object> p)
Custom properties that can be injected into instance files.
@NotNull public QuickstartResolver getQuickstart()
public void quickstart(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.local.QuickstartResolver,kotlin.Unit> options)
Configure AEM source files when creating instances from the scratch.
@NotNull public BackupResolver getBackup()
Configure AEM backup sources.
public void backup(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.local.BackupResolver,kotlin.Unit> options)
@Nullable public java.io.File getBackupZip()
@NotNull public InstallResolver getInstall()
public void install(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.local.InstallResolver,kotlin.Unit> options)
Configure CRX packages, bundles to be pre-installed on instance(s).
public void init(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.LocalInstance,kotlin.Unit> options)
Configure action to be performed only once when instance is up first time.
public void create(@NotNull
java.util.List<com.cognifide.gradle.aem.common.instance.LocalInstance> instances)
public void createFromBackup(@NotNull
java.util.List<com.cognifide.gradle.aem.common.instance.LocalInstance> instances,
@NotNull
java.io.File backupZip)
public void createFromScratch(@NotNull
java.util.List<com.cognifide.gradle.aem.common.instance.LocalInstance> instances)