*** empty log message ***
[thera-pi.git] / TheraPi / build.xml
blob8897118c6943c754092d064abd278dcd50f077cf
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!-- WARNING: Eclipse auto-generated file.
3               Any modifications will be overwritten.
4               To include a user specific buildfile here, simply create one in the same
5               directory with the processing instruction <?eclipse.ant.import?>
6               as the first entry and export the buildfile again. -->
7 <project basedir="." default="build" name="TheraPi">
8     <property environment="env"/>
9     <property name="Libraries.location" value="../Libraries"/>
10     <property name="ECLIPSE_HOME" value="../../../../usr/lib/eclipse"/>
11     <property name="debuglevel" value="source,lines,vars"/>
12     <property name="target" value="1.6"/>
13     <property name="source" value="1.6"/>
14     <import file="build-user.xml"/>
15     <path id="TheraPi.classpath">
16         <pathelement location="bin"/>
17         <pathelement location="${Libraries.location}/lib/swingx/swingx-1.6.jar"/>
18         <pathelement location="${Libraries.location}/lib/swingx/swing-worker.jar"/>
19         <pathelement location="${Libraries.location}/lib/jgoodies/looks-2.3.1.jar"/>
20     </path>
21     <target name="init">
22         <mkdir dir="bin"/>
23         <copy includeemptydirs="false" todir="bin">
24             <fileset dir="src">
25                 <exclude name="**/*.launch"/>
26                 <exclude name="**/*.java"/>
27             </fileset>
28         </copy>
29     </target>
30     <target name="clean">
31         <delete dir="bin"/>
32     </target>
33     <target depends="clean" name="cleanall"/>
34     <target depends="build-subprojects,build-project" name="build"/>
35     <target name="build-subprojects"/>
36     <target depends="init" name="build-project">
37         <echo message="${ant.project.name}: ${ant.file}"/>
38         <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
39             <src path="src"/>
40             <classpath refid="TheraPi.classpath"/>
41         </javac>
42     </target>
43     <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
44     <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
45         <copy todir="${ant.library.dir}">
46             <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
47         </copy>
48         <unzip dest="${ant.library.dir}">
49             <patternset includes="jdtCompilerAdapter.jar"/>
50             <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
51         </unzip>
52     </target>
53     <target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
54         <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
55         <antcall target="build"/>
56     </target>
57 </project>