You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2020/10/01 08:25:39 UTC

[sling-slingfeature-maven-plugin] branch master updated: Mention external file support for extensions

This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-slingfeature-maven-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 88ab17a  Mention external file support for extensions
88ab17a is described below

commit 88ab17aa13c1ce3d6a105a1801be5a012591b3bb
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Thu Oct 1 10:25:33 2020 +0200

    Mention external file support for extensions
---
 README.md | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/README.md b/README.md
index 259c88d..3fa7ee1 100644
--- a/README.md
+++ b/README.md
@@ -65,6 +65,12 @@ Up to version 1.3.4 of the maven plugin, all occurences of placeholders where tr
 
 For versions higher than 1.3.4, the `enableLegacyVariableReplacement` configuration can be set to `true` to enable this old behaviour. But it is discouraged to do so and rather use `replacePropertyVariables` with a clearly defined set of placeholders.
 
+## External Files for Text Extensions
+
+For versions higher than 1.4.0, the maven plugin supports to author extensions in external files. For example a repoinit section can be written in a text file next to the feature model file. If an extension of type text is specified in the feature model with the value `@file`, the maven plugin looks for a file in the same directory as the feature model. The file must have the same name as the feature file followed by a dash, the name of the extension and ".txt". For example a feature fil [...]
+
+In addition, it is possible to control the name of the file name by specifying the part after the dash. For example using `@file:xssapi.xml` as the value of the extension leads to the a file named `myfeature-xssapi.xml` to be read.
+
 # Global Configuration
 
 * features : The directory containing the feature files. The default is `src/main/features`.