Skip to content

Commit 593c155

Browse files
committed
Initial
0 parents  commit 593c155

File tree

18 files changed

+1132
-0
lines changed

18 files changed

+1132
-0
lines changed

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
**/target/
2+
**/pom.xml.tag
3+
**/pom.xml.releaseBackup
4+
**/pom.xml.versionsBackup
5+
**/pom.xml.next
6+
**/generated/
7+
**/.project
8+
**/.classpath
9+
**/.settings/
10+
**/*.jar
11+
release.properties
12+
dependency-reduced-pom.xml
13+
buildNumber.properties
14+
.mvn/timing.properties

LICENSE

Lines changed: 661 additions & 0 deletions
Large diffs are not rendered by default.

api/bnd.bnd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Export-Package: aQute.implementation_selection.api
2+

api/pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>biz.aQute</groupId>
6+
<artifactId>biz.aQute.implementation-selection</artifactId>
7+
<version>1.0.0</version>
8+
</parent>
9+
<artifactId>biz.aQute.implementation-selection.api</artifactId>
10+
11+
</project>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package aQute.implementation_selection.api;
2+
3+
public interface UserInterface {
4+
void print(String s);
5+
}

bndrun/pom.xml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>biz.aQute</groupId>
6+
<artifactId>biz.aQute.implementation-selection</artifactId>
7+
<version>1.0.0</version>
8+
</parent>
9+
<artifactId>biz.aQute.implementation-selection.bndrun</artifactId>
10+
<packaging>pom</packaging>
11+
12+
13+
14+
<build>
15+
<plugins>
16+
<plugin>
17+
<groupId>biz.aQute.bnd</groupId>
18+
<artifactId>bnd-export-maven-plugin</artifactId>
19+
<version>3.4.0-SNAPSHOT</version>
20+
<configuration>
21+
<resolve>true</resolve>
22+
<bndruns>
23+
<bndrun>run.bndrun</bndrun>
24+
</bndruns>
25+
<targetDir>.</targetDir>
26+
</configuration>
27+
<executions>
28+
<execution>
29+
<goals>
30+
<goal>export</goal>
31+
</goals>
32+
</execution>
33+
</executions>
34+
</plugin>
35+
</plugins>
36+
</build>
37+
38+
<dependencies>
39+
<dependency>
40+
<groupId>biz.aQute</groupId>
41+
<artifactId>biz.aQute.implementation-selection.html.provider</artifactId>
42+
<version>1.0.0</version>
43+
</dependency>
44+
<dependency>
45+
<groupId>biz.aQute</groupId>
46+
<artifactId>biz.aQute.implementation-selection.console.provider</artifactId>
47+
<version>1.0.0</version>
48+
</dependency>
49+
<dependency>
50+
<groupId>biz.aQute</groupId>
51+
<artifactId>biz.aQute.implementation-selection.swing.provider</artifactId>
52+
<version>1.0.0</version>
53+
</dependency>
54+
<dependency>
55+
<groupId>biz.aQute</groupId>
56+
<artifactId>biz.aQute.implementation-selection.command</artifactId>
57+
<version>1.0.0</version>
58+
</dependency>
59+
</dependencies>
60+
61+
</project>

bndrun/run.bndrun

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
-standalone:
2+
-plugin.examples.eval = \
3+
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
4+
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
5+
releaseUrls=https://repo1.maven.org/maven2/; \
6+
pom=${.}/pom.xml; \
7+
name=impl.sel; \
8+
location=${.}/target/cached.xml
9+
10+
-runfw: org.eclipse.osgi;version='[3.10.100.v20150529-1857,3.10.100.v20150529-1857]'
11+
-runtrace: true
12+
-runprogramargs: -mode:console
13+
14+
15+
#
16+
# OSGi enRoute setting. These settings
17+
# fixup some of the issues around equinox
18+
# defaults.
19+
#
20+
21+
-runee: JavaSE-1.8
22+
-resolve.effective: resolve, active
23+
24+
-runproperties.eqnx: \
25+
osgi.console.enable.builtin=false, \
26+
osgi.console=, \
27+
org.osgi.service.http.port=8080
28+
29+
-runpath.eqnx: osgi.enroute.equinox.log.adapter
30+
-runrequires.eqnx: \
31+
osgi.identity;filter:='(osgi.identity=org.apache.felix.log)'
32+
33+
-runsystempackages.eqnx: javax.script
34+
-runsystemcapabilities.dflt: ${native_capability}
35+
-runblacklist: osgi.identity;filter:="(osgi.identity=slf4j.api)"
36+
-runrequires: \
37+
osgi.identity;filter:='(osgi.identity=biz.aQute.implementation-selection.command)',\
38+
osgi.identity;filter:='(osgi.identity=biz.aQute.implementation-selection.console.provider)',\
39+
osgi.identity;filter:='(osgi.identity=biz.aQute.implementation-selection.html.provider)',\
40+
osgi.identity;filter:='(osgi.identity=biz.aQute.implementation-selection.swing.provider)',\
41+
osgi.identity;filter:='(osgi.identity=osgi.enroute.gogo.shell.provider)',\
42+
osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.command)'
43+
44+
45+
-runbundles: \
46+
biz.aQute.implementation-selection.api; version='[1.0.0,1.0.1)',\
47+
biz.aQute.implementation-selection.command; version='[1.0.0,1.0.1)',\
48+
biz.aQute.implementation-selection.console.provider; version='[1.0.0,1.0.1)',\
49+
biz.aQute.implementation-selection.html.provider; version='[1.0.0,1.0.1)',\
50+
biz.aQute.implementation-selection.swing.provider; version='[1.0.0,1.0.1)',\
51+
org.apache.felix.configadmin; version='[1.8.8,1.8.9)',\
52+
org.apache.felix.gogo.command; version='[0.16.0,0.16.1)',\
53+
org.apache.felix.gogo.runtime; version='[0.16.2,0.16.3)',\
54+
org.apache.felix.http.jetty; version='[3.2.0,3.2.1)',\
55+
org.apache.felix.http.servlet-api; version='[1.1.2,1.1.3)',\
56+
org.apache.felix.log; version='[1.0.1,1.0.2)',\
57+
org.apache.felix.scr; version='[2.0.2,2.0.3)',\
58+
org.eclipse.equinox.coordinator; version='[1.3.100,1.3.101)',\
59+
org.eclipse.equinox.event; version='[1.3.100,1.3.101)',\
60+
org.eclipse.equinox.metatype; version='[1.4.100,1.4.101)',\
61+
org.osgi.service.event; version='[1.3.1,1.3.2)',\
62+
org.osgi.service.metatype; version='[1.3.0,1.3.1)',\
63+
osgi.enroute.configurer.simple.provider; version='[2.0.0,2.0.1)',\
64+
osgi.enroute.executor.simple.provider; version='[2.0.0,2.0.1)',\
65+
osgi.enroute.gogo.shell.provider; version='[2.0.0,2.0.1)',\
66+
osgi.enroute.logger.simple.provider; version='[2.0.0,2.0.1)',\
67+
osgi.enroute.web.simple.provider; version='[2.0.0,2.0.1)'

command/pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>biz.aQute</groupId>
6+
<artifactId>biz.aQute.implementation-selection</artifactId>
7+
<version>1.0.0</version>
8+
</parent>
9+
<artifactId>biz.aQute.implementation-selection.command</artifactId>
10+
<dependencies>
11+
<dependency>
12+
<groupId>biz.aQute</groupId>
13+
<artifactId>biz.aQute.implementation-selection.api</artifactId>
14+
<version>1.0.0</version>
15+
</dependency>
16+
</dependencies>
17+
18+
</project>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package aQute.implementation_selection.command;
2+
3+
import java.util.stream.Collectors;
4+
import java.util.stream.Stream;
5+
6+
import org.osgi.service.component.annotations.Component;
7+
import org.osgi.service.component.annotations.Reference;
8+
9+
import aQute.implementation_selection.api.UserInterface;
10+
import osgi.enroute.debug.api.Debug;
11+
12+
@Component( service=UserInterfaceCommand.class, property={Debug.COMMAND_SCOPE+"=ui", Debug.COMMAND_FUNCTION+"=print"})
13+
public class UserInterfaceCommand {
14+
15+
@Reference
16+
UserInterface ui;
17+
18+
19+
public void print( String[] s) {
20+
String line = Stream.of(s).collect(Collectors.joining(" "));
21+
ui.print(line);
22+
}
23+
}

console.provider/pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>biz.aQute</groupId>
6+
<artifactId>biz.aQute.implementation-selection</artifactId>
7+
<version>1.0.0</version>
8+
</parent>
9+
<artifactId>biz.aQute.implementation-selection.console.provider</artifactId>
10+
<dependencies>
11+
<dependency>
12+
<groupId>biz.aQute</groupId>
13+
<artifactId>biz.aQute.implementation-selection.api</artifactId>
14+
<version>1.0.0</version>
15+
</dependency>
16+
</dependencies>
17+
18+
</project>

0 commit comments

Comments
 (0)