mirror of
https://github.com/processing/processing4.git
synced 2026-01-28 10:51:07 +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.
42 lines
900 B
XML
42 lines
900 B
XML
<project name="methods" default="dist">
|
|
|
|
<target name="compile">
|
|
|
|
<mkdir dir="bin" />
|
|
<javac source="11"
|
|
target="11"
|
|
srcdir="src"
|
|
destdir="bin"
|
|
debug="true"
|
|
includeantruntime="true"
|
|
nowarn="true">
|
|
|
|
</javac>
|
|
</target>
|
|
|
|
<target name="dist" depends="compile">
|
|
<jar basedir="bin" destfile="methods.jar" />
|
|
</target>
|
|
|
|
<target name="demo" depends="dist">
|
|
<mkdir dir="demo" />
|
|
|
|
<copy todir="demo">
|
|
<fileset file="../src/processing/core/PApplet.java" />
|
|
<fileset file="../src/processing/core/PGraphics.java" />
|
|
<fileset file="../src/processing/core/PImage.java" />
|
|
</copy>
|
|
|
|
<taskdef name="methods"
|
|
classname="PAppletMethods"
|
|
classpath="methods.jar" />
|
|
<methods dir="demo"/>
|
|
</target>
|
|
|
|
<target name="clean">
|
|
<delete dir="bin" />
|
|
<delete file="methods.jar" />
|
|
</target>
|
|
|
|
</project>
|