set all build.xml files to Java 17; replace a few tabs with spaces

This commit is contained in:
Ben Fry
2023-01-20 11:44:00 -05:00
parent 19e5ffd20d
commit 8b4c4efbfd
10 changed files with 98 additions and 85 deletions
+22 -14
View File
@@ -1,11 +1,6 @@
<?xml version="1.0"?>
<project name="Processing Hardware I/O Library" default="build">
<target name="clean" description="Clean the build directories">
<delete dir="bin" />
<delete file="library/io.jar" />
</target>
<property name="core.path" location="../../../core/library/core.jar" />
<target name="compile" description="Compile sources">
@@ -15,13 +10,13 @@
<fail unless="core-built" message="Please build the core library first and make sure it is located at ${core.path}" />
<mkdir dir="bin" />
<javac source="11"
target="11"
srcdir="src" destdir="bin"
encoding="UTF-8"
includeAntRuntime="false"
classpath="${core.path}"
nowarn="true" />
<javac source="17"
target="17"
srcdir="src" destdir="bin"
encoding="UTF-8"
includeAntRuntime="false"
classpath="${core.path}"
nowarn="true" />
</target>
<target name="build" depends="compile" description="Build I/O library">
@@ -40,9 +35,17 @@
</tokenfilter>
</filterchain>
</loadfile>
<replaceregexp file="library.properties" match="version = .*" replace="version = ${revision}" flags="g" />
<replaceregexp file="library.properties" match="prettyVersion = .*" replace="prettyVersion = ${revision}" flags="g" />
<replaceregexp file="library.properties"
match="version = .*"
replace="version = ${revision}"
flags="g" />
<replaceregexp file="library.properties"
match="prettyVersion = .*"
replace="prettyVersion = ${revision}"
flags="g" />
<!-- TODO this is the old reference! needs an update [fry 230120] -->
<get src="http://download.processing.org/reference.zip"
dest="reference.zip"
usetimestamp="true" />
@@ -69,4 +72,9 @@
<copy file="library.properties"
toFile="../io.txt"/>
</target>
<target name="clean" description="Clean the build directories">
<delete dir="bin" />
<delete file="library/io.jar" />
</target>
</project>