aem-plugin / com.cognifide.gradle.aem.pkg.tasks.sync / Cleaner

Cleaner

class Cleaner

Constructors

<init>

Cleaner(aem: AemExtension)

Properties

mixinTypesSkipped

Mixin types that will be skipped when pulling JCR content from AEM instance.

val mixinTypesSkipped: ListProperty<String!>!

namespacesSkipped

Controls unused namespaces skipping.

val namespacesSkipped: Property<Boolean!>!

parentsBackupEnabled

Controls backups for parent nodes of filter roots for keeping them untouched.

val parentsBackupEnabled: Property<Boolean!>!

parentsBackupSuffix

File suffix being added to parent node back up files. Customize it only if really needed to resolve conflict with file being checked out.

val parentsBackupSuffix: Property<String!>!

propertiesSkipped

Properties that will be skipped when pulling JCR content from AEM instance.

val propertiesSkipped: ListProperty<String!>!

Functions

beforeClean

fun beforeClean(root: File): Unit

clean

fun clean(root: File): Unit

cleanNamespaces

fun cleanNamespaces(lines: List<String>): List<String>

contentProcess

Hook for additional all lines processing for '.content.xml' files.

fun contentProcess(callback: (File, List<String>) -> List<String>): Unit

filesDeleted

Determines which files will be deleted within running cleaning (e.g after checking out JCR content).

fun filesDeleted(filter: PatternFilterable.() -> Unit): Unit

filesDotContent

Allows to control which files under each root root should be cleaned.

fun filesDotContent(filter: PatternFilterable.() -> Unit): Unit

filesFlattened

Determines which files will be flattened (e.g /_cq_dialog/.content.xml will be replaced by _cq_dialog.xml).

fun filesFlattened(filter: PatternFilterable.() -> Unit): Unit

lineProcess

Hook for customizing particular line processing for '.content.xml' files.

fun lineProcess(callback: (File, String) -> String): Unit

mergeSinglePropertyLines

fun mergeSinglePropertyLines(lines: List<String>): MutableList<String>

normalizeContent

fun normalizeContent(file: File, lines: List<String>): List<String>

normalizeLine

fun normalizeLine(file: File, line: String): String

normalizeMixins

fun normalizeMixins(file: File, line: String): String

pathRule

fun pathRule(pattern: String, excludedPaths: List<String>): String
fun pathRule(pattern: String, excludedPaths: List<String>, includedPaths: List<String>): String

prepare

fun prepare(root: File): Unit

skipProperties

fun skipProperties(file: File, line: String): String

Companion Object Properties

CONTENT_PROP_PATTERN

val CONTENT_PROP_PATTERN: Pattern

JCR_CONTENT_FILE

const val JCR_CONTENT_FILE: String

JCR_MIXIN_TYPES_PROP

const val JCR_MIXIN_TYPES_PROP: String

JCR_ROOT_PREFIX

const val JCR_ROOT_PREFIX: String

NAMESPACE_PATTERN

val NAMESPACE_PATTERN: Pattern