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:18:59 UTC
[sling-org-apache-sling-caconfig-bnd-plugin] annotated tag
org.apache.sling.caconfig.bnd-plugin-1.0.2 created (now 381bb60)
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a change to annotated tag org.apache.sling.caconfig.bnd-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-caconfig-bnd-plugin.git.
at 381bb60 (tag)
tagging f6ec64843296c06ac4c0a11479991d55fd0b49ea (commit)
by Stefan Seifert
on Tue Dec 13 11:47:44 2016 +0000
- Log -----------------------------------------------------------------
org.apache.sling.caconfig.bnd-plugin-1.0.2
-----------------------------------------------------------------------
This annotated tag includes the following new commits:
new 58e81b9 SLING-6025 Context-Aware Config: Provide configuration parameter metadata
new db91a1d SLING-6157 Context-Aware Config: Change java package name to o.a.s.caconfig
new e3ee398 update name/description
new c00ebaf [maven-release-plugin] prepare release org.apache.sling.caconfig.bnd-plugin-1.0.0
new 90a33e2 [maven-release-plugin] prepare for next development iteration
new 71f2155 update to parent 29
new fc320ea SLING-6277 CAConfig BND Plugin: Do not generate bundle header when no class names found use unit test calling BND directly instead of integration test
new 4743fb1 switch to lowercase "bnd" - as used on http://bnd.bndtools.org/
new 7ca41d9 update to release version
new eb97aff [maven-release-plugin] prepare release org.apache.sling.caconfig.bnd-plugin-1.0.2
new f6ec648 [maven-release-plugin] copy for tag org.apache.sling.caconfig.bnd-plugin-1.0.2
The 11 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.
--
To stop receiving notification emails like this one, please contact
['"commits@sling.apache.org" <co...@sling.apache.org>'].
[sling-org-apache-sling-caconfig-bnd-plugin] 06/07:
[maven-release-plugin] prepare release
org.apache.sling.caconfig.bnd-plugin-1.0.2
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.caconfig.bnd-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-caconfig-bnd-plugin.git
commit eb97affb096df60cb430aa072f91fd5284097088
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Tue Dec 13 11:47:31 2016 +0000
[maven-release-plugin] prepare release org.apache.sling.caconfig.bnd-plugin-1.0.2
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/contextaware-config/tooling/bnd-plugin@1773961 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 284713c..700ceee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,14 +29,14 @@
<artifactId>org.apache.sling.caconfig.bnd-plugin</artifactId>
<packaging>jar</packaging>
- <version>1.0.1-SNAPSHOT</version>
+ <version>1.0.2</version>
<name>Apache Sling Context-Aware Configuration bnd Plugin</name>
<description>This bnd plugin detected all configuration annotation classes and adds a bundle header 'Sling-ContextAware-Configuration-Classes' containing their names.</description>
<scm>
- <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/contextaware-config/tooling/bnd-plugin</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/contextaware-config/tooling/bnd-plugin</developerConnection>
- <url>http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/contextaware-config/tooling/bnd-plugin</url>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/org.apache.sling.caconfig.bnd-plugin-1.0.2</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.caconfig.bnd-plugin-1.0.2</developerConnection>
+ <url>http://svn.apache.org/viewvc/sling/tags/org.apache.sling.caconfig.bnd-plugin-1.0.2</url>
</scm>
<dependencies>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-caconfig-bnd-plugin] 02/07: update to
parent 29
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.caconfig.bnd-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-caconfig-bnd-plugin.git
commit 71f21555371b54bbcc06f94d5a91c51a02304d0a
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Tue Nov 1 20:45:06 2016 +0000
update to parent 29
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/contextaware-config/tooling/bnd-plugin@1767570 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ed56a4c..cea3692 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.sling</groupId>
<artifactId>sling</artifactId>
- <version>28</version>
+ <version>29</version>
<relativePath />
</parent>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-caconfig-bnd-plugin] 05/07: update to
release version
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.caconfig.bnd-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-caconfig-bnd-plugin.git
commit 7ca41d9b2219ed7f1fb03d1e11d98b882f77cfe3
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Tue Dec 13 11:29:20 2016 +0000
update to release version
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/contextaware-config/tooling/bnd-plugin@1773950 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 4f4f05b..284713c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -70,7 +70,7 @@
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.caconfig.api</artifactId>
- <version>1.0.0</version>
+ <version>1.1.0</version>
<scope>test</scope>
</dependency>
</dependencies>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-caconfig-bnd-plugin] 01/07:
[maven-release-plugin] prepare for next development iteration
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.caconfig.bnd-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-caconfig-bnd-plugin.git
commit 90a33e2748045a7a022d3b37b0ae4b0c575b669f
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Fri Oct 14 22:25:45 2016 +0000
[maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/contextaware-config/tooling/bnd-plugin@1764994 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 6cbee36..ed56a4c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,14 +29,14 @@
<artifactId>org.apache.sling.caconfig.bnd-plugin</artifactId>
<packaging>jar</packaging>
- <version>1.0.0</version>
+ <version>1.0.1-SNAPSHOT</version>
<name>Apache Sling Context-Aware Configuration BND Plugin</name>
<description>This BND plugin detected all configuration annotation classes and adds a bundle header 'Sling-ContextAware-Configuration-Classes' containing their names.</description>
<scm>
- <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/org.apache.sling.caconfig.bnd-plugin-1.0.0</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.caconfig.bnd-plugin-1.0.0</developerConnection>
- <url>http://svn.apache.org/viewvc/sling/tags/org.apache.sling.caconfig.bnd-plugin-1.0.0</url>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/contextaware-config/tooling/bnd-plugin</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/contextaware-config/tooling/bnd-plugin</developerConnection>
+ <url>http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/contextaware-config/tooling/bnd-plugin</url>
</scm>
<dependencies>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-caconfig-bnd-plugin] 04/07: switch to
lowercase "bnd" - as used on http://bnd.bndtools.org/
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.caconfig.bnd-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-caconfig-bnd-plugin.git
commit 4743fb194c6461a1950129f30548a43474ec5aad
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Mon Nov 21 20:46:24 2016 +0000
switch to lowercase "bnd" - as used on http://bnd.bndtools.org/
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/contextaware-config/tooling/bnd-plugin@1770751 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 788d622..4f4f05b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,8 +30,8 @@
<artifactId>org.apache.sling.caconfig.bnd-plugin</artifactId>
<packaging>jar</packaging>
<version>1.0.1-SNAPSHOT</version>
- <name>Apache Sling Context-Aware Configuration BND Plugin</name>
- <description>This BND plugin detected all configuration annotation classes and adds a bundle header 'Sling-ContextAware-Configuration-Classes' containing their names.</description>
+ <name>Apache Sling Context-Aware Configuration bnd Plugin</name>
+ <description>This bnd plugin detected all configuration annotation classes and adds a bundle header 'Sling-ContextAware-Configuration-Classes' containing their names.</description>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/contextaware-config/tooling/bnd-plugin</connection>
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-caconfig-bnd-plugin] 03/07: SLING-6277
CAConfig BND Plugin: Do not generate bundle header when no class names
found use unit test calling BND directly instead of integration test
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.caconfig.bnd-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-caconfig-bnd-plugin.git
commit fc320eab4f0142ae4775662fb7e01ac4d193eed4
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Fri Nov 11 22:07:05 2016 +0000
SLING-6277 CAConfig BND Plugin: Do not generate bundle header when no class names found
use unit test calling BND directly instead of integration test
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/contextaware-config/tooling/bnd-plugin@1769352 13f79535-47bb-0310-9956-ffa450edef68
---
pom.xml | 22 ++++++
.../bndplugin/ConfigurationClassScannerPlugin.java | 14 ++--
src/test/java/dummy/example/pkg1/Config1.java | 26 +++++++
src/test/java/dummy/example/pkg1/Config2.java | 26 +++++++
src/test/java/dummy/example/pkg1/sub1/Config3.java | 26 +++++++
.../AbstractConfigurationClassScannerPlugin.java | 79 ++++++++++++++++++++++
.../caconfig/bndplugin/GenerateHeaderTest.java | 39 +++++++++++
7 files changed, 226 insertions(+), 6 deletions(-)
diff --git a/pom.xml b/pom.xml
index cea3692..788d622 100644
--- a/pom.xml
+++ b/pom.xml
@@ -51,6 +51,28 @@
<version>3.3.2</version>
<scope>compile</scope>
</dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ <version>2.2.15</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.sling</groupId>
+ <artifactId>org.apache.sling.caconfig.api</artifactId>
+ <version>1.0.0</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
</project>
diff --git a/src/main/java/org/apache/sling/caconfig/bndplugin/ConfigurationClassScannerPlugin.java b/src/main/java/org/apache/sling/caconfig/bndplugin/ConfigurationClassScannerPlugin.java
index 1b9b779..9584741 100644
--- a/src/main/java/org/apache/sling/caconfig/bndplugin/ConfigurationClassScannerPlugin.java
+++ b/src/main/java/org/apache/sling/caconfig/bndplugin/ConfigurationClassScannerPlugin.java
@@ -18,10 +18,10 @@
*/
package org.apache.sling.caconfig.bndplugin;
-import java.util.ArrayList;
import java.util.Collection;
-import java.util.List;
import java.util.Map;
+import java.util.SortedSet;
+import java.util.TreeSet;
import org.apache.commons.lang3.StringUtils;
@@ -40,9 +40,9 @@ import aQute.service.reporter.Reporter;
*/
public class ConfigurationClassScannerPlugin implements AnalyzerPlugin, Plugin {
- private static final String CONFIGURATION_ANNOTATION_CLASS = "org.apache.sling.caconfig.annotation.Configuration";
+ static final String CONFIGURATION_ANNOTATION_CLASS = "org.apache.sling.caconfig.annotation.Configuration";
- private static final String CONFIGURATION_CLASSES_HEADER = "Sling-ContextAware-Configuration-Classes";
+ static final String CONFIGURATION_CLASSES_HEADER = "Sling-ContextAware-Configuration-Classes";
private Reporter reporter;
@@ -63,7 +63,9 @@ public class ConfigurationClassScannerPlugin implements AnalyzerPlugin, Plugin {
Collection<String> classNames = getClassesWithAnnotation(CONFIGURATION_ANNOTATION_CLASS, analyzer);
// set bundle header containing all class names found
- analyzer.set(CONFIGURATION_CLASSES_HEADER, StringUtils.join(classNames, ","));
+ if (!classNames.isEmpty()) {
+ analyzer.set(CONFIGURATION_CLASSES_HEADER, StringUtils.join(classNames, ","));
+ }
// we did not change any classes - no need to re-analyze
return false;
@@ -76,7 +78,7 @@ public class ConfigurationClassScannerPlugin implements AnalyzerPlugin, Plugin {
* @return Class names
*/
private Collection<String> getClassesWithAnnotation(String annotationClassName, Analyzer analyzer) {
- List<String> classNames = new ArrayList<>();
+ SortedSet<String> classNames = new TreeSet<>();
Collection<Clazz> clazzes = analyzer.getClassspace().values();
Instruction instruction = new Instruction(annotationClassName);
try {
diff --git a/src/test/java/dummy/example/pkg1/Config1.java b/src/test/java/dummy/example/pkg1/Config1.java
new file mode 100644
index 0000000..9dd90b7
--- /dev/null
+++ b/src/test/java/dummy/example/pkg1/Config1.java
@@ -0,0 +1,26 @@
+/*
+ * 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 dummy.example.pkg1;
+
+import org.apache.sling.caconfig.annotation.Configuration;
+
+@Configuration
+public @interface Config1 {
+
+}
diff --git a/src/test/java/dummy/example/pkg1/Config2.java b/src/test/java/dummy/example/pkg1/Config2.java
new file mode 100644
index 0000000..322a1df
--- /dev/null
+++ b/src/test/java/dummy/example/pkg1/Config2.java
@@ -0,0 +1,26 @@
+/*
+ * 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 dummy.example.pkg1;
+
+import org.apache.sling.caconfig.annotation.Configuration;
+
+@Configuration
+public @interface Config2 {
+
+}
diff --git a/src/test/java/dummy/example/pkg1/sub1/Config3.java b/src/test/java/dummy/example/pkg1/sub1/Config3.java
new file mode 100644
index 0000000..456413c
--- /dev/null
+++ b/src/test/java/dummy/example/pkg1/sub1/Config3.java
@@ -0,0 +1,26 @@
+/*
+ * 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 dummy.example.pkg1.sub1;
+
+import org.apache.sling.caconfig.annotation.Configuration;
+
+@Configuration
+public @interface Config3 {
+
+}
diff --git a/src/test/java/org/apache/sling/caconfig/bndplugin/AbstractConfigurationClassScannerPlugin.java b/src/test/java/org/apache/sling/caconfig/bndplugin/AbstractConfigurationClassScannerPlugin.java
new file mode 100644
index 0000000..e0e9e31
--- /dev/null
+++ b/src/test/java/org/apache/sling/caconfig/bndplugin/AbstractConfigurationClassScannerPlugin.java
@@ -0,0 +1,79 @@
+/*
+ * 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.caconfig.bndplugin;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.fail;
+import static org.mockito.Mockito.mock;
+
+import java.io.File;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Set;
+import java.util.jar.Manifest;
+
+import org.apache.commons.lang3.StringUtils;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.mockito.runners.MockitoJUnitRunner;
+
+import aQute.bnd.osgi.Builder;
+import aQute.bnd.osgi.Jar;
+import aQute.bnd.service.Plugin;
+import aQute.service.reporter.Reporter;
+
+@RunWith(MockitoJUnitRunner.class)
+public abstract class AbstractConfigurationClassScannerPlugin {
+
+ protected Builder builder;
+
+ @Before
+ public final void setUp() throws Exception {
+ builder = new Builder();
+
+ Jar classesDirJar = new Jar("test.jar", new File("target/test-classes"));
+ classesDirJar.setManifest(new Manifest());
+ builder.setJar(classesDirJar);
+
+ builder.setSourcepath(new File[] { new File("src/test/java") } );
+
+ Plugin plugin = new ConfigurationClassScannerPlugin();
+ plugin.setReporter(mock(Reporter.class));
+ plugin.setProperties(new HashMap<String,String>());
+ builder.addBasicPlugin(plugin);
+ }
+
+ @After
+ public final void tearDown() throws Exception {
+ if (!builder.getErrors().isEmpty()) {
+ fail(StringUtils.join(builder.getErrors(), "\n"));
+ }
+ builder.close();
+ }
+
+ protected final void assertHeader(Jar jar, String headerName, String... headerValues) throws Exception {
+ Set<String> expectedValues = new HashSet<>(Arrays.asList(headerValues));
+ String[] actual = StringUtils.split(jar.getManifest().getMainAttributes().getValue(headerName), ",");
+ Set<String> actualValues = new HashSet<>(Arrays.asList(actual));
+ assertEquals(expectedValues, actualValues);
+ }
+
+}
diff --git a/src/test/java/org/apache/sling/caconfig/bndplugin/GenerateHeaderTest.java b/src/test/java/org/apache/sling/caconfig/bndplugin/GenerateHeaderTest.java
new file mode 100644
index 0000000..aed0980
--- /dev/null
+++ b/src/test/java/org/apache/sling/caconfig/bndplugin/GenerateHeaderTest.java
@@ -0,0 +1,39 @@
+/*
+ * 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.caconfig.bndplugin;
+
+import static org.apache.sling.caconfig.bndplugin.ConfigurationClassScannerPlugin.*;
+
+import org.junit.Test;
+
+import aQute.bnd.osgi.Jar;
+
+public class GenerateHeaderTest extends AbstractConfigurationClassScannerPlugin {
+
+ @Test
+ public void testBuild() throws Exception {
+ Jar jar = builder.build();
+
+ assertHeader(jar, CONFIGURATION_CLASSES_HEADER,
+ "dummy.example.pkg1.Config1",
+ "dummy.example.pkg1.Config2",
+ "dummy.example.pkg1.sub1.Config3");
+ }
+
+}
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.
[sling-org-apache-sling-caconfig-bnd-plugin] 07/07:
[maven-release-plugin] copy for tag
org.apache.sling.caconfig.bnd-plugin-1.0.2
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.caconfig.bnd-plugin-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-caconfig-bnd-plugin.git
commit f6ec64843296c06ac4c0a11479991d55fd0b49ea
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Tue Dec 13 11:47:44 2016 +0000
[maven-release-plugin] copy for tag org.apache.sling.caconfig.bnd-plugin-1.0.2
git-svn-id: https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.caconfig.bnd-plugin-1.0.2@1773963 13f79535-47bb-0310-9956-ffa450edef68
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.