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
+15 -14
View File
@@ -1,29 +1,30 @@
<?xml version="1.0"?>
<project name="Processing DXF Library" default="build">
<target name="clean" description="Clean the build directories">
<delete dir="bin" />
<delete file="library/dxf.jar" />
</target>
<property name="core.path" location="../../../core/library/core.jar" />
<target name="compile" description="Compile sources">
<condition property="core-built">
<available file="../../../core/library/core.jar" />
<available file="${core.path}" />
</condition>
<fail unless="core-built" message="Please build the core library first and make sure it sits in ../../../core/library/core.jar" />
<fail unless="core-built" message="Please build the core library first and make sure it sits in ${core.path}" />
<mkdir dir="bin" />
<javac source="11"
target="11"
srcdir="src" destdir="bin"
encoding="UTF-8"
includeAntRuntime="false"
classpath="../../../core/library/core.jar"
nowarn="true">
<javac source="17"
target="17"
srcdir="src" destdir="bin"
encoding="UTF-8"
includeAntRuntime="false"
classpath="${core.path}"
nowarn="true">
</javac>
</target>
<target name="build" depends="compile" description="Build DXF library">
<jar basedir="bin" destfile="library/dxf.jar" />
</target>
<target name="clean" description="Clean the build directories">
<delete dir="bin" />
<delete file="library/dxf.jar" />
</target>
</project>