-
-
Save ncautotest/7f64ce3d5a10e6d85eb5a8f167bbb974 to your computer and use it in GitHub Desktop.
Revisions
-
nateyolles renamed this gist
Aug 24, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
nateyolles created this gist
Jun 5, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ # Adding include/exclude rules to CQ/AEM package filters through cURL. # Through a simple search, you will find numerous lists of CQ/AEM cURL commands. # However, I haven't seen an example of adding rules to package filters. The # JSON "rules" key takes an array value. You can leave the array empty if you # don't need to include any rules. The array is of JSON objects with a # "modifier" key and value of "include" or "exclude", and a "pattern" key with # your path or regular expression as the value. # create package curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/my_packages/testpackage?cmd=create \ -d packageName=testpackage \ -d groupName=my_packages # add filters curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/update.jsp \ -F path=/etc/packages/my_packages/testpackage.zip -F packageName=testpackage \ -F groupName=my_packages \ -F filter="[{\"root\" : \"/content/my-site\", \"rules\": [{\"modifier\" : \"exclude\", \"pattern\" : \"/content/my-site/(.*)/folder-to-exclude(/.*)?\"}]}]" \ -F '_charset_=UTF-8' # build package curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/my_packages/testpackage.zip?cmd=build