initial addition of PHPUnit main view.
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.core / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="net.sourceforge.phpeclipse.debug.core" default="build.jars" basedir=".">
3
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"/>
11
12         <target name="init" depends="properties">
13                 <property name="plugin" value="net.sourceforge.phpeclipse.debug.core"/>
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}"/>
19         </target>
20
21         <target name="properties" if="eclipse.running">
22                 <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
23         </target>
24
25         <target name="build.update.jar" depends="init" description="Build the plug-in: net.sourceforge.phpeclipse.debug.core 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}/"/>
31                 </antcall>
32                 <zip zipfile="${plugin.destination}/${full.name}.jar" basedir="${temp.folder}/${full.name}" filesonly="false" update="no"/>
33                 <delete dir="${temp.folder}"/>
34         </target>
35
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}/core.jar" todir="${destination.temp.folder}/${full.name}"/>
39         </target>
40
41         <target name="core.jar" depends="init" unless="core.jar" description="Create jar: core.jar.">
42                 <property name="destdir" value="${temp.folder}/core.jar.bin"/>
43                 <delete dir="${temp.folder}/core.jar.bin"/>
44                 <mkdir dir="${temp.folder}/core.jar.bin"/>
45                 <!-- compile the source code -->
46                 <javac destdir="${temp.folder}/core.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.ui_2.1.1/bin;../../plugins/org.eclipse.ui_2.1.1/ui.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.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;../../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">
47                         <src path="src/"/>
48                 </javac>
49                 <!-- copy necessary resources -->
50                 <copy todir="${temp.folder}/core.jar.bin">
51                         <fileset dir="src/" excludes="**/*.java"/>
52                 </copy>
53                 <mkdir dir="${build.result.folder}"/>
54                 <jar jarfile="${build.result.folder}/core.jar" basedir="${temp.folder}/core.jar.bin"/>
55                 <delete dir="${temp.folder}/core.jar.bin"/>
56         </target>
57
58         <target name="coresrc.zip" depends="init" unless="core.jar">
59                 <mkdir dir="${build.result.folder}"/>
60                 <zip zipfile="${build.result.folder}/coresrc.zip" filesonly="false" update="no">
61                         <fileset dir="src/" includes="**/*.java"/>
62                 </zip>
63         </target>
64
65         <target name="build.jars" depends="init" description="Build all the jars for the plug-in: net.sourceforge.phpeclipse.debug.core.">
66                 <available property="core.jar" file="${build.result.folder}/core.jar"/>
67                 <antcall target="core.jar"/>
68         </target>
69
70         <target name="build.sources" depends="init">
71                 <available property="coresrc.zip" file="${build.result.folder}/coresrc.zip"/>
72                 <antcall target="coresrc.zip"/>
73         </target>
74
75                 <target name="build.zips" depends="init">
76                 </target>
77
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}/coresrc.zip" todir="${destination.temp.folder}/${full.name}"/>
81         </target>
82
83         <target name="gather.logs" depends="init" if="destination.temp.folder">
84                 <mkdir dir="${destination.temp.folder}/${full.name}"/>
85                 <copy file="${temp.folder}/core.jar.bin.log" todir="${destination.temp.folder}/${full.name}"/>
86         </target>
87
88         <target name="clean" depends="init" description="Clean the plug-in: net.sourceforge.phpeclipse.debug.core of all the zips, jars and logs created.">
89                 <delete file="${build.result.folder}/core.jar"/>
90                 <delete file="${build.result.folder}/coresrc.zip"/>
91                 <delete file="${plugin.destination}/${full.name}.jar"/>
92                 <delete file="${plugin.destination}/${full.name}.zip"/>
93                 <delete dir="${temp.folder}"/>
94         </target>
95
96         <target name="refresh" depends="init" if="eclipse.running">
97                 <eclipse.convertPath fileSystemPath="C:\eclipse213\workspace\net.sourceforge.phpeclipse.debug.core\" property="resourcePath"/>
98                 <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
99         </target>
100
101         <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: net.sourceforge.phpeclipse.debug.core.">
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}/"/>
108                 </antcall>
109                 <antcall target="gather.sources">
110                         <param name="destination.temp.folder" value="${temp.folder}/"/>
111                 </antcall>
112                 <delete>
113                         <fileset dir="${temp.folder}" includes="**/*.bin.log"/>
114                 </delete>
115                 <antcall target="zip.folder"/>
116                 <delete dir="${temp.folder}"/>
117         </target>
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"/>
120         </target>
121
122 </project>