-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathbuild.xml
More file actions
55 lines (46 loc) · 1.65 KB
/
build.xml
File metadata and controls
55 lines (46 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<project name="methods" default="dist">
<target name="compile">
<!-- Check for JDT compiler, since this is likely a PDE build. Using
it allows us to build the PDE with only a JRE on Windows and Linux.
So that the core can be built independently of the PDE,
use javac (the "modern" compiler) if ecj is not present. -->
<property name="jdt.jar" value="../../java/mode/org.eclipse.jdt.core.jar" />
<condition property="build.compiler"
value="org.eclipse.jdt.core.JDTCompilerAdapter"
else="modern">
<available file="${jdt.jar}" />
</condition>
<!--<echo message="compiler is ${build.compiler}" />-->
<mkdir dir="bin" />
<javac source="1.8"
target="1.8"
srcdir="src"
destdir="bin"
debug="true"
includeantruntime="true"
nowarn="true">
<!-- kinda gross, but if not using the JDT, this just ignored anyway -->
<compilerclasspath path="${jdt.jar};
../../java/mode/jdtCompilerAdapter.jar" />
</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>