Compile for Java 11

This commit is contained in:
Niclas Finne 2021-10-17 01:24:01 +02:00
parent 4e48946494
commit f127e9aa3e
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
# Makefile for mspsim
#
# Needed stuff in the PATH:
# java, javac (JDK 1.7 or newer)
# java, javac (JDK 11 or newer)
#
# Under MS-DOS/Windows
# A GNU compatible Make (for example Cygwin's)
@ -46,7 +46,7 @@ SPACE := ${EMPTY} ${EMPTY}
LIBS := ${wildcard lib/*.jar}
BUILD := build
CLASSPATH=${subst ${SPACE},${SEPARATOR},$(BUILD)/ ${LIBS}}
CCARGS=-deprecation -Xlint:unchecked -source 1.7 -target 1.7 -classpath ".${SEPARATOR}${CLASSPATH}" -d $(BUILD)
CCARGS=-deprecation -Xlint:unchecked -source 11 -target 11 -classpath ".${SEPARATOR}${CLASSPATH}" -d $(BUILD)
JAVAARGS=-classpath "${CLASSPATH}"

View File

@ -8,8 +8,8 @@
<property name="lib" location="lib"/>
<property name="jarfile" location="mspsim.jar"/>
<property name="javac.debug" value="true"/>
<property name="ant.build.javac.source" value="1.7"/>
<property name="ant.build.javac.target" value="1.7"/>
<property name="ant.build.javac.source" value="11"/>
<property name="ant.build.javac.target" value="11"/>
<property name="ARGS" value=""/>
<path id="classpath">