Reading Eclipse project preferences in *.bnd - bndtools/bnd GitHub Wiki
It is possible to read the properties of the Eclipse preferences for a project in your *.bnd
file to use the containing properties. Just include .setting/org.eclipse.jdt.core.prefs
into a *.bnd
file of your wish.
For example
If you want to use the compiler version of your project preferences instead of the default one (1.5, found in default.bnd
), you have to add the following code into this file.
# Java Compiler Options
java: java
javac: javac
# Custom preferences for Java compiler
#javac.source: 1.5
#javac.target: 1.5
# Using Eclipse project preferences for Java compiler
-include: .settings/org.eclipse.jdt.core.prefs
javac.source: ${org.eclipse.jdt.core.compiler.source}
javac.target: ${org.eclipse.jdt.core.compiler.source}
javac.debug: on