gradle-aem-plugin icon indicating copy to clipboard operation
gradle-aem-plugin copied to clipboard

Command line filter roots + exclusion options

Open pun-ky opened this issue 6 years ago • 0 comments

GAP has utility method like

aem.filter() which is being used by default. However from CMD line there is no way to exclude some files from roots specified by

e.g sh gradlew :aem:content.demo:aemSync -Paem.filter.roots=[/content/example/demo] -Paem.filter.excludes=[.*rep:policy] -Paem.filter.includes=[]

it would be nice if CMD filter roots are specified, default excludes will be used somehow

aem {
    config {
        filter {
            excludes = listOf(".*/rep:policy") // this is default / optionally overriddable
        }
    }
}

by having above defined, then Paem.filter.excludes=[.*/rep:policy] will be redundant

pun-ky avatar Feb 18 '19 14:02 pun-ky