You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by si...@apache.org on 2019/06/24 14:56:49 UTC
[sling-whiteboard] branch master updated: [feature-diff][r2f] added
README syntax highlight
This is an automated email from the ASF dual-hosted git repository.
simonetripodi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
The following commit(s) were added to refs/heads/master by this push:
new 7e8182c [feature-diff][r2f] added README syntax highlight
7e8182c is described below
commit 7e8182cebcd94e2270c688aafbbfe3764c9160c6
Author: Simo Tripodi <st...@adobe.com>
AuthorDate: Mon Jun 24 16:55:53 2019 +0200
[feature-diff][r2f] added README syntax highlight
---
feature-diff/README.md | 2 +-
runtime2feature/README.md | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/feature-diff/README.md b/feature-diff/README.md
index 7213b28..a026988 100644
--- a/feature-diff/README.md
+++ b/feature-diff/README.md
@@ -48,7 +48,7 @@ The `DiffRequest` data object can be configured in order to include/exclude one
Users can simply add via the include/exclude methods the section(s) they are interested:
-```
+```java
DiffRequest diffRequest = new DiffRequest()
.setPrevious(previous)
.setCurrent(current)
diff --git a/runtime2feature/README.md b/runtime2feature/README.md
index ad8dc43..9568bef 100644
--- a/runtime2feature/README.md
+++ b/runtime2feature/README.md
@@ -8,7 +8,7 @@ This is a simple OSGi service which is able to convert, given a `BundleContext`
APIs are really simple: it is necessary first to obtain the `RuntimeEnvironment2FeatureModel` instance from the OSGi Service Registry, then
-```
+```java
import org.apache.sling.feature.r2f.*;
@Reference
@@ -26,7 +26,7 @@ Currently version will include in the generated Feature Model `bundles` and `con
The `RuntimeEnvironment2FeatureModel` OSGi service is also able to retrieve the (assembled) Feature used to launch the platform:
-```
+```java
import org.apache.sling.feature.r2f.*;
@Reference
@@ -40,7 +40,7 @@ Feature launchFeature = generator.getLaunchFeature();
The `RuntimeEnvironment2FeatureModel` OSGi service is also able to compute the upgrade Feature which prototypes from the Feature used to launch the platform and that targets the runtime Feature:
-```
+```java
import org.apache.sling.feature.r2f.*;
@Reference
@@ -54,7 +54,7 @@ Feature launchFeature = generator.getLaunch2RuntimeUpgradingFeature();
Finally, the `RuntimeEnvironment2FeatureModel` OSGi service is also able to compute the real runtime Feature which is assembled from the Feature used to launch the platform and that targets the runtime Feature:
-```
+```java
import org.apache.sling.feature.r2f.*;
@Reference