mirror of
https://github.com/processing/processing4.git
synced 2026-01-27 10:21:26 +01:00
Minor bit of cleanup in the ant scripts around the build src and target on javac, enabling use of Java 11 language features within processing itself. Note that the build is sustained on either 1.8 or 11 in terms of lanugage features but the code is no longer compatible with the Java 8 runtime due to backwards-incompatable changes made starting in Java 9.
36 lines
1.2 KiB
XML
36 lines
1.2 KiB
XML
<?xml version="1.0"?>
|
|
<project name="Processing SVG Library" default="build">
|
|
|
|
<target name="clean" description="Clean the build directories">
|
|
<delete dir="bin" />
|
|
<delete file="library/svg.jar" />
|
|
</target>
|
|
|
|
<target name="compile" description="Compile sources">
|
|
<condition property="core-built">
|
|
<available file="../../../core/library/core.jar" />
|
|
</condition>
|
|
<fail unless="core-built" message="Please build the core library first and make sure it sits in ../../../core/library/core.jar" />
|
|
|
|
<mkdir dir="bin" />
|
|
<javac source="11"
|
|
target="11"
|
|
srcdir="src" destdir="bin"
|
|
encoding="UTF-8"
|
|
includeAntRuntime="false"
|
|
classpath="../../../core/library/core.jar;
|
|
library/batik-awt-util-1.8.jar;
|
|
library/batik-dom-1.8.jar;
|
|
library/batik-ext-1.8.jar;
|
|
library/batik-svggen-1.8.jar;
|
|
library/batik-util-1.8.jar;
|
|
library/batik-xml-1.8.jar"
|
|
nowarn="true">
|
|
</javac>
|
|
</target>
|
|
|
|
<target name="build" depends="compile" description="Build SVG library">
|
|
<jar basedir="bin" destfile="library/svg.jar" />
|
|
</target>
|
|
</project>
|