New (Quantum SQL) wizard module which extends Quantum context menus (Bookmark-Tables...
[phpeclipse.git] / net.sourceforge.phpeclipse.feature / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="net.sourceforge.phpeclipse" default="build.update.jar" basedir=".">
3
4         <target name="init">
5                 <property name="feature.temp.folder" value="${basedir}/feature.temp.folder"/>
6                 <property name="feature.destination" value="${basedir}"/>
7         </target>
8
9         <target name="all.plugins" depends="init">
10                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.core" target="${target}">
11                 </ant>
12                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.xml.core" target="${target}">
13                 </ant>
14                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.monitor.core" target="${target}">
15                 </ant>
16                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.css.core" target="${target}">
17                 </ant>
18                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.js.core" target="${target}">
19                 </ant>
20                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.monitor.ui" target="${target}">
21                 </ant>
22                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.webbrowser" target="${target}">
23                 </ant>
24                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.phpunit" target="${target}">
25                 </ant>
26                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.quantum.sql" target="${target}">
27                 </ant>
28                 <ant antfile="build.xml" dir="../net.sf.eclipsetidy" target="${target}">
29                 </ant>
30                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.ui" target="${target}">
31                 </ant>
32                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.news" target="${target}">
33                 </ant>
34                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.css.ui" target="${target}">
35                 </ant>
36                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.xml.ui" target="${target}">
37                 </ant>
38                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.js.ui" target="${target}">
39                 </ant>
40                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.html.ui" target="${target}">
41                 </ant>
42                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.smarty.ui" target="${target}">
43                 </ant>
44                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse" target="${target}">
45                 </ant>
46                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.debug.core" target="${target}">
47                 </ant>
48                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.phphelp" target="${target}">
49                 </ant>
50                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.launching" target="${target}">
51                 </ant>
52                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.debug.ui" target="${target}">
53                 </ant>
54         </target>
55         <target name="all.features" depends="init">
56         </target>
57         <target name="update.feature" depends="init">
58         </target>
59
60         <target name="all.children" depends="init,all.features,all.plugins,update.feature">
61         </target>
62
63         <target name="children" if="include.children">
64                 <antcall target="all.children"/>
65         </target>
66
67         <target name="build.jars" depends="init" description="Build all the jars for the feature: net.sourceforge.phpeclipse.">
68                 <antcall target="all.children">
69                         <param name="target" value="build.jars"/>
70                 </antcall>
71         </target>
72
73         <target name="build.sources" depends="init">
74                 <antcall target="all.children">
75                         <param name="target" value="build.sources"/>
76                 </antcall>
77         </target>
78
79         <target name="build.zips" depends="init">
80                 <antcall target="all.children">
81                         <param name="target" value="build.zips"/>
82                 </antcall>
83         </target>
84
85         <target name="build.update.jar" depends="init" description="Build the feature jar of: net.sourceforge.phpeclipse for an update site.">
86                 <antcall target="all.children">
87                         <param name="target" value="build.update.jar"/>
88                 </antcall>
89                 <property name="feature.base" value="${feature.temp.folder}"/>
90                 <delete dir="${feature.temp.folder}"/>
91                 <mkdir dir="${feature.temp.folder}"/>
92                 <antcall target="gather.bin.parts" inheritAll="false">
93                         <param name="arch" value="*"/>
94                         <param name="ws" value="*"/>
95                         <param name="nl" value="*"/>
96                         <param name="os" value="*"/>
97                         <param name="feature.base" value="${feature.temp.folder}"/>
98                 </antcall>
99                 <jar jarfile="${feature.destination}/net.sourceforge.phpeclipse_1.1.2.jar" basedir="${feature.temp.folder}/features/net.sourceforge.phpeclipse_1.1.2"/>
100                 <delete dir="${feature.temp.folder}"/>
101         </target>
102
103         <target name="gather.bin.parts" depends="init" if="feature.base">
104                 <antcall target="children">
105                         <param name="destination.temp.folder" value="${feature.base}/plugins"/>
106                         <param name="target" value="gather.bin.parts"/>
107                 </antcall>
108                 <copy todir="${feature.base}/features/net.sourceforge.phpeclipse_1.1.2" failonerror="true">
109                         <fileset dir="${basedir}" includes="feature.xml,phpeclipse.jpeg,license.html,cpl-v10.html"                      />
110                 </copy>
111                 <eclipse.idReplacer featureFilePath="${feature.base}/features/net.sourceforge.phpeclipse_1.1.2/feature.xml"  selfVersion="1.1.2" featureIds="" pluginIds="net.sourceforge.phpdt.smarty.ui,1.1.2,net.sourceforge.phpeclipse,1.1.2,net.sourceforge.phpeclipse.core,1.1.2,net.sourceforge.phpeclipse.css.core,1.1.2,net.sourceforge.phpeclipse.css.ui,1.1.2,net.sourceforge.phpeclipse.debug.core,1.1.2,net.sourceforge.phpeclipse.debug.ui,1.1.2,net.sourceforge.phpeclipse.html.ui,1.1.2,net.sourceforge.phpeclipse.js.core,1.1.2,net.sourceforge.phpeclipse.js.ui,1.1.2,net.sourceforge.phpeclipse.launching,1.1.2,net.sourceforge.phpeclipse.phphelp,1.1.2,net.sourceforge.phpeclipse.phpunit,1.1.2,net.sourceforge.phpeclipse.quantum.sql,2.4.4,net.sourceforge.phpeclipse.ui,1.1.2,net.sourceforge.phpeclipse.webbrowser,1.1.2,net.sourceforge.phpeclipse.xml.core,1.1.2,net.sourceforge.phpeclipse.xml.ui,1.1.2,net.sourceforge.phpeclipse.news,1.1.2,net.sourceforge.phpeclipse.monitor.core,1.1.2,net.sourceforge.phpeclipse.monitor.ui,1.1.2,net.sf.eclipsetidy,1.2.1,"/>
112                 <antcall target="rootFiles${os}_${ws}_${arch}"/>
113         </target>
114         <target name="rootFiles*_*_*">
115         </target>
116
117         <target name="zip.distribution" depends="init" description="Create a zip containing all the plug-ins and features for the feature: net.sourceforge.phpeclipse.">
118                 <delete dir="${feature.temp.folder}"/>
119                 <mkdir dir="${feature.temp.folder}"/>
120                 <antcall target="gather.bin.parts">
121                         <param name="arch" value="*"/>
122                         <param name="ws" value="*"/>
123                         <param name="nl" value="*"/>
124                         <param name="include.children" value="true"/>
125                         <param name="feature.base" value="${feature.temp.folder}"/>
126                         <param name="os" value="*"/>
127                 </antcall>
128                 <zip zipfile="${feature.destination}/net.sourceforge.phpeclipse_1.1.2.bin.dist.zip" basedir="${feature.temp.folder}" filesonly="false" whenempty="skip" update="false"/>
129                 <delete dir="${feature.temp.folder}"/>
130         </target>
131
132         <target name="zip.sources" depends="init">
133                 <delete dir="${feature.temp.folder}"/>
134                 <mkdir dir="${feature.temp.folder}"/>
135                 <antcall target="all.children">
136                         <param name="destination.temp.folder" value="${feature.temp.folder}/plugins/net.sourceforge.phpeclipse.source_1.1.2/src"/>
137                         <param name="include.children" value="true"/>
138                         <param name="target" value="gather.sources"/>
139                 </antcall>
140                 <zip zipfile="${feature.destination}/net.sourceforge.phpeclipse_1.1.2.src.zip" basedir="${feature.temp.folder}" filesonly="true" whenempty="skip" update="false"/>
141                 <delete dir="${feature.temp.folder}"/>
142         </target>
143
144         <target name="zip.logs" depends="init">
145                 <delete dir="${feature.temp.folder}"/>
146                 <mkdir dir="${feature.temp.folder}"/>
147                 <antcall target="all.children" inheritAll="false">
148                         <param name="destination.temp.folder" value="${feature.temp.folder}/plugins"/>
149                         <param name="include.children" value="true"/>
150                         <param name="target" value="gather.logs"/>
151                 </antcall>
152                 <zip zipfile="${feature.destination}/net.sourceforge.phpeclipse_1.1.2.log.zip" basedir="${feature.temp.folder}" filesonly="true" whenempty="skip" update="false"/>
153                 <delete dir="${feature.temp.folder}"/>
154         </target>
155
156         <target name="clean" depends="init" description="Clean the feature: net.sourceforge.phpeclipse of all the zips, jars and logs created.">
157                 <delete file="${feature.destination}/net.sourceforge.phpeclipse_1.1.2.jar"/>
158                 <delete file="${feature.destination}/net.sourceforge.phpeclipse_1.1.2.bin.dist.zip"/>
159                 <delete file="${feature.destination}/net.sourceforge.phpeclipse_1.1.2.log.zip"/>
160                 <delete file="${feature.destination}/net.sourceforge.phpeclipse_1.1.2.src.zip"/>
161                 <delete dir="${feature.temp.folder}"/>
162                 <antcall target="all.children">
163                         <param name="target" value="clean"/>
164                 </antcall>
165         </target>
166
167         <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
168                 <eclipse.convertPath fileSystemPath="C:/eclipse3/workspace/net.sourceforge.phpeclipse.feature/" property="resourcePath"/>
169                 <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
170                 <antcall target="all.children">
171                         <param name="target" value="refresh"/>
172                 </antcall>
173         </target>
174         <target name="gather.sources">
175                 <antcall target="children">
176                         <param name="destination.temp.folder" value="${feature.temp.folder}/plugins/net.sourceforge.phpeclipse.source_1.1.2/src"/>
177                         <param name="target" value="gather.sources"/>
178                 </antcall>
179         </target>
180
181         <target name="gather.logs" depends="init">
182                 <mkdir dir="${feature.temp.folder}"/>
183                 <antcall target="all.children" inheritAll="false">
184                         <param name="destination.temp.folder" value="${feature.temp.folder}/plugins"/>
185                         <param name="target" value="gather.logs"/>
186                 </antcall>
187         </target>
188
189 </project>