blob: f176ed3963cd3b025f8395952c516ccc0cc992bc [file] [log] [blame]
jgraham3a991f12006-01-10 17:09:18 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 *************************************************************************
4 * Copyright (c) 2005 Sybase, Inc. and others.
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
9 *
10 * Contributors:
11 * Sybase, Inc. - initial API and implementation
12 *
13 ***************************************************************************
14 -->
15<project name="org.eclipse.datatools.connectivity.sqm.server.ui" default="build.jars" basedir=".">
16 <import file="../org.eclipse.datatools.build/common_build.xml" optional="true"/>
17 <property name="module.name" value="org.eclipse.datatools.connectivity.sqm.server.ui"/>
18 <property name="basews" value="${ws}"/>
19 <property name="baseos" value="${os}"/>
20 <property name="basearch" value="${arch}"/>
21 <property name="basenl" value="${nl}"/>
22 <property name="eclipse.home" location="."/>
23 <property file="build.properties"/>
24 <!-- JavaDoc settings -->
25 <property name="javadocWindowTitle" value="DTP SQL Query Model Server UI"/>
26 <property name="javadocDocTitle" value="DTP SQL Query Model Server UI API (Internal)"/>
27 <property name="javadocPackages" value="org.eclipse.datatools.connectivity.sqm.server.ui.*"/>
28 <property name="javadocFooter" value="&lt;i>Copyright &#169; 2005 IBM Corporation and others. All rights reserved. &lt;/i>"/>
29 <!-- Compiler settings. -->
30 <property name="javacFailOnError" value="true"/>
31 <property name="javacDebugInfo" value="on"/>
32 <property name="javacVerbose" value="true"/>
33 <property name="javacSource" value="${javac.source}"/>
34 <property name="javacTarget" value="${javac.target}"/>
35 <property name="compilerArg" value=""/>
36 <path id="path_bootclasspath">
37 <fileset dir="${java.home}/lib">
38 <include name="*.jar"/>
39 </fileset>
40 <fileset dir="${eclipse.home}/plugins">
41 <!-- Include jared plug-ins -->
42 <include name="org.eclipse.core.runtime_*.jar"/>
43 <include name="org.eclipse.osgi_*.jar"/>
44 <include name="org.eclipse.core.resources_*.jar"/>
45 <include name="org.eclipse.emf.ecore_*.jar"/>
46 <include name="org.eclipse.emf.common_*.jar"/>
47 <include name="org.eclipse.emf.ecore.sdo_*.jar"/>
48 <include name="org.eclipse.emf.commonj.sdo_*.jar"/>
49 <include name="org.eclipse.emf.ecore.xmi_*.jar"/>
50 <include name="org.eclipse.emf.ecore.change_*.jar"/>
51 <include name="org.eclipse.ui_*.jar"/>
52 <include name="org.eclipse.swt_*.jar"/>
53 <include name="org.eclipse.swt.*_*.jar"/>
54 <include name="org.eclipse.jface_*.jar"/>
55 <include name="org.eclipse.core.commands_*.jar"/>
56 <include name="org.eclipse.ui.workbench_*.jar"/>
jgrahamefd7c6b2006-02-21 22:36:08 +000057 <include name="org.eclipse.ui.navigator_*.jar"/>
jgraham4ad80532006-01-27 15:31:58 +000058 <include name="com.ibm.icu_*.jar"/>
jgraham3a991f12006-01-10 17:09:18 +000059 <!-- Include expanded plug-ins -->
60 <include name="org.eclipse.core.runtime_*/org.eclipse.core.runtime_*.jar"/>
61 <include name="org.eclipse.osgi_*/org.eclipse.osgi_*.jar"/>
62 <include name="org.eclipse.core.resources_*/org.eclipse.core.resources_*.jar"/>
63 <include name="org.eclipse.emf.ecore_*/org.eclipse.emf.ecore*.jar"/>
64 <include name="org.eclipse.emf.common_*/org.eclipse.emf.common*.jar"/>
65 <include name="org.eclipse.emf.ecore.sdo_*/org.eclipse.emf.ecore.sdo*.jar"/>
66 <include name="org.eclipse.emf.commonj.sdo_*/org.eclipse.emf.commonj.sdo*.jar"/>
67 <include name="org.eclipse.emf.ecore.xmi_*/org.eclipse.emf.ecore.xmi*.jar"/>
68 <include name="org.eclipse.emf.ecore.change_*/org.eclipse.emf.ecore.change*.jar"/>
69 <include name="org.eclipse.ui_*/org.eclipse.ui_*.jar"/>
70 <include name="org.eclipse.swt_*/org.eclipse.swt_*.jar"/>
71 <include name="org.eclipse.swt.*_*/org.eclipse.swt.*_*.jar"/>
72 <include name="org.eclipse.jface_*/org.eclipse.jface_*.jar"/>
73 <include name="org.eclipse.core.commands_*/org.eclipse.core.commands_*.jar"/>
74 <include name="org.eclipse.ui.workbench_*/org.eclipse.ui.workbench_*.jar"/>
75 <include name="org.eclipse.ui.navigator_*/navigator.jar"/>
76 <include name="org.eclipse.ui.navigator.resources_*/navigator_resources.jar"/>
77 </fileset>
78 <!-- Dependencies on other DTP plug-ins, built before this one -->
79 <fileset dir="../">
80 <include name="org.eclipse.datatools.modelbase.dbdefinition/bin/*"/>
81 <include name="org.eclipse.datatools.modelbase.dbdefinition/databasedefinition.jar"/>
82 <include name="org.eclipse.datatools.modelbase.sql/bin/*"/>
83 <include name="org.eclipse.datatools.modelbase.sql/sqlmodel.jar"/>
84 <include name="org.eclipse.datatools.connectivity.sqm.core/bin/*"/>
85 <include name="org.eclipse.datatools.connectivity.sqm.core/rdbcore.jar"/>
86 <include name="org.eclipse.datatools.connectivity.sqm.core.ui/bin/*"/>
87 <include name="org.eclipse.datatools.connectivity.sqm.core.ui/rdb.core.ui.jar"/>
rcernich414ef3e2006-01-27 19:33:41 +000088 <include name="org.eclipse.datatools.connectivity/bin/*"/>
89 <include name="org.eclipse.datatools.connectivity/connectivity.jar"/>
90 <include name="org.eclipse.datatools.connectivity.ui/bin/*"/>
91 <include name="org.eclipse.datatools.connectivity.ui/connectivityui.jar"/>
jgraham3a991f12006-01-10 17:09:18 +000092 </fileset>
93 </path>
94 <property name="bootclasspath" refid="path_bootclasspath"/>
95
96 <target name="init" depends="properties">
97 <condition property="pluginTemp" value="${buildTempFolder}/plugins">
98 <isset property="buildTempFolder"/>
99 </condition>
100 <property name="pluginTemp" value="${basedir}"/>
101 <condition property="build.result.folder" value="${pluginTemp}/${module.name}">
102 <isset property="buildTempFolder"/>
103 </condition>
104 <property name="build.result.folder" value="${basedir}"/>
105 <property name="temp.folder" value="${basedir}/temp.folder"/>
106 <property name="plugin.destination" value="${basedir}"/>
107 </target>
108
109 <target name="properties" if="eclipse.running">
110 <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
111
112 </target>
113
114 <target name="build.update.jar" depends="init" description="Build the plug-in: org.eclipse.datatools.connectivity.sqm.server.ui for an update site.">
115 <delete dir="${temp.folder}"/>
116 <mkdir dir="${temp.folder}"/>
117 <antcall target="build.jars"/>
118 <antcall target="gather.bin.parts">
119 <param name="destination.temp.folder" value="${temp.folder}/"/>
120 </antcall>
121 <zip destfile="${plugin.destination}/${module.name}_${plugin.version}.jar" basedir="${temp.folder}/${module.name}_${plugin.version}" filesonly="false" whenempty="skip" update="false"/>
122 <delete dir="${temp.folder}"/>
123 </target>
124
125 <target name="rdb.server.ui.jar" depends="init" unless="rdb.server.ui.jar" description="Create jar: org.eclipse.datatools.connectivity.sqm.server.ui rdb.server.ui.jar.">
126 <delete dir="${temp.folder}/rdb.server.ui.jar.bin"/>
127 <mkdir dir="${temp.folder}/rdb.server.ui.jar.bin"/>
128 <!-- compile the source code -->
129 <javac destdir="${temp.folder}/rdb.server.ui.jar.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bootclasspath}" source="${javacSource}" target="${javacTarget}" >
130 <compilerarg line="${compilerArg}"/>
131 <classpath refid="path_bootclasspath"/>
132 <src path="src/" />
133 </javac>
134 <!-- Copy necessary resources -->
135 <copy todir="${temp.folder}/rdb.server.ui.jar.bin" failonerror="true" overwrite="false">
136 <fileset dir="src/" excludes="**/*.java, **/package.htm*,null" />
137 </copy>
138 <mkdir dir="${build.result.folder}"/>
139 <jar destfile="${build.result.folder}/rdb.server.ui.jar" basedir="${temp.folder}/rdb.server.ui.jar.bin"/>
140 <delete dir="${temp.folder}/rdb.server.ui.jar.bin"/>
141 </target>
142
143 <target name="rdb.server.uisrc.zip" depends="init" unless="rdb.server.uisrc.zip">
144 <mkdir dir="${build.result.folder}"/>
145 <zip destfile="${build.result.folder}/rdb.server.uisrc.zip" filesonly="false" whenempty="skip" update="false">
146 <fileset dir="src/" includes="**/*.java" />
147 </zip>
148 </target>
149
150 <target name="build.jars" depends="init" description="Build all the jars for the plug-in: org.eclipse.datatools.connectivity.sqm.server.ui.">
151 <available property="rdb.server.ui.jar" file="${build.result.folder}/rdb.server.ui.jar"/>
152 <antcall target="rdb.server.ui.jar"/>
153 </target>
154
155 <target name="build.sources" depends="init">
156 <available property="rdb.server.uisrc.zip" file="${build.result.folder}/rdb.server.uisrc.zip"/>
157 <antcall target="rdb.server.uisrc.zip"/>
158 </target>
159
160 <target name="gather.bin.parts" depends="init" if="destination.temp.folder">
161 <mkdir dir="${destination.temp.folder}/${module.name}_${plugin.version}"/>
162 <copy todir="${destination.temp.folder}/${module.name}_${plugin.version}" failonerror="true" overwrite="false">
163 <fileset dir="${build.result.folder}" includes="rdb.server.ui.jar" />
164 </copy>
165 <copy todir="${destination.temp.folder}/${module.name}_${plugin.version}" failonerror="true" overwrite="false">
jgraham85429232006-03-12 16:21:53 +0000166 <fileset dir="${basedir}" includes="plugin.xml,META-INF/,schema/,icons/,plugin.properties,rdb.server.ui.jar,about.html" />
jgraham3a991f12006-01-10 17:09:18 +0000167 </copy>
168 <copy todir="${destination.temp.folder}/${module.name}_${plugin.version}" failonerror="false" overwrite="false">
169 <fileset dir="${basedir}" includes="rdb.server.uisrc.zip"/>
170 </copy>
171 </target>
172
173 <target name="build.zips" depends="init">
174 </target>
175
176 <target name="gather.sources" depends="init" if="destination.temp.folder">
177 <mkdir dir="${destination.temp.folder}/${module.name}_${plugin.version}"/>
178 <copy file="${build.result.folder}/rdb.server.uisrc.zip" todir="${destination.temp.folder}/${module.name}_${plugin.version}" failonerror="false" overwrite="false"/>
179 </target>
180
181 <target name="gather.logs" depends="init" if="destination.temp.folder">
182 <mkdir dir="${destination.temp.folder}/${module.name}_${plugin.version}"/>
183 <copy file="${temp.folder}/rdb.server.ui.jar.bin.log" todir="${destination.temp.folder}/${module.name}_${plugin.version}" failonerror="false" overwrite="false"/>
184 </target>
185
186 <target name="clean" depends="init" description="Clean the plug-in: org.eclipse.datatools.connectivity.sqm.server.ui of all the zips, jars and logs created.">
187 <delete file="${build.result.folder}/rdb.server.ui.jar"/>
188 <delete file="${build.result.folder}/rdb.server.uisrc.zip"/>
189 <delete file="${plugin.destination}/${module.name}_${plugin.version}.jar"/>
190 <delete file="${plugin.destination}/${module.name}_${plugin.version}.zip"/>
191 <delete dir="${temp.folder}"/>
192 </target>
193
194 <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
195 <eclipse.convertPath fileSystemPath="C:/V3/3.1/eclipse/workspace-dtp/org.eclipse.datatools.connectivity.sqm.server.ui" property="resourcePath"/>
196 <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
197 </target>
198
199 <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: org.eclipse.datatools.connectivity.sqm.server.ui.">
200 <delete dir="${temp.folder}"/>
201 <mkdir dir="${temp.folder}"/>
202 <antcall target="build.jars"/>
203 <antcall target="build.sources"/>
204 <antcall target="gather.bin.parts">
205 <param name="destination.temp.folder" value="${temp.folder}/"/>
206 </antcall>
207 <antcall target="gather.sources">
208 <param name="destination.temp.folder" value="${temp.folder}/"/>
209 </antcall>
210 <delete>
211 <fileset dir="${temp.folder}" includes="**/*.bin.log" />
212 </delete>
213 <zip destfile="${plugin.destination}/${module.name}_${plugin.version}.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
214 <delete dir="${temp.folder}"/>
215 </target>
216
217</project>