*** empty log message ***
[thera-pi.git] / TheraPiUpdates / build.xml
blobb3f83ff9bf5e2e19627b2f56d918d89d29981c3d
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="TheraPiUpdates">
8     <property environment="env"/>
9     <property name="Libraries.location" value="../Libraries"/>
10     <property name="Reha.location" value="../Reha"/>
11     <property name="ECLIPSE_HOME" value="../../../../usr/lib/eclipse"/>
12     <property name="debuglevel" value="source,lines,vars"/>
13     <property name="target" value="1.6"/>
14     <property name="source" value="1.6"/>
15     <import file="build-user.xml"/>
16     <path id="Libraries.classpath"/>
17     <path id="TheraPiUpdates.classpath">
18         <pathelement location="bin"/>
19         <pathelement location="${Libraries.location}/lib/swingx/swingx-1.6.jar"/>
20         <pathelement location="${Libraries.location}/lib/swingx/swing-worker.jar"/>
21         <pathelement location="${Libraries.location}/lib/jgoodies/looks-2.3.1.jar"/>
22         <pathelement location="${Libraries.location}/lib/sql/mysql-connector-java-5.1.5-bin.jar"/>
23         <path refid="Libraries.classpath"/>
24         <pathelement location="${Libraries.location}/lib/apachecommons/commons-net-2.0.jar"/>
25         <pathelement location="${Libraries.location}/lib/jgoodies/forms-1.3.0.jar"/>
26         <pathelement location="${Libraries.location}/lib/jgoodies/jgoodies-common-0.9.9.jar"/>
27     </path>
28     <target name="init">
29         <mkdir dir="bin"/>
30         <copy includeemptydirs="false" todir="bin">
31             <fileset dir="src">
32                 <exclude name="**/*.launch"/>
33                 <exclude name="**/*.java"/>
34             </fileset>
35         </copy>
36     </target>
37     <target name="clean">
38         <delete dir="bin"/>
39     </target>
40     <target depends="clean" name="cleanall">
41         <ant antfile="${Libraries.location}/build.xml" dir="${Libraries.location}" inheritAll="false" target="clean"/>
42     </target>
43     <target depends="build-subprojects,build-project" name="build"/>
44     <target name="build-subprojects">
45         <ant antfile="${Libraries.location}/build.xml" dir="${Libraries.location}" inheritAll="false" target="build-project">
46             <propertyset>
47                 <propertyref name="build.compiler"/>
48             </propertyset>
49         </ant>
50     </target>
51     <target depends="init" name="build-project">
52         <echo message="${ant.project.name}: ${ant.file}"/>
53         <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
54             <src path="src"/>
55             <classpath refid="TheraPiUpdates.classpath"/>
56         </javac>
57     </target>
58     <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects">
59         <ant antfile="${Reha.location}/build.xml" dir="${Reha.location}" inheritAll="false" target="clean"/>
60         <ant antfile="${Reha.location}/build.xml" dir="${Reha.location}" inheritAll="false" target="build">
61             <propertyset>
62                 <propertyref name="build.compiler"/>
63             </propertyset>
64         </ant>
65     </target>
66     <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
67         <copy todir="${ant.library.dir}">
68             <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
69         </copy>
70         <unzip dest="${ant.library.dir}">
71             <patternset includes="jdtCompilerAdapter.jar"/>
72             <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
73         </unzip>
74     </target>
75     <target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
76         <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
77         <antcall target="build"/>
78     </target>
79 </project>