You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](http://www.apache.org/licenses/)
@@ -120,6 +120,7 @@ Snippet above demonstrates customizations valid only for specific project.
120
120
*`includeContent(projectPath: String)`, includes only JCR content, example: `includeContent ':example.design'`.
121
121
*`includeBundles(projectPath: String)`, includes only bundles, example: `includeBundles ':example.auth'`.
122
122
*`includeBundlesAtRunMode(projectPath: String, runMode: String)`, as above, useful when bundles need to be installed only on specific type of instance.
123
+
*`includeSubprojects(withSamePathPrefix: Boolean = true)`, includes both bundles and JCR from all nested subprojects, example: project `:app` will include `:app:common`, `:app:core` etc. Vault filter file will be automatically generated with all filter roots merged. Useful for building assemblies (all-in-one packages).
123
124
* all inherited from [ZIP task](https://docs.gradle.org/3.5/dsl/org.gradle.api.tasks.bundling.Zip.html).
124
125
*`aemUpload` - Upload composed CRX package into AEM instance(s).
125
126
*`aemInstall` - Install uploaded CRX package on AEM instance(s).
@@ -163,6 +164,26 @@ Snippet above demonstrates customizations valid only for specific project.
163
164
-Paem.deploy.skipDownloadName=true
164
165
```
165
166
167
+
### Expandable variables
168
+
169
+
By default, plugin is configured that in all XML files, variables can be injected:
170
+
171
+
```
172
+
aem {
173
+
vaultFilesExpanded = ["*.xml"]
174
+
vaultExpandProperties = [:]
175
+
}
176
+
```
177
+
178
+
This feature is specially useful to generate valid *META-INF/properties.xml* file.
179
+
What is more, there are predefined variables that also can be used:
180
+
181
+
*`rootProject` - project with directory in which *settings.gradle* is located.
*`buildCount` - number to be used as CRX package build count (current date in format `yDDmmssSSS`).
186
+
*`filterRoots` - after using method `includeContent` of `aemCompose` task, Vault filter roots all being gathered. This variable contains all these XML tags concatenated especially useful for building assemblies. If no projects will be included, then this variable will contain a single filter root with bundle install path to be able to deploy auto-generated package with JAR file only.
0 commit comments