Build: Set Java 7 build target for all jars;

embedders (esp. Android) targetting 1.6 must
set javac.version=1.6 in override.properties and set
both bootclasspath variables.
This commit is contained in:
zzz
2016-10-26 16:56:13 +00:00
parent 2b6fd49a53
commit 08d1ea89bf
21 changed files with 39 additions and 30 deletions

View File

@@ -22,10 +22,8 @@
</depend>
</target>
<!-- ignored for now, we require java 7 here -->
<property name="javac.compilerargs7" value="" />
<!-- ignored for now, we require java 7 here -->
<property name="javac.version" value="1.6" />
<property name="javac.version" value="1.7" />
<!-- compile everything including client classes -->
<target name="compile" depends="depend">
@@ -33,7 +31,7 @@
<mkdir dir="./build/obj" />
<javac
srcdir="./src"
debug="true" deprecation="on" source="1.7" target="1.7"
debug="true" deprecation="on" source="${javac.version}" target="${javac.version}"
includeAntRuntime="false"
destdir="./build/obj"
classpath="../../../core/java/build/i2p.jar:../../../core/java/build/gnu-getopt.jar:../../ministreaming/java/build/mstreaming.jar" >