1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="net.sourceforge.phpeclipse" default="build.update.jar" basedir=".">
5 <property name="feature.temp.folder" value="${basedir}/feature.temp.folder"/>
6 <property name="feature.destination" value="${basedir}"/>
9 <target name="all.plugins" depends="init">
10 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.core" target="${target}">
12 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.xml.core" target="${target}">
14 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.monitor.core" target="${target}">
16 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.css.core" target="${target}">
18 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.js.core" target="${target}">
20 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.monitor.ui" target="${target}">
22 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.webbrowser" target="${target}">
24 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.phpunit" target="${target}">
26 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.quantum.sql" target="${target}">
28 <ant antfile="build.xml" dir="../net.sf.eclipsetidy" target="${target}">
30 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.ui" target="${target}">
32 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.news" target="${target}">
34 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.css.ui" target="${target}">
36 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.xml.ui" target="${target}">
38 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.js.ui" target="${target}">
40 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.html.ui" target="${target}">
42 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.smarty.ui" target="${target}">
44 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse" target="${target}">
46 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.debug.core" target="${target}">
48 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.phphelp" target="${target}">
50 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.launching" target="${target}">
52 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.debug.ui" target="${target}">
55 <target name="all.features" depends="init">
57 <target name="update.feature" depends="init">
60 <target name="all.children" depends="init,all.features,all.plugins,update.feature">
63 <target name="children" if="include.children">
64 <antcall target="all.children"/>
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"/>
73 <target name="build.sources" depends="init">
74 <antcall target="all.children">
75 <param name="target" value="build.sources"/>
79 <target name="build.zips" depends="init">
80 <antcall target="all.children">
81 <param name="target" value="build.zips"/>
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"/>
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}"/>
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}"/>
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"/>
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" />
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}"/>
114 <target name="rootFiles*_*_*">
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="*"/>
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}"/>
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"/>
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}"/>
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"/>
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}"/>
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"/>
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"/>
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"/>
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"/>