forked from I2P_Developers/i2p.i2p
Build: Remove javac.compilerargs7 build property (ticket #2511)
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
|
||||
<!-- only used if not set by a higher build.xml -->
|
||||
<property name="javac.version" value="1.8" />
|
||||
<property name="javac.compilerargs7" value="" />
|
||||
<property name="javac.compilerargs" value="" />
|
||||
|
||||
<target name="compile" depends="depend">
|
||||
<mkdir dir="./build" />
|
||||
@ -27,13 +27,13 @@
|
||||
includeAntRuntime="false"
|
||||
encoding="UTF-8"
|
||||
destdir="./build/obj" >
|
||||
<compilerarg line="${javac.compilerargs7}" />
|
||||
<compilerarg line="${javac.compilerargs}" />
|
||||
</javac>
|
||||
<javac srcdir="./javase/src/main/java" debug="true" deprecation="on" source="${javac.version}" target="${javac.version}"
|
||||
includeAntRuntime="false"
|
||||
encoding="UTF-8"
|
||||
destdir="./build/obj" classpath="./build/obj" >
|
||||
<compilerarg line="${javac.compilerargs7}" />
|
||||
<compilerarg line="${javac.compilerargs}" />
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
@ -47,7 +47,7 @@
|
||||
encoding="UTF-8"
|
||||
destdir="./buildTest/obj"
|
||||
classpath="./build/zxing.jar" >
|
||||
<compilerarg line="${javac.compilerargs7}" />
|
||||
<compilerarg line="${javac.compilerargs}" />
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
</target>
|
||||
|
||||
<!-- only used if not set by a higher build.xml -->
|
||||
<property name="javac.compilerargs7" value="" />
|
||||
<property name="javac.compilerargs" value="" />
|
||||
<property name="javac.version" value="1.8" />
|
||||
<property name="manifest.classpath.name" value="Class-Path" />
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
encoding="UTF-8"
|
||||
destdir="./build/obj"
|
||||
classpath="../../../core/java/build/i2p.jar:../../../core/java/build/gnu-getopt.jar:../../ministreaming/java/build/mstreaming.jar" >
|
||||
<compilerarg line="${javac.compilerargs7}" />
|
||||
<compilerarg line="${javac.compilerargs}" />
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
@ -50,7 +50,7 @@
|
||||
encoding="UTF-8"
|
||||
destdir="./build/obj"
|
||||
classpath="../../../core/java/build/i2p.jar:../../ministreaming/java/build/mstreaming.jar" >
|
||||
<compilerarg line="${javac.compilerargs7}" />
|
||||
<compilerarg line="${javac.compilerargs}" />
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
|
@ -56,13 +56,10 @@ javac.version=1.8
|
||||
# Note to packagers, embedders, distributors:
|
||||
#
|
||||
# Strictly speaking, you must either use the compiler for the minimum Java version you are
|
||||
# targeting (default 1.7, see above), or specify a bootclasspath, which means you need
|
||||
# targeting (default 1.8, see above), or specify a bootclasspath, which means you need
|
||||
# the JRE for the target version installed as well.
|
||||
#
|
||||
# However, in practice, you can compile with 1.7 and target 1.6 without specifying a bootclasspath,
|
||||
# and it all works fine.
|
||||
#
|
||||
# But you cannot compile with 1.8 and target 1.6 or 1.7 without bootclasspath,
|
||||
# You cannot compile with 1.8 and target 1.6 or 1.7 without bootclasspath,
|
||||
# or your users will get runtime errors.
|
||||
# Below is an example of a bootclasspath that works on Ubuntu.
|
||||
#
|
||||
@ -70,8 +67,6 @@ javac.version=1.8
|
||||
# http://zzz.i2p/topics/1668
|
||||
# https://gist.github.com/AlainODea/1375759b8720a3f9f094
|
||||
#
|
||||
# You must set both.
|
||||
#
|
||||
# For embedded use only, and for a limited time,
|
||||
# the following subsystems ONLY may be built with Java 6 by setting javac.version=1.6 in override.properties,
|
||||
# and setting javac.compilerargs to use java 6 jars:
|
||||
@ -80,10 +75,9 @@ javac.version=1.8
|
||||
# We may start using Java 7 features in these subsystems at any time and without notice.
|
||||
#javac.compilerargs=-bootclasspath /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/jce.jar
|
||||
#
|
||||
# For standard builds, set both of the following in override.properties:
|
||||
# For standard builds, set the following in override.properties:
|
||||
#
|
||||
#javac.compilerargs=-bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jce.jar
|
||||
#javac.compilerargs7=-bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jce.jar
|
||||
#javac.compilerargs=-bootclasspath /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar
|
||||
|
||||
|
||||
### UnitTests ##
|
||||
|
@ -1072,17 +1072,12 @@
|
||||
</target>
|
||||
|
||||
<target name="-pre-sign">
|
||||
<!-- if you're distributing su3 files to others, at a minimum you should set these -->
|
||||
<!-- if you're distributing su3 files to others, at a minimum you should set this -->
|
||||
<fail message="javac.compilerargs must contain a -bootclasspath option in override.properties">
|
||||
<condition>
|
||||
<not><contains string="${javac.compilerargs}" substring="-bootclasspath"/></not>
|
||||
</condition>
|
||||
</fail>
|
||||
<fail message="javac.compilerargs7 must contain a -bootclasspath option in override.properties">
|
||||
<condition>
|
||||
<not><contains string="${javac.compilerargs7}" substring="-bootclasspath"/></not>
|
||||
</condition>
|
||||
</fail>
|
||||
<fail message="build.built-by must be set in override.properties">
|
||||
<condition>
|
||||
<equals arg1="${build.built-by}" arg2="unknown"/>
|
||||
|
Reference in New Issue
Block a user