Cleanup dead code.
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.css.ui / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="net.sourceforge.phpeclipse.css.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.css.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.css.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.css.ui_1.1.2.jar" basedir="${temp.folder}/net.sourceforge.phpeclipse.css.ui_1.1.2" filesonly="false" whenempty="skip" update="false"/>
41                 <delete dir="${temp.folder}"/>
42         </target>
43
44         <target name="cssui.jar" depends="init" unless="cssui.jar" description="Create jar: cssui.jar.">
45                 <delete dir="${temp.folder}/cssui.jar.bin"/>
46                 <mkdir dir="${temp.folder}/cssui.jar.bin"/>
47                 <!-- compile the source code -->
48                 <javac destdir="${temp.folder}/cssui.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="${build.result.folder}/../net.sourceforge.phpeclipse.core/bin"/>
52                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.core/webcore.jar"/>
53                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.core.runtime_3.0.1/runtime.jar"/>
54                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/core.jar"/>
55                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/console.jar"/>
56                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/osgi.jar"/>
57                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/resolver.jar"/>
58                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/defaultAdaptor.jar"/>
59                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/eclipseAdaptor.jar"/>
60                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.text_3.0.1/text.jar"/>
61                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.css.core/bin"/>
62                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.css.core/csscore.jar"/>
63                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.core.resources_3.0.1/resources.jar"/>
64                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.core.resources.win32_3.0.0/resources.jar"/>
65                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.core.resources.win32_3.0.0/resources-win32.jar"/>
66                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.core.runtime.compatibility_3.0.0/compatibility.jar"/>
67                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.update.configurator_3.0.0/configurator.jar"/>
68                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.ui/bin"/>
69                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.ui/ui.jar"/>
70                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.jface.text_3.0.1/jfacetext.jar"/>
71                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.swt_3.0.1/ws/${basews}/swt.jar"/>
72                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.swt.win32_3.0.1/ws/${basews}/swt.jar"/>
73                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.swt.win32_3.0.1"/>
74                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.jface_3.0.0/jface.jar"/>
75                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui_3.0.1/ui.jar"/>
76                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.help_3.0.0/help.jar"/>
77                                 <pathelement path="../org.eclipse.ui.workbench/bin"/>
78                                 <pathelement path="../org.eclipse.ui.workbench/compatibility.jar"/>
79                                 <pathelement path="../org.eclipse.ui.workbench/workbench.jar"/>
80                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.workbench.compatibility_3.0.0/compatibility.jar"/>
81                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.workbench.compatibility_3.0.0/workbench.jar"/>
82                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.core.expressions_3.0.0/expressions.jar"/>
83                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.editors_3.0.1/editors.jar"/>
84                                 <pathelement path="../org.eclipse.ui.ide/bin"/>
85                                 <pathelement path="../org.eclipse.ui.ide/ide.jar"/>
86                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.win32_3.0.1/ide.jar"/>
87                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.win32_3.0.1/workbenchwin32.jar"/>
88                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.views_3.0.0/views.jar"/>
89                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.update.core_3.0.1/updatecore.jar"/>
90                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.update.core.win32_3.0.0/updatecore.jar"/>
91                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.update.ui_3.0.1/updateui.jar"/>
92                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.help.base_3.0.1/helpbase.jar"/>
93                                 <pathelement path="../../../eclipse301/plugins/org.apache.lucene_1.3.1/parser.jar"/>
94                                 <pathelement path="../../../eclipse301/plugins/org.apache.lucene_1.3.1/lucene-1.3-final.jar"/>
95                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.help.appserver_3.0.0/appserver.jar"/>
96                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.forms_3.0.0/forms.jar"/>
97                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.ui.workbench.texteditor_3.0.1/texteditor.jar"/>
98                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.core.filebuffers_3.0.1/filebuffers.jar"/>
99                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.webbrowser/bin"/>
100                                 <pathelement path="${build.result.folder}/../net.sourceforge.phpeclipse.webbrowser/webbrowser.jar"/>
101                                 <pathelement path="../../../eclipse301/plugins/org.eclipse.compare_3.0.0/compare.jar"/>
102                         </classpath>
103                         <src path="src/"                        />
104                         </javac>
105                 <!-- Copy necessary resources -->
106                 <copy todir="${temp.folder}/cssui.jar.bin" failonerror="true">
107                         <fileset dir="src/" excludes="**/*.java, **/package.htm*"                       />
108                 </copy>
109                 <mkdir dir="${build.result.folder}"/>
110                 <jar jarfile="${build.result.folder}/cssui.jar" basedir="${temp.folder}/cssui.jar.bin"/>
111                 <delete dir="${temp.folder}/cssui.jar.bin"/>
112         </target>
113
114         <target name="cssuisrc.zip" depends="init" unless="cssuisrc.zip">
115                 <mkdir dir="${build.result.folder}"/>
116                 <zip zipfile="${build.result.folder}/cssuisrc.zip" filesonly="false" whenempty="skip" update="false">
117                         <fileset dir="src/" includes="**/*.java"                        />
118                 </zip>
119         </target>
120
121         <target name="build.jars" depends="init" description="Build all the jars for the plug-in: net.sourceforge.phpeclipse.css.ui.">
122                 <available property="cssui.jar" file="${build.result.folder}/cssui.jar"/>
123                 <antcall target="cssui.jar"/>
124         </target>
125
126         <target name="build.sources" depends="init">
127                 <available property="cssuisrc.zip" file="${build.result.folder}/cssuisrc.zip"/>
128                 <antcall target="cssuisrc.zip"/>
129         </target>
130
131         <target name="gather.bin.parts" depends="init" if="destination.temp.folder">
132                 <mkdir dir="${destination.temp.folder}/net.sourceforge.phpeclipse.css.ui_1.1.2"/>
133                 <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.css.ui_1.1.2" failonerror="true">
134                         <fileset dir="${build.result.folder}" includes="cssui.jar" excludes="icons/.cvsignore"                  />
135                 </copy>
136                 <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.css.ui_1.1.2" failonerror="true">
137                         <fileset dir="${basedir}" includes="plugin.xml,plugin*.properties,cssui.jar,icons/,plugin.properties" excludes="icons/.cvsignore"                       />
138                 </copy>
139         </target>
140
141         <target name="build.zips" depends="init">
142         </target>
143
144         <target name="gather.sources" depends="init" if="destination.temp.folder">
145                 <mkdir dir="${destination.temp.folder}/net.sourceforge.phpeclipse.css.ui_1.1.2"/>
146                 <copy file="${build.result.folder}/cssuisrc.zip" todir="${destination.temp.folder}/net.sourceforge.phpeclipse.css.ui_1.1.2" failonerror="false"/>
147                 <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.css.ui_1.1.2" failonerror="false">
148                         <fileset dir="${basedir}" includes="src/"                       />
149                 </copy>
150         </target>
151
152         <target name="gather.logs" depends="init" if="destination.temp.folder">
153                 <mkdir dir="${destination.temp.folder}/net.sourceforge.phpeclipse.css.ui_1.1.2"/>
154                 <copy file="${temp.folder}/cssui.jar.bin.log" todir="${destination.temp.folder}/net.sourceforge.phpeclipse.css.ui_1.1.2" failonerror="false"/>
155         </target>
156
157         <target name="clean" depends="init" description="Clean the plug-in: net.sourceforge.phpeclipse.css.ui of all the zips, jars and logs created.">
158                 <delete file="${build.result.folder}/cssui.jar"/>
159                 <delete file="${build.result.folder}/cssuisrc.zip"/>
160                 <delete file="${plugin.destination}/net.sourceforge.phpeclipse.css.ui_1.1.2.jar"/>
161                 <delete file="${plugin.destination}/net.sourceforge.phpeclipse.css.ui_1.1.2.zip"/>
162                 <delete dir="${temp.folder}"/>
163         </target>
164
165         <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
166                 <eclipse.convertPath fileSystemPath="C:/eclipse3/workspace/net.sourceforge.phpeclipse.css.ui" property="resourcePath"/>
167                 <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
168         </target>
169
170         <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: net.sourceforge.phpeclipse.css.ui.">
171                 <delete dir="${temp.folder}"/>
172                 <mkdir dir="${temp.folder}"/>
173                 <antcall target="build.jars"/>
174                 <antcall target="build.sources"/>
175                 <antcall target="gather.bin.parts">
176                         <param name="destination.temp.folder" value="${temp.folder}/"/>
177                 </antcall>
178                 <antcall target="gather.sources">
179                         <param name="destination.temp.folder" value="${temp.folder}/"/>
180                 </antcall>
181                 <delete>
182                         <fileset dir="${temp.folder}" includes="**/*.bin.log"                   />
183                 </delete>
184                 <zip zipfile="${plugin.destination}/net.sourceforge.phpeclipse.css.ui_1.1.2.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
185                 <delete dir="${temp.folder}"/>
186         </target>
187
188 </project>