You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2018/06/21 13:37:36 UTC
[sling-org-apache-sling-capabilities] branch master updated
(a13696f -> 8001bac)
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-capabilities.git.
from a13696f Check for duplicate namespaces
new 47445f9 Oops - forgot this class
new 8001bac Export the API package
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../internal/DuplicateNamespaceException.java} | 35 ++++------------------
.../apache/sling/capabilities/package-info.java | 22 ++++++++++++++
2 files changed, 28 insertions(+), 29 deletions(-)
copy src/{test/java/org/apache/sling/capabilities/internal/MockSource.java => main/java/org/apache/sling/capabilities/internal/DuplicateNamespaceException.java} (54%)
create mode 100644 src/main/java/org/apache/sling/capabilities/package-info.java
[sling-org-apache-sling-capabilities] 02/02: Export the API package
Posted by bd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-capabilities.git
commit 8001baccdb383ed557b319974e344346abc3c524
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Thu Jun 21 15:37:23 2018 +0200
Export the API package
---
.../apache/sling/capabilities/package-info.java | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/src/main/java/org/apache/sling/capabilities/package-info.java b/src/main/java/org/apache/sling/capabilities/package-info.java
new file mode 100644
index 0000000..2912df8
--- /dev/null
+++ b/src/main/java/org/apache/sling/capabilities/package-info.java
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+@Version("1.0.0")
+package org.apache.sling.capabilities;
+import org.osgi.annotation.versioning.Version;
\ No newline at end of file
[sling-org-apache-sling-capabilities] 01/02: Oops - forgot this
class
Posted by bd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-capabilities.git
commit 47445f9dae5fed0dfe124b65378977d85f2d3f3e
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Thu Jun 21 15:37:05 2018 +0200
Oops - forgot this class
---
.../internal/DuplicateNamespaceException.java | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/src/main/java/org/apache/sling/capabilities/internal/DuplicateNamespaceException.java b/src/main/java/org/apache/sling/capabilities/internal/DuplicateNamespaceException.java
new file mode 100644
index 0000000..afdf255
--- /dev/null
+++ b/src/main/java/org/apache/sling/capabilities/internal/DuplicateNamespaceException.java
@@ -0,0 +1,28 @@
+/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
+package org.apache.sling.capabilities.internal;
+
+import java.io.IOException;
+
+/** Indicates duplicated capabilities namespaces */
+public class DuplicateNamespaceException extends IOException {
+ DuplicateNamespaceException(String namespace) {
+ super("Duplicate CapabilitiesSource namespace: " + namespace);
+ }
+}
\ No newline at end of file