mirror of https://github.com/jlizier/jidt
Targeting Java version 8 in our builds now, in part to be compatible with latest Jpype in python
This commit is contained in:
parent
cb12914e7a
commit
fea2cb4bfa
14
build.xml
14
build.xml
|
|
@ -43,17 +43,17 @@
|
||||||
|
|
||||||
<!-- Compile the java toolkit -->
|
<!-- Compile the java toolkit -->
|
||||||
<target name="compile" depends="init" description="compile the source">
|
<target name="compile" depends="init" description="compile the source">
|
||||||
<!-- Compile to Java 7 to provide compatibility for users with older JREs.
|
<!-- Compile to Java 8 to provide compatibility for users with older JREs.
|
||||||
Caveat: The flags here only check the language compatibility, but
|
Caveat: The flags here only check the language compatibility, but
|
||||||
may still use newer libraries which may cause issues for users with JDK 7.
|
may still use newer libraries which may cause issues for users with JDK 8.
|
||||||
Indeed, one gets the warning: "bootstrap class path not set in conjunction with -source 1.7"
|
Indeed, one gets the warning: "bootstrap class path not set in conjunction with -source 1.8"
|
||||||
To fix this, one would use the bootstrap classpath to point our JDK to an rt.jar
|
To fix this, one would use the bootstrap classpath to point our JDK to an rt.jar
|
||||||
for Java 7.
|
for Java 8.
|
||||||
At this stage, I'm sure I'm not using new library calls from Java 8+, so we can
|
At this stage, I'm sure I'm not using new library calls from Java 9+, so we can
|
||||||
ignore the warning, and I don't want to bother installing newer Java just to compile
|
ignore the warning, and I don't want to bother installing newer Java just to compile
|
||||||
like this. I'll endeavour not to use JDK 8 libraries so as not to cause
|
like this. I'll endeavour not to use JDK 9+ libraries so as not to cause
|
||||||
any issues here ... -->
|
any issues here ... -->
|
||||||
<javac srcdir="${src}" destdir="${bin}" includeAntRuntime="false" target="1.7" source="1.7" encoding="UTF8">
|
<javac srcdir="${src}" destdir="${bin}" includeAntRuntime="false" target="1.8" source="1.8" encoding="UTF8">
|
||||||
<classpath refid="apache-classpath"/>
|
<classpath refid="apache-classpath"/>
|
||||||
</javac>
|
</javac>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue