public class Cleaner
@NotNull public static java.lang.String JCR_CONTENT_FILE
@NotNull public static java.lang.String JCR_MIXIN_TYPES_PROP
@NotNull public static java.lang.String JCR_ROOT_PREFIX
public static com.cognifide.gradle.aem.pkg.tasks.sync.Cleaner.Companion Companion
public Cleaner(@NotNull
AemExtension aem)
public void filesDotContent(@NotNull
kotlin.jvm.functions.Function1<? super org.gradle.api.tasks.util.PatternFilterable,kotlin.Unit> filter)
Allows to control which files under each root root should be cleaned.
public void filesDeleted(@NotNull
kotlin.jvm.functions.Function1<? super org.gradle.api.tasks.util.PatternFilterable,kotlin.Unit> filter)
Determines which files will be deleted within running cleaning (e.g after checking out JCR content).
public void filesFlattened(@NotNull
kotlin.jvm.functions.Function1<? super org.gradle.api.tasks.util.PatternFilterable,kotlin.Unit> filter)
Determines which files will be flattened (e.g /_cq_dialog/.content.xml will be replaced by _cq_dialog.xml).
public org.gradle.api.provider.ListProperty<java.lang.String> getPropertiesSkipped()
Properties that will be skipped when pulling JCR content from AEM instance.
After special delimiter '!' there could be specified one or many path patterns (ANT style, delimited with ',') in which property shouldn't be removed.
public org.gradle.api.provider.ListProperty<java.lang.String> getMixinTypesSkipped()
Mixin types that will be skipped when pulling JCR content from AEM instance.
public org.gradle.api.provider.Property<java.lang.Boolean> getNamespacesSkipped()
Controls unused namespaces skipping.
public org.gradle.api.provider.Property<java.lang.Boolean> getParentsBackupEnabled()
Controls backups for parent nodes of filter roots for keeping them untouched.
public org.gradle.api.provider.Property<java.lang.String> getParentsBackupSuffix()
File suffix being added to parent node back up files. Customize it only if really needed to resolve conflict with file being checked out.
public void lineProcess(@NotNull
kotlin.jvm.functions.Function2<? super java.io.File,? super java.lang.String,java.lang.String> callback)
Hook for customizing particular line processing for '.content.xml' files.
public void contentProcess(@NotNull
kotlin.jvm.functions.Function2<? super java.io.File,? super java.util.List<java.lang.String>,? extends java.util.List<java.lang.String>> callback)
Hook for additional all lines processing for '.content.xml' files.
public void prepare(@NotNull
java.io.File root)
public void beforeClean(@NotNull
java.io.File root)
public void clean(@NotNull
java.io.File root)
@NotNull
public java.util.List<java.lang.String> normalizeContent(@NotNull
java.io.File file,
@NotNull
java.util.List<java.lang.String> lines)
@NotNull
public java.util.List<java.lang.String> mergeSinglePropertyLines(@NotNull
java.util.List<java.lang.String> lines)
@NotNull
public java.util.List<java.lang.String> cleanNamespaces(@NotNull
java.util.List<java.lang.String> lines)
@NotNull
public java.lang.String normalizeLine(@NotNull
java.io.File file,
@NotNull
java.lang.String line)
@NotNull
public java.lang.String skipProperties(@NotNull
java.io.File file,
@NotNull
java.lang.String line)
@NotNull
public java.lang.String normalizeMixins(@NotNull
java.io.File file,
@NotNull
java.lang.String line)
@NotNull
public java.lang.String pathRule(@NotNull
java.lang.String pattern,
@NotNull
java.util.List<java.lang.String> excludedPaths)
@NotNull
public java.lang.String pathRule(@NotNull
java.lang.String pattern,
@NotNull
java.util.List<java.lang.String> excludedPaths,
@NotNull
java.util.List<java.lang.String> includedPaths)