1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="net.sourceforge.phpeclipse.debug.ui" default="build.jars" basedir=".">
4 <property name="bootclasspath" value=""/>
5 <property name="ws" value="win32"/>
6 <property name="os" value="win32"/>
7 <property name="arch" value="x86"/>
8 <property name="javacFailOnError" value="false"/>
9 <property name="javacDebugInfo" value="on"/>
10 <property name="javacVerbose" value="true"/>
12 <target name="init" depends="properties">
13 <property name="plugin" value="net.sourceforge.phpeclipse.debug.ui"/>
14 <property name="version.suffix" value="_1.0.4"/>
15 <property name="full.name" value="${plugin}${version.suffix}"/>
16 <property name="temp.folder" value="${basedir}/temp.folder"/>
17 <property name="plugin.destination" value="${basedir}"/>
18 <property name="build.result.folder" value="${basedir}"/>
21 <target name="properties" if="eclipse.running">
22 <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
25 <target name="build.update.jar" depends="init" description="Build the plug-in: net.sourceforge.phpeclipse.debug.ui for an update site.">
26 <delete dir="${temp.folder}"/>
27 <mkdir dir="${temp.folder}"/>
28 <antcall target="build.jars"/>
29 <antcall target="gather.bin.parts">
30 <param name="destination.temp.folder" value="${temp.folder}/"/>
32 <zip zipfile="${plugin.destination}/${full.name}.jar" basedir="${temp.folder}/${full.name}" filesonly="false" update="no"/>
33 <delete dir="${temp.folder}"/>
36 <target name="gather.bin.parts" depends="init" if="destination.temp.folder">
37 <mkdir dir="${destination.temp.folder}/${full.name}"/>
38 <copy file="${build.result.folder}/debug.jar" todir="${destination.temp.folder}/${full.name}"/>
41 <target name="debug.jar" depends="init" unless="debug.jar" description="Create jar: debug.jar.">
42 <property name="destdir" value="${temp.folder}/debug.jar.bin"/>
43 <delete dir="${temp.folder}/debug.jar.bin"/>
44 <mkdir dir="${temp.folder}/debug.jar.bin"/>
45 <!-- compile the source code -->
46 <javac destdir="${temp.folder}/debug.jar.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bootclasspath}" classpath="../../plugins/org.eclipse.core.boot_2.1.3/bin;../../plugins/org.eclipse.core.boot_2.1.3/boot.jar;../../plugins/org.eclipse.core.runtime_2.1.1/bin;../../plugins/org.eclipse.core.runtime_2.1.1/runtime.jar;../../plugins/org.apache.xerces_4.0.13/bin;../../plugins/org.apache.xerces_4.0.13/xmlParserAPIs.jar;../../plugins/org.apache.xerces_4.0.13/xercesImpl.jar;../../plugins/org.eclipse.core.resources_2.1.1/bin;../../plugins/org.eclipse.core.resources_2.1.1/resources.jar;../../plugins/org.eclipse.core.resources.win32_2.1.0/resources.jar;../../plugins/org.eclipse.ui_2.1.1/bin;../../plugins/org.eclipse.ui_2.1.1/ui.jar;../../plugins/org.eclipse.update.core_2.1.0/bin;../../plugins/org.eclipse.update.core_2.1.0/updatecore.jar;../../plugins/org.eclipse.update.core.win32_2.1.0/updatecore.jar;../../plugins/org.eclipse.help_2.1.2/bin;../../plugins/org.eclipse.help_2.1.2/help.jar;../../plugins/org.apache.lucene_1.2.1/bin;../../plugins/org.apache.lucene_1.2.1/parser.jar;../../plugins/org.apache.lucene_1.2.1/lucene-1.2.jar;../../plugins/org.eclipse.help.appserver_2.1.0/bin;../../plugins/org.eclipse.help.appserver_2.1.0/appserver.jar;../../plugins/org.eclipse.swt_2.1.3/bin;../../plugins/org.eclipse.swt_2.1.3/ws/${ws}/swt.jar;../../plugins/org.eclipse.swt.win32_2.1.2/ws/${ws}/swt.jar;../../plugins/org.eclipse.text_2.1.0/bin;../../plugins/org.eclipse.text_2.1.0/text.jar;../../plugins/org.eclipse.jface_2.1.1/bin;../../plugins/org.eclipse.jface_2.1.1/jface.jar;../../plugins/org.eclipse.jface.text_2.1.0/bin;../../plugins/org.eclipse.jface.text_2.1.0/jfacetext.jar;../../plugins/org.eclipse.ui.views_2.1.0/bin;../../plugins/org.eclipse.ui.views_2.1.0/views.jar;../../plugins/org.eclipse.ui.workbench_2.1.1/bin;../../plugins/org.eclipse.ui.workbench_2.1.1/workbench.jar;../../plugins/org.eclipse.ui.win32_2.1.0/workbench.jar;../../plugins/org.eclipse.ui.win32_2.1.0/bin;../../plugins/org.eclipse.ui.win32_2.1.0/workbenchwin32.jar;../../plugins/org.eclipse.ui.workbench.texteditor_2.1.0/bin;../../plugins/org.eclipse.ui.workbench.texteditor_2.1.0/texteditor.jar;../../plugins/org.eclipse.ui.editors_2.1.0/bin;../../plugins/org.eclipse.ui.editors_2.1.0/editors.jar;../../plugins/org.eclipse.debug.core_2.1.2/bin;../../plugins/org.eclipse.debug.core_2.1.2/dtcore.jar;../../plugins/org.eclipse.debug.ui_2.1.2.1/bin;../../plugins/org.eclipse.debug.ui_2.1.2.1/dtui.jar;../net.sourceforge.phpeclipse.debug.core/bin;../net.sourceforge.phpeclipse.debug.core/core.jar;../../plugins/org.junit_3.8.1/bin;../../plugins/org.junit_3.8.1/junit.jar;../net.sourceforge.phpeclipse213/bin;../net.sourceforge.phpeclipse213/phpeclipse.jar;../../plugins/org.eclipse.ui.externaltools_2.1.1/bin;../../plugins/org.eclipse.ui.externaltools_2.1.1/externaltools.jar;../../plugins/org.apache.ant_1.5.3/bin;../../plugins/org.apache.ant_1.5.3/ant.jar;../../plugins/org.apache.ant_1.5.3/optional.jar;../../plugins/org.eclipse.ant.core_2.1.3/bin;../../plugins/org.eclipse.ant.core_2.1.3/antsupport.jar;../../plugins/org.eclipse.search_2.1.1/bin;../../plugins/org.eclipse.search_2.1.1/search.jar;../../plugins/org.eclipse.update.ui_2.1.2/bin;../../plugins/org.eclipse.update.ui_2.1.2/updateui.jar;../../plugins/org.eclipse.update.ui.win32_2.1.0/updateui.jar;../../plugins/org.eclipse.update.ui.win32_2.1.0/bin;../../plugins/org.eclipse.update.ui.win32_2.1.0/updateui32.jar;../../plugins/org.eclipse.update.ui.forms_2.1.0/bin;../../plugins/org.eclipse.update.ui.forms_2.1.0/forms.jar;../net.sourceforge.phpeclipse.launching/bin;../net.sourceforge.phpeclipse.launching/launch.jar">
49 <!-- copy necessary resources -->
50 <copy todir="${temp.folder}/debug.jar.bin">
51 <fileset dir="src/" excludes="**/*.java"/>
53 <mkdir dir="${build.result.folder}"/>
54 <jar jarfile="${build.result.folder}/debug.jar" basedir="${temp.folder}/debug.jar.bin"/>
55 <delete dir="${temp.folder}/debug.jar.bin"/>
58 <target name="debugsrc.zip" depends="init" unless="debug.jar">
59 <mkdir dir="${build.result.folder}"/>
60 <zip zipfile="${build.result.folder}/debugsrc.zip" filesonly="false" update="no">
61 <fileset dir="src/" includes="**/*.java"/>
65 <target name="build.jars" depends="init" description="Build all the jars for the plug-in: net.sourceforge.phpeclipse.debug.ui.">
66 <available property="debug.jar" file="${build.result.folder}/debug.jar"/>
67 <antcall target="debug.jar"/>
70 <target name="build.sources" depends="init">
71 <available property="debugsrc.zip" file="${build.result.folder}/debugsrc.zip"/>
72 <antcall target="debugsrc.zip"/>
75 <target name="build.zips" depends="init">
78 <target name="gather.sources" depends="init" if="destination.temp.folder">
79 <mkdir dir="${destination.temp.folder}/${full.name}"/>
80 <copy file="${build.result.folder}/debugsrc.zip" todir="${destination.temp.folder}/${full.name}"/>
83 <target name="gather.logs" depends="init" if="destination.temp.folder">
84 <mkdir dir="${destination.temp.folder}/${full.name}"/>
85 <copy file="${temp.folder}/debug.jar.bin.log" todir="${destination.temp.folder}/${full.name}"/>
88 <target name="clean" depends="init" description="Clean the plug-in: net.sourceforge.phpeclipse.debug.ui of all the zips, jars and logs created.">
89 <delete file="${build.result.folder}/debug.jar"/>
90 <delete file="${build.result.folder}/debugsrc.zip"/>
91 <delete file="${plugin.destination}/${full.name}.jar"/>
92 <delete file="${plugin.destination}/${full.name}.zip"/>
93 <delete dir="${temp.folder}"/>
96 <target name="refresh" depends="init" if="eclipse.running">
97 <eclipse.convertPath fileSystemPath="C:\eclipse213\workspace\net.sourceforge.phpeclipse.debug.ui\" property="resourcePath"/>
98 <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
101 <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: net.sourceforge.phpeclipse.debug.ui.">
102 <delete dir="${temp.folder}"/>
103 <mkdir dir="${temp.folder}"/>
104 <antcall target="build.jars"/>
105 <antcall target="build.sources"/>
106 <antcall target="gather.bin.parts">
107 <param name="destination.temp.folder" value="${temp.folder}/"/>
109 <antcall target="gather.sources">
110 <param name="destination.temp.folder" value="${temp.folder}/"/>
113 <fileset dir="${temp.folder}" includes="**/*.bin.log"/>
115 <antcall target="zip.folder"/>
116 <delete dir="${temp.folder}"/>
118 <target name="zip.folder" depends="init">
119 <zip zipfile="${plugin.destination}/${full.name}.zip" basedir="${temp.folder}" filesonly="true" update="no" excludes="**/*.bin.log"/>