blob: 0f595a4f0978b65fdb4ace4e23e1aae61e044635 [file] [log] [blame]
Brian Fitzpatricke70cd7b2009-01-22 16:02:55 +00001<?xml version="1.0" encoding="UTF-8"?>
2<project name="org.eclipse.datatools.connectivity.test" default="build.jars" basedir=".">
3
4 <property name="basews" value="${ws}"/>
5 <property name="baseos" value="${os}"/>
6 <property name="basearch" value="${arch}"/>
7 <property name="basenl" value="${nl}"/>
8
9 <!-- Compiler settings. -->
10 <property name="javacFailOnError" value="false"/>
11 <property name="javacDebugInfo" value="on"/>
12 <property name="javacVerbose" value="false"/>
13 <property name="logExtension" value=".log"/>
14 <property name="compilerArg" value=""/>
15 <property name="javacSource" value="1.3"/>
16 <property name="javacTarget" value="1.2"/>
17 <path id="path_bootclasspath">
18 <fileset dir="${java.home}/lib">
19 <include name="*.jar"/>
20 </fileset>
21 </path>
22 <property name="bootclasspath" refid="path_bootclasspath"/>
23 <property name="bundleJavacSource" value="${javacSource}"/>
24 <property name="bundleJavacTarget" value="${javacTarget}"/>
25 <property name="bundleBootClasspath" value="${bootclasspath}"/>
26
27 <target name="init" depends="properties">
28 <condition property="pluginTemp" value="${buildTempFolder}/plugins">
29 <isset property="buildTempFolder"/>
30 </condition>
31 <property name="pluginTemp" value="${basedir}"/>
32 <condition property="build.result.folder" value="${pluginTemp}/org.eclipse.datatools.connectivity.test">
33 <isset property="buildTempFolder"/>
34 </condition>
35 <property name="build.result.folder" value="${basedir}"/>
36 <property name="temp.folder" value="${basedir}/temp.folder"/>
37 <property name="plugin.destination" value="${basedir}"/>
38 </target>
39
40 <target name="properties" if="eclipse.running">
41 <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
42
43 </target>
44
45 <target name="build.update.jar" depends="init" description="Build the plug-in: org.eclipse.datatools.connectivity.test for an update site.">
46 <delete dir="${temp.folder}"/>
47 <mkdir dir="${temp.folder}"/>
48 <antcall target="build.jars"/>
49 <antcall target="gather.bin.parts">
50 <param name="destination.temp.folder" value="${temp.folder}/"/>
51 </antcall>
52 <zip destfile="${plugin.destination}/org.eclipse.datatools.connectivity.test_1.0.0.jar" basedir="${temp.folder}/org.eclipse.datatools.connectivity.test_1.0.0" filesonly="false" whenempty="skip" update="false"/>
53 <delete dir="${temp.folder}"/>
54 </target>
55
56 <target name="connectivityTest.jar" depends="init" unless="connectivityTest.jar" description="Create jar: org.eclipse.datatools.connectivity.test connectivityTest.jar.">
57 <delete dir="${temp.folder}/connectivityTest.jar.bin"/>
58 <mkdir dir="${temp.folder}/connectivityTest.jar.bin"/>
59 <path id="connectivityTest.jar.classpath">
60 <pathelement path="../org.eclipse.datatools.connectivity/bin/"/>
61 <pathelement path="../org.eclipse.datatools.connectivity/connectivity.jar"/>
62 <pathelement path="../../eclipse/plugins/org.eclipse.core.runtime_3.2.0.v20060511.jar"/>
63 <pathelement path="../../eclipse/plugins/org.eclipse.osgi_3.2.0.v20060510.jar"/>
64 <pathelement path="../../eclipse/plugins/org.eclipse.equinox.common_3.2.0.v20060512.jar"/>
65 <pathelement path="../../eclipse/plugins/org.eclipse.core.jobs_3.2.0.v20060511.jar"/>
66 <pathelement path="../../eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.0.v20060426/runtime_registry_compatibility.jar"/>
67 <pathelement path="../../eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.0.v20060426"/>
68 <pathelement path="../../eclipse/plugins/org.eclipse.equinox.registry_3.2.0.v20060511.jar"/>
69 <pathelement path="../../eclipse/plugins/org.eclipse.equinox.preferences_3.2.0.v20060511.jar"/>
70 <pathelement path="../../eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.0.v20060426/@dot"/>
71 <pathelement path="../../eclipse/plugins/org.eclipse.core.contenttype_3.2.0.v20060511.jar"/>
72 <pathelement path="../../eclipse/plugins/org.eclipse.core.runtime.compatibility.auth_3.2.0.v20060511.jar"/>
73 <pathelement path="../../eclipse/plugins/org.eclipse.core.resources_3.2.0.v20060512.jar"/>
74 <pathelement path="../../eclipse/plugins/org.eclipse.core.resources.compatibility_3.2.0.v20060510.jar"/>
75 <pathelement path="../../eclipse/plugins/org.eclipse.core.resources.win32_3.2.0.v20060510.jar"/>
76 <pathelement path="../../eclipse/plugins/org.eclipse.core.runtime.compatibility_3.1.100.v20060511.jar"/>
77 <pathelement path="../../eclipse/plugins/org.eclipse.update.configurator_3.2.0.v20060511.jar"/>
78 <pathelement path="../../eclipse/plugins/org.eclipse.ant.core_3.1.100.v20060511.jar"/>
79 <pathelement path="../../eclipse/plugins/org.eclipse.core.variables_3.1.100.v20060517.jar"/>
80 <pathelement path="../../eclipse/plugins/org.eclipse.core.expressions_3.2.0.v20060518-0800.jar"/>
81 <pathelement path="../../eclipse/plugins/org.eclipse.core.filesystem_1.0.0.v20060510.jar"/>
82 <pathelement path="../../eclipse/plugins/org.eclipse.core.filesystem.win32.x86_1.0.0.v20060510.jar"/>
83 <pathelement path="../../eclipse/plugins/com.ibm.icu_3.4.4.1.jar"/>
84 <pathelement path="../../eclipse/plugins/org.eclipse.ui_3.2.0.I20060526-0010.jar"/>
85 <pathelement path="../../eclipse/plugins/org.eclipse.swt_3.2.0.v3232k.jar"/>
86 <pathelement path="../../eclipse/plugins/org.eclipse.swt.win32.win32.x86_3.2.0.v3232g.jar"/>
87 <pathelement path="../../eclipse/plugins/org.eclipse.jface_3.2.0.I20060526-0010a.jar"/>
88 <pathelement path="../../eclipse/plugins/org.eclipse.core.commands_3.2.0.I20060511-0800a.jar"/>
89 <pathelement path="../../eclipse/plugins/org.eclipse.ui.workbench_3.2.0.I20060526-0010.jar"/>
90 <pathelement path="../../eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20060511-2000/@dot"/>
91 <pathelement path="../../eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20060511-2000/compatibility.jar"/>
92 <pathelement path="../../eclipse/plugins/org.eclipse.help_3.2.0.v20060518.jar"/>
93 <pathelement path="../../eclipse/plugins/org.eclipse.jdt.junit_3.2.0.v20060518-0800/junitsupport.jar"/>
94 <pathelement path="../../eclipse/plugins/org.eclipse.ui.ide_3.2.0.I20060519-0010.jar"/>
95 <pathelement path="../../eclipse/plugins/org.eclipse.ui.win32_3.2.0.I20060511-2000.jar"/>
96 <pathelement path="../../eclipse/plugins/org.eclipse.ui.views_3.2.0.I20060511-2000.jar"/>
97 <pathelement path="../../eclipse/plugins/org.eclipse.update.core_3.2.0.v20060511.jar"/>
98 <pathelement path="../../eclipse/plugins/org.eclipse.update.core.win32_3.2.0.v20060511.jar"/>
99 <pathelement path="../../eclipse/plugins/org.eclipse.update.ui_3.2.0.v20060511.jar"/>
100 <pathelement path="../../eclipse/plugins/org.eclipse.ui.forms_3.2.0.v20060510.jar"/>
101 <pathelement path="../../eclipse/plugins/org.eclipse.jface.text_3.2.0.v20060518-0800.jar"/>
102 <pathelement path="../../eclipse/plugins/org.eclipse.text_3.2.0.v20060518-0800.jar"/>
103 <pathelement path="../../eclipse/plugins/org.eclipse.ui.workbench.texteditor_3.2.0.v20060526-0010.jar"/>
104 <pathelement path="../../eclipse/plugins/org.eclipse.ui.editors_3.2.0.v20060518-0800.jar"/>
105 <pathelement path="../../eclipse/plugins/org.eclipse.core.filebuffers_3.2.0.v20060518-0800.jar"/>
106 <pathelement path="../../eclipse/plugins/org.eclipse.debug.core_3.2.0.v20060525.jar"/>
107 <pathelement path="../../eclipse/plugins/org.eclipse.debug.ui_3.2.0.v20060525a.jar"/>
108 <pathelement path="../../eclipse/plugins/org.eclipse.ui.console_3.1.100.v20060518.jar"/>
109 <pathelement path="../../eclipse/plugins/org.eclipse.jdt.core_3.2.0.v_668.jar"/>
110 <pathelement path="../../eclipse/plugins/org.eclipse.team.core_3.2.0.I200605181830.jar"/>
111 <pathelement path="../../eclipse/plugins/org.eclipse.jdt.ui_3.2.0.v20060526-0010.jar"/>
112 <pathelement path="../../eclipse/plugins/org.eclipse.search_3.2.0.v20060526-0010.jar"/>
113 <pathelement path="../../eclipse/plugins/org.eclipse.jdt.launching_3.2.0.v20060525.jar"/>
114 <pathelement path="../../eclipse/plugins/org.eclipse.jdt.debug_3.2.0.v20060518/jdi.jar"/>
115 <pathelement path="../../eclipse/plugins/org.eclipse.jdt.debug_3.2.0.v20060518/jdimodel.jar"/>
116 <pathelement path="../../eclipse/plugins/org.eclipse.jdt.debug_3.2.0.v20060518/tools.jar"/>
117 <pathelement path="../../eclipse/plugins/org.eclipse.compare_3.2.0.v20060525.jar"/>
118 <pathelement path="../../eclipse/plugins/org.eclipse.team.ui_3.2.0.I200605181830.jar"/>
119 <pathelement path="../org.eclipse.ui.navigator/bin"/>
120 <pathelement path="../org.eclipse.ui.navigator/@dot"/>
121 <pathelement path="../org.eclipse.ui.navigator.resources/bin"/>
122 <pathelement path="../org.eclipse.ui.navigator.resources/@dot"/>
123 <pathelement path="../../eclipse/plugins/org.eclipse.ui.views.properties.tabbed_3.2.0.I20060511-0800a.jar"/>
124 <pathelement path="../../eclipse/plugins/org.eclipse.ltk.core.refactoring_3.2.0.v20060526-0010.jar"/>
125 <pathelement path="../../eclipse/plugins/org.eclipse.ltk.ui.refactoring_3.2.0.v20060526-0010.jar"/>
126 <pathelement path="../../eclipse/plugins/org.eclipse.jdt.core.manipulation_1.0.0.v20060518-0800.jar"/>
127 <pathelement path="../../eclipse/plugins/org.eclipse.jdt.debug.ui_3.2.0.v20060517.jar"/>
128 <pathelement path="../../eclipse/plugins/org.eclipse.jdt.junit.runtime_3.2.0.v20060526-0010/junitruntime.jar"/>
129 <pathelement path="../../eclipse/plugins/org.junit_3.8.1/junit.jar"/>
130 <pathelement path="../org.eclipse.datatools.connectivity.ui/bin/"/>
131 <pathelement path="../org.eclipse.datatools.connectivity.ui/connectivityui.jar"/>
132 <pathelement path="@dot"/>
133 <pathelement path="${build.result.folder}/../org.eclipse.datatools.connectivity.test/@dot"/>
134 </path>
135 <!-- compile the source code -->
136 <javac destdir="${temp.folder}/connectivityTest.jar.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bundleBootClasspath}" source="${bundleJavacSource}" target="${bundleJavacTarget}" >
137 <compilerarg line="${compilerArg}" compiler="${build.compiler}"/>
138 <classpath refid="connectivityTest.jar.classpath" />
139 <src path="src/" />
140 <compilerarg value="@${basedir}/javaCompiler.connectivityTest.jar.args" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/>
141 <compilerarg line="-log '${temp.folder}/connectivityTest.jar.bin${logExtension}'" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/>
142 </javac>
143 <!-- Copy necessary resources -->
144 <copy todir="${temp.folder}/connectivityTest.jar.bin" failonerror="true" overwrite="false">
145 <fileset dir="src/" excludes="**/*.java, **/package.htm*" />
146 </copy>
147 <mkdir dir="${build.result.folder}"/>
148 <jar destfile="${build.result.folder}/connectivityTest.jar" basedir="${temp.folder}/connectivityTest.jar.bin"/>
149 <delete dir="${temp.folder}/connectivityTest.jar.bin"/>
150 </target>
151
152 <target name="connectivityTestsrc.zip" depends="init" unless="connectivityTestsrc.zip">
153 <mkdir dir="${build.result.folder}"/>
154 <zip destfile="${build.result.folder}/connectivityTestsrc.zip" filesonly="false" whenempty="skip" update="false">
155 <fileset dir="src/" includes="**/*.java" />
156 </zip>
157 </target>
158
159 <target name="build.jars" depends="init" description="Build all the jars for the plug-in: org.eclipse.datatools.connectivity.test.">
160 <available property="connectivityTest.jar" file="${build.result.folder}/connectivityTest.jar"/>
161 <antcall target="connectivityTest.jar"/>
162 </target>
163
164 <target name="build.sources" depends="init">
165 <available property="connectivityTestsrc.zip" file="${build.result.folder}/connectivityTestsrc.zip"/>
166 <antcall target="connectivityTestsrc.zip"/>
167 </target>
168
169 <target name="gather.bin.parts" depends="init" if="destination.temp.folder">
170 <mkdir dir="${destination.temp.folder}/org.eclipse.datatools.connectivity.test_1.0.0"/>
171 <copy todir="${destination.temp.folder}/org.eclipse.datatools.connectivity.test_1.0.0" failonerror="true" overwrite="false">
172 <fileset dir="${build.result.folder}" includes="connectivityTest.jar" />
173 </copy>
174 <copy todir="${destination.temp.folder}/org.eclipse.datatools.connectivity.test_1.0.0" failonerror="true" overwrite="false">
175 <fileset dir="${basedir}" includes="META-INF/,plugin.xml,test_files/,about.html,connectivityTest.jar" />
176 </copy>
177 </target>
178
179 <target name="build.zips" depends="init">
180 </target>
181
182 <target name="gather.sources" depends="init" if="destination.temp.folder">
183 <mkdir dir="${destination.temp.folder}/org.eclipse.datatools.connectivity.test_1.0.0"/>
184 <copy file="${build.result.folder}/connectivityTestsrc.zip" todir="${destination.temp.folder}/org.eclipse.datatools.connectivity.test_1.0.0" failonerror="false" overwrite="false"/>
185 <copy todir="${destination.temp.folder}/org.eclipse.datatools.connectivity.test_1.0.0" failonerror="false" overwrite="false">
186 <fileset dir="${basedir}" includes="" />
187 </copy>
188 </target>
189
190 <target name="gather.logs" depends="init" if="destination.temp.folder">
191 <mkdir dir="${destination.temp.folder}/org.eclipse.datatools.connectivity.test_1.0.0"/>
192 <copy file="${temp.folder}/connectivityTest.jar.bin${logExtension}" todir="${destination.temp.folder}/org.eclipse.datatools.connectivity.test_1.0.0" failonerror="false" overwrite="false"/>
193 </target>
194
195 <target name="clean" depends="init" description="Clean the plug-in: org.eclipse.datatools.connectivity.test of all the zips, jars and logs created.">
196 <delete file="${build.result.folder}/connectivityTest.jar"/>
197 <delete file="${build.result.folder}/connectivityTestsrc.zip"/>
198 <delete file="${plugin.destination}/org.eclipse.datatools.connectivity.test_1.0.0.jar"/>
199 <delete file="${plugin.destination}/org.eclipse.datatools.connectivity.test_1.0.0.zip"/>
200 <delete dir="${temp.folder}"/>
201 </target>
202
203 <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
204 <eclipse.convertPath fileSystemPath="F:/Eclipse3.2RC6/workspace/org.eclipse.datatools.connectivity.test" property="resourcePath"/>
205 <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
206 </target>
207
208 <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: org.eclipse.datatools.connectivity.test.">
209 <delete dir="${temp.folder}"/>
210 <mkdir dir="${temp.folder}"/>
211 <antcall target="build.jars"/>
212 <antcall target="build.sources"/>
213 <antcall target="gather.bin.parts">
214 <param name="destination.temp.folder" value="${temp.folder}/"/>
215 </antcall>
216 <antcall target="gather.sources">
217 <param name="destination.temp.folder" value="${temp.folder}/"/>
218 </antcall>
219 <delete>
220 <fileset dir="${temp.folder}" includes="**/*.bin${logExtension}" />
221 </delete>
222 <zip destfile="${plugin.destination}/org.eclipse.datatools.connectivity.test_1.0.0.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
223 <delete dir="${temp.folder}"/>
224 </target>
225
226</project>