aem-plugin / com.cognifide.gradle.aem.common.instance / LocalInstanceManager

LocalInstanceManager

class LocalInstanceManager : Serializable

Constructors

<init>

LocalInstanceManager(aem: AemExtension)

Properties

backup

Configure AEM backup sources.

val backup: BackupResolver

backupZip

val backupZip: File?

expandFiles

Wildcard file name filter expression that is used to filter in which instance files properties can be injected.

var expandFiles: List<String>

expandProperties

Custom properties that can be injected into instance files.

var expandProperties: Map<String, Any>

install

val install: InstallResolver

overridesDir

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'.

var overridesDir: File

quickstart

val quickstart: QuickstartResolver

rootDir

Path in which local AEM instances will be stored.

var rootDir: File

scriptTimeout

Maximum time to wait for status script response.

var scriptTimeout: Long

source

Determines how instances will be created (from backup or quickstart built from the scratch).

var source: Source

sourceFiles

Collection of files potentially needed to create instance

val sourceFiles: List<File>

Functions

backup

fun backup(options: BackupResolver.() -> Unit): Unit

create

fun create(instances: List<LocalInstance>): Unit

createFromBackup

fun createFromBackup(instances: List<LocalInstance>, backupZip: File): Unit

createFromScratch

fun createFromScratch(instances: List<LocalInstance>): Unit

init

Configure action to be performed only once when instance is up first time.

fun init(options: LocalInstance.() -> Unit): Unit

install

Configure CRX packages, bundles to be pre-installed on instance(s).

fun install(options: InstallResolver.() -> Unit): Unit

quickstart

Configure AEM source files when creating instances from the scratch.

fun quickstart(options: QuickstartResolver.() -> Unit): Unit

resolveSourceFiles

fun resolveSourceFiles(): Unit

source

fun source(name: String): Unit