aem-plugin / com.cognifide.gradle.aem.tooling.sync / Cleaner

Cleaner

class Cleaner

Constructors

<init>

Cleaner(aem: AemExtension)

Properties

contentProcess

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

var contentProcess: (File, List<String>) -> List<String>

filesDeleted

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

var filesDeleted: PatternFilterable.() -> Unit

filesDotContent

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

var filesDotContent: PatternFilterable.() -> Unit

filesFlattened

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

var filesFlattened: PatternFilterable.() -> Unit

lineProcess

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

var lineProcess: (File, String) -> String

mixinTypesSkipped

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

var mixinTypesSkipped: List<String>

namespacesSkipped

Controls unused namespaces skipping.

var namespacesSkipped: Boolean

parentsBackupEnabled

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

var parentsBackupEnabled: 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.

var parentsBackupSuffix: String

propertiesSkipped

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

var propertiesSkipped: List<String>

Functions

beforeClean

fun beforeClean(root: File): Unit

clean

fun clean(root: File): Unit

cleanNamespaces

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

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