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.tooling.sync.Cleaner.Companion Companion
public Cleaner(@NotNull
AemExtension aem)
@NotNull public kotlin.jvm.functions.Function1<org.gradle.api.tasks.util.PatternFilterable,kotlin.Unit> getFilesDotContent()
Allows to control which files under each root root should be cleaned.
public void setFilesDotContent(@NotNull
kotlin.jvm.functions.Function1<? super org.gradle.api.tasks.util.PatternFilterable,kotlin.Unit> p)
Allows to control which files under each root root should be cleaned.
@NotNull public kotlin.jvm.functions.Function1<org.gradle.api.tasks.util.PatternFilterable,kotlin.Unit> getFilesDeleted()
Determines which files will be deleted within running cleaning (e.g after checking out JCR content).
public void setFilesDeleted(@NotNull
kotlin.jvm.functions.Function1<? super org.gradle.api.tasks.util.PatternFilterable,kotlin.Unit> p)
Determines which files will be deleted within running cleaning (e.g after checking out JCR content).
@NotNull public kotlin.jvm.functions.Function1<org.gradle.api.tasks.util.PatternFilterable,kotlin.Unit> getFilesFlattened()
Determines which files will be flattened (e.g /_cq_dialog/.content.xml will be replaced by _cq_dialog.xml).
public void setFilesFlattened(@NotNull
kotlin.jvm.functions.Function1<? super org.gradle.api.tasks.util.PatternFilterable,kotlin.Unit> p)
Determines which files will be flattened (e.g /_cq_dialog/.content.xml will be replaced by _cq_dialog.xml).
@NotNull public java.util.List<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 void setPropertiesSkipped(@NotNull
java.util.List<java.lang.String> p)
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.
@NotNull public java.util.List<java.lang.String> getMixinTypesSkipped()
Mixin types that will be skipped when pulling JCR content from AEM instance.
public void setMixinTypesSkipped(@NotNull
java.util.List<java.lang.String> p)
Mixin types that will be skipped when pulling JCR content from AEM instance.
public boolean getNamespacesSkipped()
Controls unused namespaces skipping.
public void setNamespacesSkipped(boolean p)
Controls unused namespaces skipping.
public boolean getParentsBackupEnabled()
Controls backups for parent nodes of filter roots for keeping them untouched.
public void setParentsBackupEnabled(boolean p)
Controls backups for parent nodes of filter roots for keeping them untouched.
@NotNull public 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 setParentsBackupSuffix(@NotNull
java.lang.String p)
File suffix being added to parent node back up files. Customize it only if really needed to resolve conflict with file being checked out.
@NotNull public kotlin.jvm.functions.Function2<java.io.File,java.lang.String,java.lang.String> getLineProcess()
Hook for customizing particular line processing for '.content.xml' files.
public void setLineProcess(@NotNull
kotlin.jvm.functions.Function2<? super java.io.File,? super java.lang.String,java.lang.String> p)
Hook for customizing particular line processing for '.content.xml' files.
@NotNull public kotlin.jvm.functions.Function2<java.io.File,java.util.List,java.util.List> getContentProcess()
Hook for additional all lines processing for '.content.xml' files.
public void setContentProcess(@NotNull
kotlin.jvm.functions.Function2<? super java.io.File,? super java.util.List<java.lang.String>,? extends java.util.List<java.lang.String>> p)
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)