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.css.core" target="${target}">
14 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.js.core" target="${target}">
16 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.xml.core" target="${target}">
18 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.phpunit" target="${target}">
20 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.quantum.sql" target="${target}">
22 <ant antfile="build.xml" dir="../net.sf.eclipsetidy" target="${target}">
24 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.webbrowser" target="${target}">
26 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.news" target="${target}">
28 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.ui" target="${target}">
30 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.css.ui" target="${target}">
32 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.xml.ui" target="${target}">
34 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.js.ui" target="${target}">
36 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.html.ui" target="${target}">
38 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.smarty.ui" target="${target}">
40 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse" target="${target}">
42 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.phphelp" target="${target}">
44 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.debug.core" target="${target}">
46 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.launching" target="${target}">
48 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.debug.ui" target="${target}">
51 <target name="all.features" depends="init">
53 <target name="update.feature" depends="init">
56 <target name="all.children" depends="init,all.features,all.plugins,update.feature">
59 <target name="children" if="include.children">
60 <antcall target="all.children"/>
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"/>
69 <target name="build.sources" depends="init">
70 <antcall target="all.children">
71 <param name="target" value="build.sources"/>
75 <target name="build.zips" depends="init">
76 <antcall target="all.children">
77 <param name="target" value="build.zips"/>
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"/>
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}"/>
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}"/>
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"/>
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" />
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}"/>
110 <target name="rootFiles*_*_*">
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="*"/>
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}"/>
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"/>
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}"/>
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"/>
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}"/>
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"/>
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"/>
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"/>
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"/>