Skip to content

Commit

Permalink
change source level for build
Browse files Browse the repository at this point in the history
  • Loading branch information
benfry committed Nov 28, 2022
1 parent 4f4351f commit 389051f
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions java/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<project name="Java Mode" default="build">

<property name="generated"
value="${basedir}/generated/processing/mode/java/preproc" />
value="${basedir}/generated/processing/mode/java/preproc" />
<mkdir dir="${generated}" />

<property name="grammars"
value="${basedir}/src/processing/mode/java/preproc" />
value="${basedir}/src/processing/mode/java/preproc" />

<property name="antlr_jar"
value="${basedir}/mode/antlr-4.7.2-complete.jar" />
value="${basedir}/mode/antlr-4.7.2-complete.jar" />

<property name="mode_jar"
value="${basedir}/mode/JavaMode.jar" />
Expand All @@ -24,12 +24,12 @@
<delete file="${mode_jar}" />
<delete>
<fileset dir="${generated}">
<include name="*.java" />
<include name="*.tokens" />
<include name="*.txt" />
<include name="*.g" />
<include name="*.smap" />
<include name="*.properties" />
<include name="*.java" />
<include name="*.tokens" />
<include name="*.txt" />
<include name="*.g" />
<include name="*.smap" />
<include name="*.properties" />
</fileset>
</delete>
</target>
Expand Down Expand Up @@ -140,21 +140,21 @@
<mkdir dir="@{destdir}" />

<!-- in some cases, pde.jar was not getting built
https://github.com/processing/processing/issues/1792 -->
https://github.com/processing/processing/issues/1792 -->
<delete file="${mode_jar}" />

<!-- env used to set classpath below -->
<property environment="env" />

<javac source="11"
target="11"
destdir="@{destdir}"
excludes="**/tools/format/**"
encoding="UTF-8"
includeAntRuntime="false"
debug="on"
nowarn="true"
compiler="modern">
<javac source="17"
target="17"
destdir="@{destdir}"
excludes="**/tools/format/**"
encoding="UTF-8"
includeAntRuntime="false"
debug="on"
nowarn="true"
compiler="modern">
<src path="@{srcdir}" />
<src path="generated" />
<classpath refid="@{classpath}"/>
Expand Down

0 comments on commit 389051f

Please sign in to comment.