- Notifications
You must be signed in to change notification settings - Fork 7k
/
Copy pathbuild.xml
53 lines (44 loc) · 1.55 KB
/
build.xml
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
<?xml version="1.0"?>
<projectname="Arduino IDE Core"default="build">
<pathid="class.path">
<filesetdir="lib">
<includename="*.jar"/>
</fileset>
<pathelementpath="${env.JAVA_HOME}/lib/tools.jar"/>
</path>
<targetname="clean"description="Clean out the build directories">
<deletedir="bin" />
<deletefile="arduino-core.jar" />
</target>
<targetname="compile"description="Compile">
<!--
<taskdef name="methods"
classname="PAppletMethods"
classpath="methods/methods.jar" />
<methods dir="${basedir}/src/processing/core" />
-->
<mkdirdir="bin" />
<!-- ant seems to nuke ${java.home} for some reason, pointing at the JRE
subfolder instead of the actual JDK found at JAVA_HOME.
To avoid this, we grab the actual JAVA_HOME environment variable
and use that to specify the location of tools.jar. -->
<!-- if someone is better with ant please help clean this up -->
<propertyenvironment="env" />
<propertyname="java_home"value="${env.JAVA_HOME}" />
<javacsource="1.8"
target="1.8"
encoding="UTF-8"
includeAntRuntime="false"
srcdir="src"
classpathref="class.path"
debug="true"
destdir="bin">
</javac>
<copytodir="bin"overwrite="true"verbose="true">
<filesetdir="src"includes="**/*.properties" />
</copy>
</target>
<targetname="build"depends="compile"description="Build core library">
<jarbasedir="bin"destfile="arduino-core.jar" />
</target>
</project>