mirror of
https://github.com/processing/processing4.git
synced 2026-05-03 17:35:00 +02:00
set all build.xml files to Java 17; replace a few tabs with spaces
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1,29 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
<project name="Processing Net Library" default="build">
|
||||
|
||||
<target name="clean" description="Clean the build directories">
|
||||
<delete dir="bin" />
|
||||
<delete file="library/net.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 net library">
|
||||
<jar basedir="bin" destfile="library/net.jar" />
|
||||
</target>
|
||||
|
||||
<target name="clean" description="Clean the build directories">
|
||||
<delete dir="bin" />
|
||||
<delete file="library/net.jar" />
|
||||
</target>
|
||||
</project>
|
||||
|
||||
@@ -1,29 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
<project name="Processing PDF Library" default="build">
|
||||
|
||||
<target name="clean" description="Clean the build directories">
|
||||
<delete dir="bin" />
|
||||
<delete file="library/pdf.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; library/itext.jar"
|
||||
nowarn="true">
|
||||
<javac source="17"
|
||||
target="17"
|
||||
srcdir="src" destdir="bin"
|
||||
encoding="UTF-8"
|
||||
includeAntRuntime="false"
|
||||
classpath="${core.path}; library/itext.jar"
|
||||
nowarn="true">
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="build" depends="compile" description="Build PDF library">
|
||||
<jar basedir="bin" destfile="library/pdf.jar" />
|
||||
</target>
|
||||
|
||||
<target name="clean" description="Clean the build directories">
|
||||
<delete dir="bin" />
|
||||
<delete file="library/pdf.jar" />
|
||||
</target>
|
||||
</project>
|
||||
|
||||
@@ -1,29 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
<project name="Processing Serial Library" default="build">
|
||||
|
||||
<target name="clean" description="Clean the build directories">
|
||||
<delete dir="bin" />
|
||||
<delete file="library/serial.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; library/jssc.jar"
|
||||
nowarn="true">
|
||||
<javac source="17"
|
||||
target="17"
|
||||
srcdir="src" destdir="bin"
|
||||
encoding="UTF-8"
|
||||
includeAntRuntime="false"
|
||||
classpath="${core.path}; library/jssc.jar"
|
||||
nowarn="true">
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="build" depends="compile" description="Build serial library">
|
||||
<jar basedir="bin" destfile="library/serial.jar" />
|
||||
</target>
|
||||
|
||||
<target name="clean" description="Clean the build directories">
|
||||
<delete dir="bin" />
|
||||
<delete file="library/serial.jar" />
|
||||
</target>
|
||||
</project>
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
<fail unless="core-built" message="Please build the core library first and make sure it is located at ${core.library.jar}" />
|
||||
|
||||
<mkdir dir="bin" />
|
||||
<javac source="11" target="11"
|
||||
<javac source="17" target="17"
|
||||
srcdir="src" destdir="bin"
|
||||
encoding="UTF-8"
|
||||
includeAntRuntime="false"
|
||||
|
||||
Reference in New Issue
Block a user