Моя проблема заключается в том, что я хочу обновить основанный на функциях файл build.properties, чтобы процесс автономной сборки использовал выпуск Java JRE/JDK 1.6, но был совместим с выпуском Java JRE/JDK 1.5.
Как это будет достигнуто в безголовой сборке через файл build.properties (т. е. какие свойства будут установлены и какие значения)?
Я думаю о некоторой комбинации значений настроек для свойств JavaSE-1.6, javaSource и javaTarget, как показано ниже.
Любая помощь будет принята с благодарностью.
############# JAVA COMPILER OPTIONS ##############
# The location of the Java jars to compile against. Typically the rt.jar
# for your JDK/JRE
#bootclasspath=${java.home}/lib/rt.jar
# specific JRE locations to compile against. These values are used to compile
# bundles specifying a Bundle-RequiredExecutionEnvironment. Uncomment and set
# values for environments that you support
#CDC-1.0/Foundation-1.0= /path/to/rt.jar
#CDC-1.1/Foundation-1.1=
#OSGi/Minimum-1.0=
#OSGi/Minimum-1.1=
#JRE-1.1=
#J2SE-1.2=
#J2SE-1.3=
#J2SE-1.4=
#J2SE-1.5=
JavaSE-1.6=${java.home}/lib/rt.jar
#PersonalJava-1.1=
#PersonalJava-1.2=
#CDC-1.0/PersonalBasis-1.0=
#CDC-1.0/PersonalJava-1.0i=
#CDC-1.1/PersonalBeclipseasis-1.1=
#CDC-1.1/PersonalJava-1.1=
...
# Default value for the version of the source code. This value is used when
# compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment
# or set javacSource in build.properties
javacSource=1.5
# Default value for the version of the byte code targeted. This value is used
# when compiling plug-ins that do not set the
# Bundle-RequiredExecutionEnvironment or set javacTarget in build.properties.
javacTarget=1.5