|
1 | 1 | <?xml version="1.0"?> |
2 | 2 | <project name="Processing Hardware I/O Library" default="build"> |
3 | 3 |
|
4 | | - <target name="clean" description="Clean the build directories"> |
5 | | - <delete dir="bin" /> |
6 | | - <delete file="library/io.jar" /> |
7 | | - </target> |
8 | | - |
9 | 4 | <property name="core.path" location="../../../core/library/core.jar" /> |
10 | 5 |
|
11 | 6 | <target name="compile" description="Compile sources"> |
|
15 | 10 | <fail unless="core-built" message="Please build the core library first and make sure it is located at ${core.path}" /> |
16 | 11 |
|
17 | 12 | <mkdir dir="bin" /> |
18 | | - <javac source="11" |
19 | | - target="11" |
20 | | - srcdir="src" destdir="bin" |
21 | | - encoding="UTF-8" |
22 | | - includeAntRuntime="false" |
23 | | - classpath="${core.path}" |
24 | | - nowarn="true" /> |
| 13 | + <javac source="17" |
| 14 | + target="17" |
| 15 | + srcdir="src" destdir="bin" |
| 16 | + encoding="UTF-8" |
| 17 | + includeAntRuntime="false" |
| 18 | + classpath="${core.path}" |
| 19 | + nowarn="true" /> |
25 | 20 | </target> |
26 | 21 |
|
27 | 22 | <target name="build" depends="compile" description="Build I/O library"> |
|
40 | 35 | </tokenfilter> |
41 | 36 | </filterchain> |
42 | 37 | </loadfile> |
43 | | - <replaceregexp file="library.properties" match="version = .*" replace="version = ${revision}" flags="g" /> |
44 | | - <replaceregexp file="library.properties" match="prettyVersion = .*" replace="prettyVersion = ${revision}" flags="g" /> |
45 | 38 |
|
| 39 | + <replaceregexp file="library.properties" |
| 40 | + match="version = .*" |
| 41 | + replace="version = ${revision}" |
| 42 | + flags="g" /> |
| 43 | + <replaceregexp file="library.properties" |
| 44 | + match="prettyVersion = .*" |
| 45 | + replace="prettyVersion = ${revision}" |
| 46 | + flags="g" /> |
| 47 | + |
| 48 | + <!-- TODO this is the old reference! needs an update [fry 230120] --> |
46 | 49 | <get src="http://download.processing.org/reference.zip" |
47 | 50 | dest="reference.zip" |
48 | 51 | usetimestamp="true" /> |
|
69 | 72 | <copy file="library.properties" |
70 | 73 | toFile="../io.txt"/> |
71 | 74 | </target> |
| 75 | + |
| 76 | + <target name="clean" description="Clean the build directories"> |
| 77 | + <delete dir="bin" /> |
| 78 | + <delete file="library/io.jar" /> |
| 79 | + </target> |
72 | 80 | </project> |
0 commit comments