You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by an...@apache.org on 2019/12/26 18:52:24 UTC
[sling-org-apache-sling-feature-launcher] branch master updated:
Updated the CLI options and the support for URLs in the Feature File list
This is an automated email from the ASF dual-hosted git repository.
andysch pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-launcher.git
The following commit(s) were added to refs/heads/master by this push:
new 9335fb4 Updated the CLI options and the support for URLs in the Feature File list
9335fb4 is described below
commit 9335fb417b386957f7c7cad8fcc6526ba588ce5c
Author: Andreas Schaefer <sc...@iMac.local>
AuthorDate: Thu Dec 26 10:52:07 2019 -0800
Updated the CLI options and the support for URLs in the Feature File list
---
readme.md | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/readme.md b/readme.md
index e10880a..f92bfc1 100644
--- a/readme.md
+++ b/readme.md
@@ -24,15 +24,29 @@ The following command line options are supported:
$ rm -rf launcher && java -jar org.apache.sling.feature.launcher-1.0.0.jar -h
usage: launcher
-C <arg> Set artifact clash override
+ -CC <arg> Set config class override
-c <arg> Set cache dir
-D <arg> Set framework properties
- -f <arg> Set feature files
+ -f <arg> Set feature files (relative and absolute file path or URL including classloader resources)
-fv <arg> Set felix framework version
-p <arg> Set home dir
-u <arg> Set repository url
-V <arg> Set variable value
+ -ec <arg> Set Extension Configuration (format: extensionName:key1=val1,key2=val2)
+ -fv <arg> Set Felix Framework version
+ -fa <arg> Set Framework Artifact (overrides felix framework version)
-v Verbose
```
+**Note**: if feature files are provided as a Classloader Resource like in an
+executable JAR file or classpath resource then it's **Resource URL** can be handed
+over to the Launcher as feature file (-f option):
+```
+java.net.URL url = getClass().getResource("/my-feature-file.json");
+String[] arguments = new String[] {
+ "-f", url.toString()
+};
+org.apache.sling.feature.launcher.impl.Main.main(arguments);
+```
For further documentation see: https://github.com/apache/sling-org-apache-sling-feature/blob/master/readme.md