Skip to content

Commit

Permalink
Add OSGi workspace + simple BackendApp
Browse files Browse the repository at this point in the history
  • Loading branch information
sfeilmeier committed Jan 25, 2018
1 parent e623c2b commit 69d5e97
Show file tree
Hide file tree
Showing 30 changed files with 643 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .gitattributes
@@ -0,0 +1,75 @@
# Text files with LF eol
*.auth crlf=input
*.awk crlf=input
*.bnd crlf=input
*.bndrun crlf=input
*.c crlf=input ident
*.conf crlf=input
*.cpp crlf=input ident
*.css crlf=input
*.ddf crlf=input
*.ee crlf=input
*.gradle crlf=input
*.groovy crlf=input
*.h crlf=input ident
*.html crlf=input ident
*.java crlf=input ident
*.js crlf=input
*.lib crlf=input
*.md crlf=input
*.MF crlf=input
*.mf crlf=input
*.perm crlf=input
*.php crlf=input
*.pl crlf=input
*.pom crlf=input
*.prefs crlf=input
*.properties crlf=input
*.py crlf=input
*.schema crlf=input
*.SF crlf=input
*.sh crlf=input
*.tcl crlf=input
*.txt crlf=input
*.xml crlf=input
*.xsd crlf=input ident
*.xsl crlf=input
*.xslt crlf=input
*.yml crlf=input
.classpath crlf=input
.project crlf=input
gradlew crlf=input
packageinfo crlf=input
Makefile crlf=input
README crlf=input
LICENSE crlf=input

# No EOL translation
*.bat -crlf

# Binary. No EOL translation, no diff
*.ico binary
*.jpeg binary
*.jpg binary
*.png binary
*.crt binary
*.pdf binary
*.dll binary
*.jar binary
*.jnilib binary
*.so binary
*.zip binary
*.doc binary
*.ppt binary
*.xls binary
*.odg binary
*.odp binary
*.ods binary
*.odt binary
*.otg binary
*.otp binary
*.ots binary
*.ott binary
*.key binary
*.numbers binary
*.pages binary
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
.DS_Store
.gradle/
/generated/
enroute.zip
.metadata
Binary file added .gradle-wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions .gradle-wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-bin.zip
10 changes: 10 additions & 0 deletions .travis.yml
@@ -0,0 +1,10 @@
sudo: false

language: java

jdk:
- oraclejdk8

install: ./gradlew --version

script: ./gradlew --continue
1 change: 1 addition & 0 deletions build.gradle
@@ -0,0 +1 @@
// Available to customize the build
6 changes: 6 additions & 0 deletions cnf/.classpath
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
4 changes: 4 additions & 0 deletions cnf/.gitignore
@@ -0,0 +1,4 @@
/generated/
/bin/
/cache/
local/index.*
11 changes: 11 additions & 0 deletions cnf/.project
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>cnf</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
3 changes: 3 additions & 0 deletions cnf/build.bnd
@@ -0,0 +1,3 @@
#
# This file is left open for you to define your macros
#
19 changes: 19 additions & 0 deletions cnf/central.xml
@@ -0,0 +1,19 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>local</groupId>
<artifactId>central</artifactId>
<version>0.0.0</version>

<packaging>pom</packaging>

<dependencies>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.gogo.shell</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>

</project>
49 changes: 49 additions & 0 deletions cnf/ext/enroute-distro.bnd
@@ -0,0 +1,49 @@
#
# OSGi enRoute Default Distro
#
# This file defines the properties to be used in an enRoute workspace.
#

-runfw: org.eclipse.osgi

-plugin.9x.enroute.distro = \
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
snapshotUrls=https://oss.sonatype.org/content/groups/osgi; \
releaseUrls=https://repo1.maven.org/maven2/; \
revision=org.osgi:osgi.enroute.pom.distro:2.1.0-SNAPSHOT; \
name=Distro; \
location=${build}/cache/enroute-distro.xml

-runblacklist.enroute: \
osgi.identity;filter:='(osgi.identity=osgi.enroute.base.api)', \
osgi.identity;filter:='(osgi.identity=osgi.cmpn)', \
osgi.identity;filter:='(osgi.identity=osgi.core)', \
osgi.identity;filter:='(osgi.identity=biz.aQute.junit)', \
osgi.identity;filter:='(osgi.identity=biz.aQute.launcher)', \
osgi.identity;filter:='(osgi.identity=biz.aQute.remote.launcher)'


# TODO check if still needed

-runproperties.eqnx: \
org.apache.felix.http.jettyEnabled=true, \
org.apache.felix.http.whiteboardEnabled=true,\
osgi.console=, \
osgi.console.enable.builtin=false

-runpath.eqnx: osgi.enroute.equinox.log.adapter
-runrequires.eqnx: \
osgi.identity;filter:='(osgi.identity=org.apache.felix.log)'


-runsystempackages.eqnx: javax.script
-runsystemcapabilities.dflt: ${native_capability}

debug-bundles: \
osgi.identity;filter:='(osgi.identity=osgi.enroute.webconsole.xray.provider)',\
osgi.implementation;filter:='(osgi.implementation=osgi.metatype)',\
osgi.implementation;filter:='(osgi.implementation=osgi.log)',\
osgi.implementation;filter:='(osgi.implementation=osgi.event)',\
osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.command)',\
osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.shell)', \
osgi.identity;filter:='(osgi.identity=osgi.enroute.base.debug.provider)'
43 changes: 43 additions & 0 deletions cnf/ext/enroute.bnd
@@ -0,0 +1,43 @@
#
# -ENROUTE-
#
# This file contains the setup for OSGi enRoute
#


javac.source: 1.8
javac.target: 1.8
-runee: JavaSE-1.8

Service-Component: *
-dsannotations: *
-metatypeannotations: *
-contract: *


test-cases: ${classes;NAMED;*Test}
-resolve.effective: resolve, active
-releaserepo: Release

-plugin.4.Central: \
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
snapshotUrls=https://oss.sonatype.org/content/groups/osgi; \
releaseUrls=https://repo1.maven.org/maven2/; \
pom=${build}/central.xml; \
name=Central; \
location=${build}/cache/enroute-central.xml

-plugin.6.Local: \
aQute.bnd.deployer.repository.LocalIndexedRepo; \
name = Local ; \
pretty = true ; \
local = ${build}/local



-plugin.9.Release: \
\
aQute.bnd.deployer.repository.LocalIndexedRepo; \
name = Release ; \
pretty = true ; \
local = ${build}/release
3 changes: 3 additions & 0 deletions cnf/release/index.xml
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<repository increment="0" name="Release" xmlns="http://www.osgi.org/xmlns/repository/v1.0.0">
</repository>
1 change: 1 addition & 0 deletions cnf/release/index.xml.sha
@@ -0,0 +1 @@
b699f269b1871b7ef42e54b5ceb7529989f9474ffa4217c696e5ad333ac8936c
Empty file added cnf/src/.gitignore
Empty file.
1 change: 1 addition & 0 deletions gradle.properties
@@ -0,0 +1 @@
bnd_version=3.4.0

0 comments on commit 69d5e97

Please sign in to comment.