Skip to content

Commit

Permalink
Revert "move defaults.bnd & java.bnd to build.bnd"
Browse files Browse the repository at this point in the history
This reverts commit 0d39c74.
  • Loading branch information
chrisrueger committed Nov 28, 2023
1 parent 29fa515 commit 3a9da0a
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 43 deletions.
44 changes: 1 addition & 43 deletions cnf/build.bnd
Original file line number Diff line number Diff line change
@@ -1,49 +1,7 @@

Bundle-Version: 1.0.0.${tstamp}

-remoteworkspace true
-runfw: org.apache.felix.framework
-runee: JavaSE-17

javac.source: 17
javac.target: 17
javac.compliance: 17
javac.debug: on

# the driver-variable (see https://bnd.bndtools.org/macros/driver.html)
# helps to build to different folders e.g. depending on if Eclipse builds
# or e.g. gradle builds.
# that avoids conflicts between gradle and eclipse build
# target-dir: dir specifies where build places the .jar and classes
target-dir generated${if;${driver;eclipse};;/${driver}}
src src/main/java, src/main/resources
testsrc src/test/java
bin ${target-dir}/classes
testbin ${target-dir}/test-classes

-plugin.10.build: \
aQute.bnd.repository.maven.provider.MavenBndRepository; \
snapshotUrl="https://oss.sonatype.org/content/repositories/snapshots/"; \
releaseUrl=https://repo.maven.apache.org/maven2/; \
index=${.}/build.mvn; \
readOnly=true; \
name="OSGI R8 - Build"

-plugin.20.runtime: \
aQute.bnd.repository.maven.provider.MavenBndRepository; \
snapshotUrl="https://oss.sonatype.org/content/repositories/snapshots/"; \
releaseUrl="https://repo.maven.apache.org/maven2/"; \
index=${.}/runtime.mvn; \
readOnly=true; \
name="OSGI R8 - Runtime Distro"


-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.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=org.apache.felix.webconsole.plugins.ds)'

39 changes: 39 additions & 0 deletions cnf/ext/defaults.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
-plugin.10.build: \
aQute.bnd.repository.maven.provider.MavenBndRepository; \
snapshotUrl="https://oss.sonatype.org/content/repositories/snapshots/"; \
releaseUrl=https://repo.maven.apache.org/maven2/; \
index=${.}/build.mvn; \
readOnly=true; \
name="OSGI R8 - Build"

-plugin.20.runtime: \
aQute.bnd.repository.maven.provider.MavenBndRepository; \
snapshotUrl="https://oss.sonatype.org/content/repositories/snapshots/"; \
releaseUrl="https://repo.maven.apache.org/maven2/"; \
index=${.}/runtime.mvn; \
readOnly=true; \
name="OSGI R8 - Runtime Distro"




-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.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=org.apache.felix.webconsole.plugins.ds)'

# the driver-variable (see https://bnd.bndtools.org/macros/driver.html)
# helps to build to different folders e.g. depending on if Eclipse builds
# or e.g. gradle builds.
# that avoids conflicts between gradle and eclipse build
# target-dir: dir specifies where build places the .jar and classes
target-dir generated${if;${driver;eclipse};;/${driver}}
src src/main/java, src/main/resources
testsrc src/test/java
bin ${target-dir}/classes
testbin ${target-dir}/test-classes
4 changes: 4 additions & 0 deletions cnf/ext/java.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
javac.source: 17
javac.target: 17
javac.compliance: 17
javac.debug: on

0 comments on commit 3a9da0a

Please sign in to comment.