|
1 | 1 | <?xml version="1.0"?>
|
2 | 2 | <project name="Arduino PDE" default="build">
|
3 | 3 |
|
| 4 | + <path id="class.path"> |
| 5 | + <fileset dir="lib"> |
| 6 | + <include name="*.jar"/> |
| 7 | + </fileset> |
| 8 | + <pathelement path="${env.JAVA_HOME}/lib/tools.jar"/> |
| 9 | + <pathelement path="../core/core.jar"/> |
| 10 | + </path> |
| 11 | + |
| 12 | + <path id="class.path.test"> |
| 13 | + <path refid="class.path"/> |
| 14 | + <pathelement location="bin/"/> |
| 15 | + <pathelement path="test-lib/junit-4.11.jar"/> |
| 16 | + </path> |
| 17 | + |
4 | 18 | <target name="clean" description="Clean the build directories">
|
5 | 19 | <delete dir="bin" />
|
6 | 20 | <delete dir="test-bin" />
|
|
44 | 58 | encoding="UTF-8"
|
45 | 59 | includeAntRuntime="false"
|
46 | 60 | debug="true"
|
47 |
| - classpath="../core/core.jar; ${env.JAVA_HOME}/lib/tools.jar; lib/apple.jar; lib/ecj.jar; lib/jna.jar; lib/RXTXcomm.jar" /> |
| 61 | + classpathref="class.path" /> |
48 | 62 | <copy todir="bin" overwrite="true" verbose="true">
|
49 | 63 | <fileset dir="src" includes="**/*.properties" />
|
50 | 64 | </copy>
|
|
58 | 72 | destdir="test-bin"
|
59 | 73 | encoding="UTF-8"
|
60 | 74 | includeAntRuntime="false"
|
61 |
| - debug="true"> |
62 |
| - <classpath> |
63 |
| - <pathelement location="bin"/> |
64 |
| - <pathelement location="../core/core.jar"/> |
65 |
| - <pathelement location="${env.JAVA_HOME}/lib/tools.jar"/> |
66 |
| - <pathelement location="lib/apple.jar"/> |
67 |
| - <pathelement location="lib/ecj.jar"/> |
68 |
| - <pathelement location="lib/jna.jar"/> |
69 |
| - <pathelement location="lib/RXTXcomm.jar"/> |
70 |
| - <pathelement location="test-lib/junit-4.11.jar"/> |
71 |
| - </classpath> |
| 75 | + debug="true" |
| 76 | + classpathref="class.path.test"> |
72 | 77 | </javac>
|
73 | 78 |
|
74 | 79 | <copy todir="test-bin" overwrite="true" verbose="true">
|
|
80 | 85 | <classpath>
|
81 | 86 | <pathelement location="bin"/>
|
82 | 87 | <pathelement location="test-bin"/>
|
83 |
| - <pathelement location="../core/core.jar"/> |
84 |
| - <pathelement location="${env.JAVA_HOME}/lib/tools.jar"/> |
85 |
| - <pathelement location="lib/apple.jar"/> |
86 |
| - <pathelement location="lib/ecj.jar"/> |
87 |
| - <pathelement location="lib/jna.jar"/> |
88 |
| - <pathelement location="lib/RXTXcomm.jar"/> |
89 |
| - <pathelement location="test-lib/junit-4.11.jar"/> |
| 88 | + <path refid="class.path.test"/> |
90 | 89 | </classpath>
|
91 | 90 |
|
92 | 91 | <formatter type="xml"/>
|
|
0 commit comments