changed to version 1.1.5 for js.core
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.ui / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="net.sourceforge.phpeclipse.debug.ui" default="build.jars" basedir=".">
3
4         <property name="bootclasspath" value=""/>
5         <property name="basews" value="${ws}"/>
6         <property name="baseos" value="${os}"/>
7         <property name="basearch" value="${arch}"/>
8         <property name="basenl" value="${nl}"/>
9         <property name="javacFailOnError" value="false"/>
10         <property name="javacDebugInfo" value="on"/>
11         <property name="javacVerbose" value="true"/>
12         <property name="javacSource" value="1.3"/>
13         <property name="javacTarget" value="1.2"/>
14         <property name="compilerArg" value=""/>
15
16         <target name="init" depends="properties">
17                 <condition property="pluginTemp" value="${buildTempFolder}/plugins">
18                         <isset property="buildTempFolder"/>
19                 </condition>
20                 <property name="pluginTemp" value="${basedir}"/>
21                 <condition property="build.result.folder" value="${pluginTemp}/net.sourceforge.phpeclipse.debug.ui">
22                         <isset property="buildTempFolder"/>
23                 </condition>
24                 <property name="build.result.folder" value="${basedir}"/>
25                 <property name="temp.folder" value="${basedir}/temp.folder"/>
26                 <property name="plugin.destination" value="${basedir}"/>
27         </target>
28
29         <target name="properties" if="eclipse.running">
30                 <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
31         </target>
32
33         <target name="build.update.jar" depends="init" description="Build the plug-in: net.sourceforge.phpeclipse.debug.ui for an update site.">
34                 <delete dir="${temp.folder}"/>
35                 <mkdir dir="${temp.folder}"/>
36                 <antcall target="build.jars"/>
37                 <antcall target="gather.bin.parts">
38                         <param name="destination.temp.folder" value="${temp.folder}/"/>
39                 </antcall>
40                 <zip zipfile="${plugin.destination}/net.sourceforge.phpeclipse.debug.ui_1.1.1.jar" basedir="${temp.folder}/net.sourceforge.phpeclipse.debug.ui_1.1.1" filesonly="false" whenempty="skip" update="false"/>
41                 <delete dir="${temp.folder}"/>
42         </target>
43
44         <target name="debug.jar" depends="init" unless="debug.jar" description="Create jar: debug.jar.">
45                 <delete dir="${temp.folder}/debug.jar.bin"/>
46                 <mkdir dir="${temp.folder}/debug.jar.bin"/>
47                 <!-- compile the source code -->
48                 <javac destdir="${temp.folder}/debug.jar.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bootclasspath}" source="${javacSource}" target="${javacTarget}"             >
49                         <compilerarg line="${compilerArg}"/>
50                         <classpath>
51                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.ide_3.0.1/ide.jar"/>
52                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.win32_3.0.1/ide.jar"/>
53                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.win32_3.0.1/workbenchwin32.jar"/>
54                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.core.resources_3.0.1/resources.jar"/>
55                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.core.resources.win32_3.0.0/resources.jar"/>
56                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.core.resources.win32_3.0.0/resources-win32.jar"/>
57                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.core.runtime.compatibility_3.0.0/compatibility.jar"/>
58                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.core.runtime_3.0.1/runtime.jar"/>
59                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/core.jar"/>
60                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/console.jar"/>
61                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/osgi.jar"/>
62                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/resolver.jar"/>
63                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/defaultAdaptor.jar"/>
64                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/eclipseAdaptor.jar"/>
65                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.update.configurator_3.0.0/configurator.jar"/>
66                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.help_3.0.0/help.jar"/>
67                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui_3.0.1/ui.jar"/>
68                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.swt_3.0.1/ws/${basews}/swt.jar"/>
69                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.swt.win32_3.0.1/ws/${basews}/swt.jar"/>
70                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.swt.win32_3.0.1"/>
71                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.jface_3.0.0/jface.jar"/>
72                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.workbench_3.0.1/compatibility.jar"/>
73                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.workbench_3.0.1/workbench.jar"/>
74                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.workbench.compatibility_3.0.0/compatibility.jar"/>
75                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.workbench.compatibility_3.0.0/workbench.jar"/>
76                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.core.expressions_3.0.0/expressions.jar"/>
77                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.views_3.0.0/views.jar"/>
78                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.update.core_3.0.1/updatecore.jar"/>
79                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.update.core.win32_3.0.0/updatecore.jar"/>
80                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.update.ui_3.0.1/updateui.jar"/>
81                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.help.base_3.0.1/helpbase.jar"/>
82                                 <pathelement path="../../../eclipse301/plugins/org.apache.lucene_1.3.1/parser.jar"/>
83                                 <pathelement path="../../../eclipse301/plugins/org.apache.lucene_1.3.1/lucene-1.3-final.jar"/>
84                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.help.appserver_3.0.0/appserver.jar"/>
85                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.forms_3.0.0/forms.jar"/>
86                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.jface.text_3.0.1/jfacetext.jar"/>
87                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.text_3.0.1/text.jar"/>
88                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.workbench.texteditor_3.0.1/texteditor.jar"/>
89                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.editors_3.0.1/editors.jar"/>
90                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.core.filebuffers_3.0.1/filebuffers.jar"/>
91                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.debug.core_3.0.1/dtcore.jar"/>
92                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.core.variables_3.0.0/variables.jar"/>
93                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.debug.ui_3.0.1/dtui.jar"/>
94                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.console_3.0.0/console.jar"/>
95                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.debug.core/bin"/>
96                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.debug.core/core.jar"/>
97                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse/bin"/>
98                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse/phpeclipse.jar"/>
99                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.search_3.0.1/search.jar"/>
100                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.compare_3.0.0/compare.jar"/>
101                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.externaltools_3.0.1/externaltools.jar"/>
102                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.quantum.sql/bin"/>
103                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.quantum.sql/quantum.jar"/>
104                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.webbrowser/bin"/>
105                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.webbrowser/webbrowser.jar"/>
106                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.core/bin"/>
107                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.core/webcore.jar"/>
108                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.ui/bin"/>
109                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.ui/ui.jar"/>
110                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.xml.core/bin"/>
111                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.xml.core/xmlcore.jar"/>
112                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.xml.ui/bin"/>
113                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.xml.ui/xmlui.jar"/>
114                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.launching/bin"/>
115                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.launching/launch.jar"/>
116                         </classpath>
117                         <src path="src/"                        />
118                         </javac>
119                 <!-- Copy necessary resources -->
120                 <copy todir="${temp.folder}/debug.jar.bin" failonerror="true">
121                         <fileset dir="src/" excludes="**/*.java, **/package.htm*"                       />
122                 </copy>
123                 <mkdir dir="${build.result.folder}"/>
124                 <jar jarfile="${build.result.folder}/debug.jar" basedir="${temp.folder}/debug.jar.bin"/>
125                 <delete dir="${temp.folder}/debug.jar.bin"/>
126         </target>
127
128         <target name="debugsrc.zip" depends="init" unless="debugsrc.zip">
129                 <mkdir dir="${build.result.folder}"/>
130                 <zip zipfile="${build.result.folder}/debugsrc.zip" filesonly="false" whenempty="skip" update="false">
131                         <fileset dir="src/" includes="**/*.java"                        />
132                 </zip>
133         </target>
134
135         <target name="build.jars" depends="init" description="Build all the jars for the plug-in: net.sourceforge.phpeclipse.debug.ui.">
136                 <available property="debug.jar" file="${build.result.folder}/debug.jar"/>
137                 <antcall target="debug.jar"/>
138         </target>
139
140         <target name="build.sources" depends="init">
141                 <available property="debugsrc.zip" file="${build.result.folder}/debugsrc.zip"/>
142                 <antcall target="debugsrc.zip"/>
143         </target>
144
145         <target name="gather.bin.parts" depends="init" if="destination.temp.folder">
146                 <mkdir dir="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.ui_1.1.1"/>
147                 <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.ui_1.1.1" failonerror="true">
148                         <fileset dir="${build.result.folder}" includes="debug.jar"                      />
149                 </copy>
150                 <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.ui_1.1.1" failonerror="true">
151                         <fileset dir="${basedir}" includes="debug.jar,plugin.properties,plugin.xml,icons/,.template"                    />
152                 </copy>
153         </target>
154
155         <target name="build.zips" depends="init">
156         </target>
157
158         <target name="gather.sources" depends="init" if="destination.temp.folder">
159                 <mkdir dir="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.ui_1.1.1"/>
160                 <copy file="${build.result.folder}/debugsrc.zip" todir="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.ui_1.1.1" failonerror="false"/>
161                 <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.ui_1.1.1" failonerror="false">
162                         <fileset dir="${basedir}" includes="src/ "                      />
163                 </copy>
164         </target>
165
166         <target name="gather.logs" depends="init" if="destination.temp.folder">
167                 <mkdir dir="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.ui_1.1.1"/>
168                 <copy file="${temp.folder}/debug.jar.bin.log" todir="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.ui_1.1.1" failonerror="false"/>
169         </target>
170
171         <target name="clean" depends="init" description="Clean the plug-in: net.sourceforge.phpeclipse.debug.ui of all the zips, jars and logs created.">
172                 <delete file="${build.result.folder}/debug.jar"/>
173                 <delete file="${build.result.folder}/debugsrc.zip"/>
174                 <delete file="${plugin.destination}/net.sourceforge.phpeclipse.debug.ui_1.1.1.jar"/>
175                 <delete file="${plugin.destination}/net.sourceforge.phpeclipse.debug.ui_1.1.1.zip"/>
176                 <delete dir="${temp.folder}"/>
177         </target>
178
179         <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
180                 <eclipse.convertPath fileSystemPath="C:/eclipse3/workspace/net.sourceforge.phpeclipse.debug.ui" property="resourcePath"/>
181                 <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
182         </target>
183
184         <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: net.sourceforge.phpeclipse.debug.ui.">
185                 <delete dir="${temp.folder}"/>
186                 <mkdir dir="${temp.folder}"/>
187                 <antcall target="build.jars"/>
188                 <antcall target="build.sources"/>
189                 <antcall target="gather.bin.parts">
190                         <param name="destination.temp.folder" value="${temp.folder}/"/>
191                 </antcall>
192                 <antcall target="gather.sources">
193                         <param name="destination.temp.folder" value="${temp.folder}/"/>
194                 </antcall>
195                 <delete>
196                         <fileset dir="${temp.folder}" includes="**/*.bin.log"                   />
197                 </delete>
198                 <zip zipfile="${plugin.destination}/net.sourceforge.phpeclipse.debug.ui_1.1.1.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
199                 <delete dir="${temp.folder}"/>
200         </target>
201
202 </project>