You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:30:08 UTC

[sling-org-apache-sling-distribution-sample] 26/42: SLING-4154: making also importers and exporters to be picked up by content based factory

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

rombert pushed a commit to annotated tag org.apache.sling.distribution.sample-0.1.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-sample.git

commit 1f94f0106c081a1d391fef4d1e53fd266358ac0a
Author: Marius Petria <mp...@apache.org>
AuthorDate: Thu Nov 27 14:11:39 2014 +0000

    SLING-4154: making also importers and exporters to be picked up by content based factory
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/distribution/sample@1642158 13f79535-47bb-0310-9956-ffa450edef68
---
 ...pl.ResourceBasedDistributionComponentFactory-agents.json |  8 --------
 ...nent.impl.ResourceBasedDistributionComponentFactory.json |  4 ++++
 ...pl.ResourceBasedDistributionComponentFactory-agents.json |  8 --------
 ...nent.impl.ResourceBasedDistributionComponentFactory.json |  4 ++++
 ...ter.AgentDistributionPackageExporterFactory-reverse.json | 10 ----------
 ...ter.LocalDistributionPackageExporterFactory-default.json | 10 ----------
 ...ter.LocalDistributionPackageImporterFactory-default.json |  9 ---------
 .../settings.publish/defaults/exporters/global.json         | 13 +++++++++++++
 .../settings.publish/defaults/importers/global.json         | 13 +++++++++++++
 .../distribution/settings.publish/exporters/default.json    |  3 +++
 .../distribution/settings.publish/exporters/reverse.json    |  7 +++++++
 .../distribution/settings.publish/importers/default.json    |  3 +++
 12 files changed, 47 insertions(+), 45 deletions(-)

diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.author/org.apache.sling.distribution.component.impl.ResourceBasedDistributionComponentFactory-agents.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.author/org.apache.sling.distribution.component.impl.ResourceBasedDistributionComponentFactory-agents.json
deleted file mode 100644
index 00ef1f0..0000000
--- a/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.author/org.apache.sling.distribution.component.impl.ResourceBasedDistributionComponentFactory-agents.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
-    "jcr:primaryType": "sling:OsgiConfig",
-    "name": "agents",
-
-    "kind": "agent",
-    "path": "/libs/sling/distribution/settings.author/agents",
-    "defaults.path" : "/libs/sling/distribution/settings.author/defaults/agents/global"
-}
\ No newline at end of file
diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.author/org.apache.sling.distribution.component.impl.ResourceBasedDistributionComponentFactory.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.author/org.apache.sling.distribution.component.impl.ResourceBasedDistributionComponentFactory.json
new file mode 100644
index 0000000..d8130f4
--- /dev/null
+++ b/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.author/org.apache.sling.distribution.component.impl.ResourceBasedDistributionComponentFactory.json
@@ -0,0 +1,4 @@
+{
+    "jcr:primaryType": "sling:OsgiConfig",
+    "path": "/libs/sling/distribution/settings.author"
+}
\ No newline at end of file
diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.publish/org.apache.sling.distribution.component.impl.ResourceBasedDistributionComponentFactory-agents.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.publish/org.apache.sling.distribution.component.impl.ResourceBasedDistributionComponentFactory-agents.json
deleted file mode 100644
index 5855403..0000000
--- a/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.publish/org.apache.sling.distribution.component.impl.ResourceBasedDistributionComponentFactory-agents.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
-    "jcr:primaryType": "sling:OsgiConfig",
-    "name": "agents",
-
-    "kind": "agent",
-    "path": "/libs/sling/distribution/settings.publish/agents",
-    "defaults.path" : "/libs/sling/distribution/settings.publish/defaults/agents/global"
-}
\ No newline at end of file
diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.publish/org.apache.sling.distribution.component.impl.ResourceBasedDistributionComponentFactory.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.publish/org.apache.sling.distribution.component.impl.ResourceBasedDistributionComponentFactory.json
new file mode 100644
index 0000000..3c23f83
--- /dev/null
+++ b/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.publish/org.apache.sling.distribution.component.impl.ResourceBasedDistributionComponentFactory.json
@@ -0,0 +1,4 @@
+{
+    "jcr:primaryType": "sling:OsgiConfig",
+    "path": "/libs/sling/distribution/settings.publish"
+}
\ No newline at end of file
diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.publish/org.apache.sling.distribution.packaging.impl.exporter.AgentDistributionPackageExporterFactory-reverse.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.publish/org.apache.sling.distribution.packaging.impl.exporter.AgentDistributionPackageExporterFactory-reverse.json
deleted file mode 100644
index ab2d2f4..0000000
--- a/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.publish/org.apache.sling.distribution.packaging.impl.exporter.AgentDistributionPackageExporterFactory-reverse.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
-    "jcr:primaryType": "sling:OsgiConfig",
-    "name": "reverse",
-
-    "isResource" : true,
-
-    "packageBuilder.target" : "(name=vlt)",
-
-    "agent.target": "(name=reverse)"
-}
\ No newline at end of file
diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.publish/org.apache.sling.distribution.packaging.impl.exporter.LocalDistributionPackageExporterFactory-default.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.publish/org.apache.sling.distribution.packaging.impl.exporter.LocalDistributionPackageExporterFactory-default.json
deleted file mode 100644
index 60132c0..0000000
--- a/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.publish/org.apache.sling.distribution.packaging.impl.exporter.LocalDistributionPackageExporterFactory-default.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
-    "jcr:primaryType": "sling:OsgiConfig",
-    "name": "default",
-
-    "isResource" : true,
-
-    "type": "local",
-
-    "packageBuilder.target" : "(name=vlt)"
-}
\ No newline at end of file
diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.publish/org.apache.sling.distribution.packaging.impl.importer.LocalDistributionPackageImporterFactory-default.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.publish/org.apache.sling.distribution.packaging.impl.importer.LocalDistributionPackageImporterFactory-default.json
deleted file mode 100644
index f4607dc..0000000
--- a/src/main/resources/SLING-CONTENT/libs/sling/distribution/install.publish/org.apache.sling.distribution.packaging.impl.importer.LocalDistributionPackageImporterFactory-default.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
-    "jcr:primaryType": "sling:OsgiConfig",
-    "name": "default",
-    "type": "local",
-
-    "isResource" : true,
-
-    "packageBuilder.target" : "(name=vlt)"
-}
\ No newline at end of file
diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/defaults/exporters/global.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/defaults/exporters/global.json
new file mode 100644
index 0000000..be80eb3
--- /dev/null
+++ b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/defaults/exporters/global.json
@@ -0,0 +1,13 @@
+{
+    "jcr:primaryType" : "nt:unstructured",
+
+    "kind" : "exporter",
+
+    "isResource" : "true",
+
+    "packageBuilder" : {
+        "kind" : "packager",
+        "type" : "service",
+        "name" : "vlt"
+    }
+}
diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/defaults/importers/global.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/defaults/importers/global.json
new file mode 100644
index 0000000..9db09d2
--- /dev/null
+++ b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/defaults/importers/global.json
@@ -0,0 +1,13 @@
+{
+    "jcr:primaryType" : "nt:unstructured",
+
+    "kind" : "importer",
+
+    "isResource" : "true",
+
+    "packageBuilder" : {
+        "kind" : "packager",
+        "type" : "service",
+        "name" : "vlt"
+    }
+}
diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/exporters/default.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/exporters/default.json
new file mode 100644
index 0000000..df081d1
--- /dev/null
+++ b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/exporters/default.json
@@ -0,0 +1,3 @@
+{
+    "type" : "local"
+}
diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/exporters/reverse.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/exporters/reverse.json
new file mode 100644
index 0000000..070b66f
--- /dev/null
+++ b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/exporters/reverse.json
@@ -0,0 +1,7 @@
+{
+    "type" : "agent",
+    "agent": {
+        "type" : "service",
+        "name" : "reverse"
+    }
+}
diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/importers/default.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/importers/default.json
new file mode 100644
index 0000000..df081d1
--- /dev/null
+++ b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/importers/default.json
@@ -0,0 +1,3 @@
+{
+    "type" : "local"
+}

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.