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