Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
a5e16b6
Use release http.whiteboard api
Apr 23, 2018
d450f68
Use release http.whiteboard api
Apr 23, 2018
784a7e2
Use release http.whiteboard api
Apr 23, 2018
adca54b
Use released OSGi R7 api
Apr 23, 2018
59c9229
Use released R7 apis
Apr 23, 2018
28292f7
Use released R7 apis
Apr 23, 2018
f0af2e4
Use released R7 api
Apr 23, 2018
c1359eb
Remove R6 implementation in favour of R7 one
Apr 23, 2018
00cceef
Move http base R7 to master
Apr 23, 2018
7d12c2b
Move http bridge R7 to master
Apr 23, 2018
92ece6f
Move http jetty R7 to master
Apr 23, 2018
b6ddfe7
Move http itest R7 to master
Apr 23, 2018
a6d44ec
Adjust versions
Apr 23, 2018
ea6f139
Remove obsolete http directory
Apr 23, 2018
e99f1fc
[Felix Converter] Remove dependency on OSGi Maven repo
Apr 23, 2018
a31854a
[Felix Converter] Prepare Javadoc for release
Apr 23, 2018
865b001
[maven-release-plugin] prepare release org.apache.felix.converter-1.0.0
Apr 23, 2018
cb521ba
[maven-release-plugin] prepare for next development iteration
Apr 23, 2018
b597828
FELIX-5838 Add OSGi Resource implementations to Felix Utils
Apr 23, 2018
0872513
FELIX-5829: delete ImmutableMap/List.
Apr 23, 2018
f584b1a
[FELIX-5839] Make checkAndLoadCache available for override
Apr 24, 2018
37513ba
[FELIX-5838] Move capability/requirement toString to a new ResourceUt…
Apr 24, 2018
4bcb5b3
[FELIX-5838] Make the filter usage a bit more coherent
Apr 24, 2018
ead1643
Correct version
Apr 24, 2018
3709bc2
Add missing ca version property
Apr 25, 2018
a60cf08
Move R7 configadmin to trunk
Apr 26, 2018
223426e
Move R7 configadmin to trunk
Apr 26, 2018
451224d
Move R7 SCR to trunk
Apr 26, 2018
e1b6709
Move R7 scr to trunk
Apr 26, 2018
3020b46
Move R7 configurator to trunk
Apr 26, 2018
8823a3f
Update changelog
Apr 26, 2018
49f4b99
Update changelog
Apr 26, 2018
ec90747
Correct svn location
Apr 26, 2018
a30efa4
[maven-release-plugin] prepare release org.apache.felix.configadmin-1…
Apr 26, 2018
f8f987f
[maven-release-plugin] prepare for next development iteration
Apr 26, 2018
6d951e5
Correct svn location
Apr 26, 2018
d4e288c
Use configadmin 1.9.0
Apr 26, 2018
b97dc51
[maven-release-plugin] prepare release org.apache.felix.scr-2.1.0
Apr 26, 2018
342cd8a
[maven-release-plugin] prepare for next development iteration
Apr 26, 2018
7fae5ca
Correct svn location
Apr 26, 2018
3d00649
Use latest converter
Apr 26, 2018
009f52d
Prepare for release
Apr 26, 2018
3a0b957
[maven-release-plugin] prepare release org.apache.felix.http.parent-10
Apr 26, 2018
e81ba24
[maven-release-plugin] prepare for next development iteration
Apr 26, 2018
ea355bd
[maven-release-plugin] prepare release org.apache.felix.http.base-4.0.0
Apr 26, 2018
408a576
[maven-release-plugin] prepare for next development iteration
Apr 26, 2018
c8a96f0
[maven-release-plugin] prepare release org.apache.felix.http.whiteboa…
Apr 26, 2018
68bf975
[maven-release-plugin] prepare for next development iteration
Apr 26, 2018
cb65b93
[maven-release-plugin] prepare release org.apache.felix.http.bridge-4…
Apr 26, 2018
bef3f97
[maven-release-plugin] prepare for next development iteration
Apr 26, 2018
b244c3d
[maven-release-plugin] prepare release org.apache.felix.http.jetty-4.0.0
Apr 26, 2018
c5b90e7
[maven-release-plugin] prepare for next development iteration
Apr 26, 2018
7a82fda
Use released converter
Apr 26, 2018
cf49215
[maven-release-plugin] prepare release org.apache.felix.configurator-…
Apr 27, 2018
1eca303
[maven-release-plugin] prepare for next development iteration
Apr 27, 2018
fabd361
Use correct dependency for osgi promises
Apr 27, 2018
502e622
FELIX-5841 : Update webconsole plugin to DS 1.4 (R7)
Apr 27, 2018
d35bba8
Fix up some javadoc in preparation for the release.
May 1, 2018
f28b76c
Use Felix Parent Pom v5
May 2, 2018
56d3459
[maven-release-plugin] prepare release org.apache.felix.utils-1.11.0
May 2, 2018
34a961d
[maven-release-plugin] prepare for next development iteration
May 2, 2018
699fcec
Update trunk to the osgi-r7 resolver
May 3, 2018
1878353
Update trunk to the osgi-r7 framework
May 3, 2018
dba7b60
Delete empty osgi-r7 dir.
May 3, 2018
4375b59
Update to latest parent pom version 5
May 3, 2018
0b08a65
Update to latest parent pom version 5
May 3, 2018
b3c9531
Update to latest parent pom version 5 and current framework snapshot …
May 3, 2018
41814af
Set version as 5.9.0-SNAPSHOT
May 3, 2018
28fcc0b
FELIX-5773 : Update implementation to EventAdmin 1.4 (R7)
May 4, 2018
f4fd49d
Avoid dependency to osgi.compendium
May 4, 2018
1f78518
[maven-release-plugin] prepare release org.apache.felix.eventadmin-1.5.0
May 4, 2018
a8df099
[maven-release-plugin] prepare for next development iteration
May 4, 2018
3055edb
FELIX-5779 : Update metatype to R7
May 4, 2018
b26785e
[maven-release-plugin] prepare release org.apache.felix.metatype-1.2.0
May 4, 2018
a6ae219
[maven-release-plugin] prepare for next development iteration
May 4, 2018
43b256b
Update changelog.txt
May 8, 2018
062c941
prepare systemready contrib
May 8, 2018
62e1003
FELIX-5845 : org.apache.felix.cm.impl.persistence.PersistenceManagerP…
May 8, 2018
fec3651
FELIX-5848 [contribution] Contribute System Ready to felix
May 9, 2018
8bb154a
Add test for FELIX-5849
May 10, 2018
9a2b07b
More info to the FrameworkStartCheck
May 10, 2018
4106c73
Update tests to junit annotations
May 11, 2018
3e2fa37
[FELIX-5855] Support array subscript in expander
May 17, 2018
a2d37b6
[FELIX-5856] Coercion between Object[] and List
May 17, 2018
ad104da
[FELIX-5856] Fix coercion between typed array and List
May 17, 2018
56ba0ac
[FELIX-5857] Provide a context classloader on the session to help wit…
May 17, 2018
a25c2e1
[logbackend] first commit
May 18, 2018
d99ae9f
[maven-release-plugin] prepare release org.apache.felix.configadmin-1…
May 23, 2018
764acc6
[maven-release-plugin] prepare for next development iteration
May 23, 2018
bbeda1c
Merge branch 'FELIX-5860' into trunk
May 24, 2018
43874dd
Revert "[FELIX-5860] Upgrade to OSGi R7"
May 24, 2018
6c9ecce
Update to felix-parent 5
May 24, 2018
3736869
[maven-release-plugin] prepare release org.apache.felix.connect-0.2.0
May 24, 2018
6e5cde8
[maven-release-plugin] prepare for next development iteration
May 24, 2018
4135f37
Cancel Felix Connect 0.2.0 release
May 25, 2018
2dcfb78
Update NOTICE file using Felix Connect name and adding ASF copyright
May 25, 2018
c630981
Update NOTICE
May 25, 2018
01b05ea
[maven-release-plugin] prepare release org.apache.felix.connect-0.2.0
May 25, 2018
b3c5be9
[maven-release-plugin] prepare for next development iteration
May 25, 2018
db14dec
[logback] rename and add integration test suite
May 28, 2018
2755274
[logback] do less work during release/deploy
May 28, 2018
1d2716f
FELIX-5848 FrameworkStartCheck and general improvements
Jun 4, 2018
0f47585
[FELIX-5794] maven-bundle-plugin fails to parse meta-persistence
Jun 8, 2018
018aeba
Make the FileInstall BAR plugin easier to build
Jun 11, 2018
38bfba7
FELIX-5865 : SCR r7 logging support doesn't work on equinox framework
Jun 12, 2018
0e4a0f9
[logback] update project configurations
Jun 12, 2018
a8fe38f
FELIX-5867 reference field of type Logger for service LoggerFactory i…
Jun 12, 2018
e86f3d1
FELIX-5866 : scr does not respect the log level set in LoggerAdmin
Jun 13, 2018
111ed75
Update changelog
Jun 13, 2018
9bd7fbe
[FELIX-5869] [goto][jline] Weird error if the script contains unicode…
Jun 14, 2018
1a176e7
[maven-release-plugin] prepare release gogo-parent-3
Jun 14, 2018
bfc2b3d
[maven-release-plugin] rollback the release of gogo-parent-3
Jun 14, 2018
8090dba
Upgrade to latest felix parent
Jun 14, 2018
caa0628
[maven-release-plugin] prepare release gogo-parent-3
Jun 14, 2018
f2ea0c3
[maven-release-plugin] prepare for next development iteration
Jun 14, 2018
433a0c1
Upgrade to latest parent
Jun 14, 2018
de41d04
Upgrade to latest felix parent, fix poms
Jun 14, 2018
f75edf1
[maven-release-plugin] prepare release gogo-parent-4
Jun 14, 2018
78bb837
[maven-release-plugin] prepare for next development iteration
Jun 14, 2018
1508cb8
Upgrade to gogo-parent 4
Jun 14, 2018
f809e9c
[maven-release-plugin] prepare release org.apache.felix.gogo.runtime-…
Jun 14, 2018
ebc1019
[maven-release-plugin] prepare for next development iteration
Jun 14, 2018
b02d06a
Upgrade to gogo-parent 4
Jun 14, 2018
135f6f6
[maven-release-plugin] prepare release org.apache.felix.gogo.shell-1.1.0
Jun 14, 2018
8c35aa1
[maven-release-plugin] prepare for next development iteration
Jun 14, 2018
ced5e62
[maven-release-plugin] prepare release org.apache.felix.gogo.jline-1.1.0
Jun 14, 2018
32169dd
[maven-release-plugin] prepare for next development iteration
Jun 14, 2018
9063278
[maven-release-plugin] prepare release maven-bundle-plugin-3.5.1
Jun 14, 2018
aa197fa
[maven-release-plugin] prepare for next development iteration
Jun 14, 2018
1454115
FELIX-5870: Don't allow relative path instructions in bundleclasspath…
Jun 15, 2018
54d492f
FELIX-5800: fix a bug where we where using the wrong properties map.
Jun 15, 2018
975b8ea
FELIX-5800: Fix a small bug when calculating osgi.ee on > java9.
Jun 18, 2018
0a1e13e
FELIX-5828: Remove support for android.
Jun 18, 2018
ebbdb24
cleanup old directories
Jun 21, 2018
227838f
[logback] pre-release preparations
Jun 21, 2018
307e56c
[logback] maven ignores
Jun 21, 2018
c48f499
[logback] maven ignores... really this time
Jun 21, 2018
8512cb2
[logback] isolate itests into own profile
Jun 21, 2018
c6d95de
[maven-release-plugin] prepare release org.apache.felix.logback.react…
Jun 21, 2018
0f64eda
[maven-release-plugin] prepare for next development iteration
Jun 21, 2018
0c7f0ed
FELIX-5800: minor refactoring to not do the prop sub twice.
Jun 22, 2018
3164ceb
[logback] revert attempted release
Jun 22, 2018
592d3da
[logback] fix parent dependency so felix.logback can be released by i…
Jun 22, 2018
d36557e
[logback] fix parent
Jun 22, 2018
8a33559
[maven-release-plugin] prepare release org.apache.felix.logback-1.0.0
Jun 22, 2018
afb405e
[maven-release-plugin] prepare for next development iteration
Jun 22, 2018
0bfe4ca
FELIX-5872 Fix timing issue in FrameworkStartTest. Other fixes
Jun 25, 2018
0ec5078
FELIX-5873 - Remove servlet context select to fix servlet in karaf
Jun 26, 2018
cad8a5f
FELIX-5874: Make URLHandlersContentHandlerProxy.getBuiltIn return the…
Jun 27, 2018
6bfe771
FELIX-5875: allow org.osgi.framework.os.name et.al. to be given via t…
Jun 29, 2018
23f4109
Update framework version to 1.9
Jun 29, 2018
2927f22
FELIX-5876 Update to Log Service Specification 1.4
Jul 2, 2018
35c829f
Update changelog for release
Jul 3, 2018
d73f139
Update changelog for release
Jul 3, 2018
706e9da
FELIX-5877: Add missing org.w3c.dom exports
Jul 3, 2018
a400057
Update changelog for release
Jul 3, 2018
20486ee
Update to gogo 1.1.0 and jansi 1.17.1
Jul 3, 2018
25f90c7
Update changelog for release
Jul 3, 2018
3f194f0
Update changelog for release
Jul 3, 2018
f079c18
[maven-release-plugin] prepare release org.apache.felix.resolver-2.0.0
Jul 3, 2018
bbb00b8
[maven-release-plugin] prepare for next development iteration
Jul 3, 2018
ffd0c94
[maven-release-plugin] prepare release org.apache.felix.framework-6.0.0
Jul 3, 2018
d38552b
[maven-release-plugin] prepare for next development iteration
Jul 3, 2018
4a0ed76
[maven-release-plugin] prepare release org.apache.felix.main-6.0.0
Jul 3, 2018
bca34dc
[maven-release-plugin] prepare for next development iteration
Jul 3, 2018
95d7490
Set development version to 6.1.0-SNAPSHOT
Jul 3, 2018
51172c5
Set development version to 2.1.0-SNAPSHOT
Jul 3, 2018
4f69e23
Set development version to 6.1.0-SNAPSHOT
Jul 3, 2018
012b216
Update dependencies for release
Jul 3, 2018
d41f15f
[maven-release-plugin] prepare release org.apache.felix.main.distribu…
Jul 3, 2018
28c752f
[maven-release-plugin] prepare for next development iteration
Jul 3, 2018
d9bc53c
[log] remove dependency on ConfigurationAdmin added in FELIX-5876
Jul 3, 2018
c43a02b
Update dependencies after release
Jul 3, 2018
31bdadf
[log] update changelog
Jul 4, 2018
c05b054
FELIX-5880 : Add a framework extension fragment which helps load Feli…
Jul 4, 2018
0b66567
[logback] add tests for felix log service
Jul 4, 2018
1dfc111
[logback] use equinox from maven central
Jul 4, 2018
f70eaf9
Update bnd version. Export packages by annotation
Jul 4, 2018
6feebd7
[log] make resolving config admin service dependency possible
Jul 5, 2018
1660ac0
[logback] sync README with the CMS page
Jul 6, 2018
f49f83b
[log] create a readme file for easier documentation maintenance (just…
Jul 6, 2018
269c00d
Update changelog
Jul 9, 2018
bd6734d
[log] pre-release cleanup
Jul 9, 2018
94cdf49
[log.extension] pre-release cleanup
Jul 9, 2018
5d8c49d
[maven-release-plugin] prepare release org.apache.felix.log-1.2.0
Jul 9, 2018
40967c9
[maven-release-plugin] prepare for next development iteration
Jul 9, 2018
d0e51b9
[maven-release-plugin] prepare release org.apache.felix.log.extension…
Jul 9, 2018
6d055a7
[maven-release-plugin] prepare for next development iteration
Jul 9, 2018
63a615a
FELIX-5882: Update to jetty version 9.4.11.v20180605
Jul 9, 2018
f4a05fd
[maven-release-plugin] prepare release org.apache.felix.http.jetty-4.0.2
Jul 9, 2018
4edfadc
[maven-release-plugin] prepare for next development iteration
Jul 9, 2018
f45516d
FELIX-5873 - Change default servlet path to not collide with system c…
Jul 11, 2018
649fd96
FELIX-5873 - Docs
Jul 11, 2018
6cf9d4a
FELIX-5866 : scr does not respect the log level set in LoggerAdmin
Jul 12, 2018
6389492
FELIX-5883 : Add support to enable and configure the jetty GzipHandle…
Jul 12, 2018
5c22212
Updated docs
Jul 12, 2018
ba0771c
Improve servlet docs
Jul 12, 2018
c1ffb33
Improve servlet docs
Jul 12, 2018
2cde23a
Add rat plugin config
Jul 12, 2018
050df93
Add javadoc config
Jul 12, 2018
4bae72d
Switch to felix parent, add scm entry, add signature config for java 8
Jul 12, 2018
fa1bd84
FELIX-5885 : SCR uses an overly restrictive import range for promises
Jul 13, 2018
3d01deb
Move why systemready and add project information
Jul 13, 2018
f2b6d7e
[maven-release-plugin] prepare release org.apache.felix.systemready-0…
Jul 13, 2018
1ba0c04
[maven-release-plugin] prepare for next development iteration
Jul 13, 2018
cd3dbb5
FELIX-5886: Only log errors if we can't load the bytes of an existing…
Jul 13, 2018
894c1aa
Simplify pom.xml
Jul 16, 2018
3c147cb
FELIX-5889: make extension bundle capabilities be indexed by the reso…
Jul 16, 2018
f638feb
Add comment
Jul 17, 2018
5539b4f
Add build status
Jul 17, 2018
d96bfe6
Remove test results badge as it does not work
Jul 17, 2018
6ee15de
Clean-up: use StringBuilder instead of StringBuffer everywhere.
Jul 18, 2018
e511497
FELIX-5891 : Keep order of properties and objects. Apply patch from A…
Jul 25, 2018
6ace05b
FELIX-5891 : Keep order of properties and objects. Apply patch from A…
Jul 25, 2018
63cc337
FELIX-5891 : Keep order of properties and objects. Apply patch from A…
Jul 25, 2018
3748360
[maven-release-plugin] prepare release org.apache.felix.configurator-…
Jul 26, 2018
bcd3ee6
[maven-release-plugin] prepare for next development iteration
Jul 26, 2018
3a06422
FELIX-5892 : Repeated calls to getFactoryConfiguration return differe…
Jul 28, 2018
6413784
Update changelog
Jul 31, 2018
926be00
[maven-release-plugin] prepare release org.apache.felix.configadmin-1…
Jul 31, 2018
bb983d2
[maven-release-plugin] prepare for next development iteration
Jul 31, 2018
13fa2ee
Update changelog
Aug 2, 2018
da57a51
[maven-release-plugin] prepare release org.apache.felix.scr-2.1.2
Aug 2, 2018
6744029
[maven-release-plugin] prepare for next development iteration
Aug 2, 2018
5c12c07
FELIX-5896 : Avoid runtime dependency to javax.annotation package
Aug 2, 2018
f0e1f65
FELIX-5858 : Additional server configured through OSGi factory config…
Aug 2, 2018
5dfd888
[maven-release-plugin] prepare release org.apache.felix.http.parent-11
Aug 2, 2018
1abc778
[maven-release-plugin] prepare for next development iteration
Aug 2, 2018
b321aa7
Update to released parent pom
Aug 2, 2018
f606d87
Update to released parent pom
Aug 2, 2018
08135b2
[maven-release-plugin] prepare release org.apache.felix.http.base-4.0.2
Aug 2, 2018
4767a5c
[maven-release-plugin] prepare for next development iteration
Aug 2, 2018
2933efb
Update to base 4.0.2
Aug 2, 2018
aa71e92
[maven-release-plugin] prepare release org.apache.felix.http.bridge-4…
Aug 2, 2018
ad044df
[maven-release-plugin] prepare for next development iteration
Aug 2, 2018
55ebeb9
[maven-release-plugin] prepare release org.apache.felix.http.jetty-4.0.4
Aug 2, 2018
92b6d61
[maven-release-plugin] prepare for next development iteration
Aug 2, 2018
40fb087
[PROPOSAL] add new MOJOs able to generate the Markdown documentation
Aug 6, 2018
9c83880
FELIX-5900 - Donating a tool able to generate markdown documentation for
Aug 18, 2018
913042e
FELIX-5900 - Donating a tool able to generate markdown documentation for
Aug 20, 2018
c787800
FELIX-5900 - Donating a tool able to generate markdown documentation for
Aug 20, 2018
7b6c575
FELIX-5900 - Donating a tool able to generate markdown documentation for
Aug 20, 2018
67eff04
FELIX-5900 - Donating a tool able to generate markdown documentation for
Aug 20, 2018
653d109
FELIX-5900 - Donating a tool able to generate markdown documentation for
Aug 20, 2018
2aae017
FELIX-5900 - Donating a tool able to generate markdown documentation for
Aug 20, 2018
a3cf4d5
FELIX-5900 - Donating a tool able to generate markdown documentation for
Aug 20, 2018
2dd082a
FELIX-5900 - Donating a tool able to generate markdown documentation for
Aug 20, 2018
c7c0676
FELIX-5900 - Donating a tool able to generate markdown documentation for
Aug 20, 2018
119f2fd
FELIX-5900 - Donating a tool able to generate markdown documentation for
Aug 20, 2018
2783282
FELIX-5900 - Donating a tool able to generate markdown documentation for
Aug 21, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.checkstyle
.classpath
.pmd
.project
.ruleset
.settings/
target/
*.iml
*.iws
*.ipr
velocity.log
maven-eclipse.xml
.externalToolBuilders
.idea/
*~
dependency-reduced-pom.xml
6 changes: 0 additions & 6 deletions build_run.sh

This file was deleted.

101 changes: 101 additions & 0 deletions bundlerepository.osgi-ct/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<!--
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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.apache.felix</groupId>
<artifactId>felix-parent</artifactId>
<version>2.1</version>
<relativePath>../../pom/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>bundle</packaging>
<name>Apache Felix Bundle Repository - OSGi CT integration</name>
<description>
Bundle repository service OSGi CT integration. To run a Repository implementation in the
OSGi CT, a small integration layer needs to be provided by the implementation that knows
how to prime the repository with the provided repository xml file.
</description>
<artifactId>org.apache.felix.bundlerepository.osgi-ct</artifactId>
<version>2.0.3-SNAPSHOT</version>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/bundlerepository.osgi-ct</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/bundlerepository.osgi-ct</developerConnection>
<url>http://svn.apache.org/repos/asf/felix/trunk/bundlerepository.osgi-ct</url>
</scm>
<dependencies>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.compendium</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>org.apache.felix.bundlerepository</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<target>1.5</target>
<source>1.5</source>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.4</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package></Export-Package>
<Private-Package>org.apache.felix.bundlerepository.osgict</Private-Package>
<Bundle-Activator>org.apache.felix.bundlerepository.osgict.Activator</Bundle-Activator>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
<excludeSubProjects>false</excludeSubProjects>
<useEclipseDefaultExcludes>true</useEclipseDefaultExcludes>
<useMavenDefaultExcludes>true</useMavenDefaultExcludes>
<excludes>
<param>doc/*</param>
<param>maven-eclipse.xml</param>
<param>.checkstyle</param>
<param>.externalToolBuilders/*</param>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
/*
* 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.felix.bundlerepository.osgict;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Dictionary;
import java.util.Hashtable;

import org.apache.felix.bundlerepository.RepositoryAdmin;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.Filter;
import org.osgi.framework.ServiceReference;
import org.osgi.util.tracker.ServiceTracker;

/**
* This Activator implements the required glue between an OSGi Repository implementation and the
* OSGi CT. It is needed to prime the repository with the data needed by the CT and works as
* follows:
* <ul>
* <li>The CT registers a String service with as property {@code repository-xml}. This service is
* literally the repository XML needed by the test, and must be fed to the repository implementation.
* <li>When that's done this glue code registers another service with as property
* {@code repository-populated} to signal to the CT that the priming is done.
* </ul>
*/
public class Activator implements BundleActivator
{
private BundleContext bundleContext;
private ServiceTracker<String, String> repoXMLTracker;
private ServiceTracker<RepositoryAdmin, RepositoryAdmin> repoTracker;

public void start(BundleContext context) throws Exception
{
bundleContext = context;
Filter f = context.createFilter("(&(objectClass=java.lang.String)(repository-xml=*))");
repoXMLTracker = new ServiceTracker<String, String>(context, f, null) {
@Override
public String addingService(ServiceReference<String> reference)
{
try
{
String xml = super.addingService(reference);
handleRepositoryXML(reference, xml);
return xml;
}
catch (Exception e)
{
throw new RuntimeException(e);
}
}
};
repoXMLTracker.open();
}

public void stop(BundleContext context) throws Exception
{
repoXMLTracker.close();
if (repoTracker != null)
repoTracker.close();
}

private void handleRepositoryXML(ServiceReference<String> reference, String xml) throws Exception
{
File tempXMLFile = bundleContext.getDataFile("repo-" + reference.getProperty("repository-xml") + ".xml");
writeXMLToFile(tempXMLFile, xml);

repoTracker = new ServiceTracker<RepositoryAdmin, RepositoryAdmin>(bundleContext, RepositoryAdmin.class, null);
repoTracker.open();
RepositoryAdmin repo = repoTracker.waitForService(30000);
repo.addRepository(tempXMLFile.toURI().toURL());
tempXMLFile.delete();

Dictionary<String, Object> props = new Hashtable<String, Object>();
props.put("repository-populated", reference.getProperty("repository-xml"));
bundleContext.registerService(String.class, "", props);
}

private void writeXMLToFile(File tempXMLFile, String xml) throws IOException
{
FileOutputStream fos = new FileOutputStream(tempXMLFile);
try
{
fos.write(xml.getBytes());
}
finally
{
fos.close();
}
}
}
32 changes: 32 additions & 0 deletions bundlerepository/DEPENDENCIES
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Apache Felix OSGi Bundle Repository
Copyright 2014 The Apache Software Foundation

This software was developed at the Apache Software Foundation
(http://www.apache.org) and may have dependencies on other
Apache software licensed under Apache License 2.0.

I. Included Third-Party Software

This product includes software from http://kxml.sourceforge.net.
Copyright (c) 2002,2003, Stefan Haustein, Oberhausen, Rhld., Germany.
Licensed under BSD License.

This product includes software developed at
The OSGi Alliance (http://www.osgi.org/).
Copyright (c) OSGi Alliance (2000, 2012).
Licensed under the Apache License 2.0.

II. Used Third-Party Software

This product uses software developed at
The OSGi Alliance (http://www.osgi.org/).
Copyright (c) OSGi Alliance (2000, 2012).
Licensed under the Apache License 2.0.

This product uses software developed at
The Codehaus (http://www.codehaus.org)
Licensed under the Apache License 2.0.

III. License Summary
- Apache License 2.0
- BSD License
File renamed without changes.
19 changes: 19 additions & 0 deletions bundlerepository/LICENSE.kxml2
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2002,2003, Stefan Haustein, Oberhausen, Rhld., Germany

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
16 changes: 16 additions & 0 deletions bundlerepository/NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Apache Felix OSGi Bundle Repository
Copyright 2014 The Apache Software Foundation

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
Licensed under the Apache License 2.0.

This product includes software from http://kxml.sourceforge.net.
Copyright (c) 2002,2003, Stefan Haustein, Oberhausen, Rhld., Germany.
Licensed under BSD License.

This product includes software developed at
The OSGi Alliance (http://www.osgi.org/).
Copyright (c) OSGi Alliance (2000, 2012).
Licensed under the Apache License 2.0.

Loading