1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="net.sourceforge.phpeclipse.core" 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.webbrowser" target="${target}">
12 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.news" target="${target}">
14 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.wiki" target="${target}">
17 <target name="all.features" depends="init">
19 <target name="update.feature" depends="init">
22 <target name="all.children" depends="init,all.features,all.plugins,update.feature">
25 <target name="children" if="include.children">
26 <antcall target="all.children"/>
29 <target name="build.jars" depends="init" description="Build all the jars for the feature: net.sourceforge.phpeclipse.core.">
30 <antcall target="all.children">
31 <param name="target" value="build.jars"/>
35 <target name="build.sources" depends="init">
36 <antcall target="all.children">
37 <param name="target" value="build.sources"/>
41 <target name="build.zips" depends="init">
42 <antcall target="all.children">
43 <param name="target" value="build.zips"/>
47 <target name="build.update.jar" depends="init" description="Build the feature jar of: net.sourceforge.phpeclipse.core for an update site.">
48 <antcall target="all.children">
49 <param name="target" value="build.update.jar"/>
51 <property name="feature.base" value="${feature.temp.folder}"/>
52 <delete dir="${feature.temp.folder}"/>
53 <mkdir dir="${feature.temp.folder}"/>
54 <antcall target="gather.bin.parts" inheritAll="false">
55 <param name="arch" value="*"/>
56 <param name="ws" value="*"/>
57 <param name="nl" value="*"/>
58 <param name="os" value="*"/>
59 <param name="feature.base" value="${feature.temp.folder}"/>
61 <jar jarfile="${feature.destination}/net.sourceforge.phpeclipse.core_1.1.2.jar" basedir="${feature.temp.folder}/features/net.sourceforge.phpeclipse.core_1.1.2"/>
62 <delete dir="${feature.temp.folder}"/>
65 <target name="gather.bin.parts" depends="init" if="feature.base">
66 <antcall target="children">
67 <param name="destination.temp.folder" value="${feature.base}/plugins"/>
68 <param name="target" value="gather.bin.parts"/>
70 <copy todir="${feature.base}/features/net.sourceforge.phpeclipse.core_1.1.2" failonerror="true">
71 <fileset dir="${basedir}" includes="feature.xml,phpeclipse.jpeg,license.html,cpl-v10.html" />
73 <eclipse.idReplacer featureFilePath="${feature.base}/features/net.sourceforge.phpeclipse.core_1.1.2/feature.xml" selfVersion="1.1.2" featureIds="" pluginIds="net.sourceforge.phpeclipse.webbrowser,1.1.2,net.sourceforge.phpeclipse.news,1.1.2,net.sourceforge.phpeclipse.wiki,1.1.2,"/>
74 <antcall target="rootFiles${os}_${ws}_${arch}"/>
76 <target name="rootFiles*_*_*">
79 <target name="zip.distribution" depends="init" description="Create a zip containing all the plug-ins and features for the feature: net.sourceforge.phpeclipse.core.">
80 <delete dir="${feature.temp.folder}"/>
81 <mkdir dir="${feature.temp.folder}"/>
82 <antcall target="gather.bin.parts">
83 <param name="arch" value="*"/>
84 <param name="ws" value="*"/>
85 <param name="nl" value="*"/>
86 <param name="include.children" value="true"/>
87 <param name="feature.base" value="${feature.temp.folder}"/>
88 <param name="os" value="*"/>
90 <zip zipfile="${feature.destination}/net.sourceforge.phpeclipse.core_1.1.2.bin.dist.zip" basedir="${feature.temp.folder}" filesonly="false" whenempty="skip" update="false"/>
91 <delete dir="${feature.temp.folder}"/>
94 <target name="zip.sources" depends="init">
95 <delete dir="${feature.temp.folder}"/>
96 <mkdir dir="${feature.temp.folder}"/>
97 <antcall target="all.children">
98 <param name="destination.temp.folder" value="${feature.temp.folder}/plugins/net.sourceforge.phpeclipse.core.source_1.1.2/src"/>
99 <param name="include.children" value="true"/>
100 <param name="target" value="gather.sources"/>
102 <zip zipfile="${feature.destination}/net.sourceforge.phpeclipse.core_1.1.2.src.zip" basedir="${feature.temp.folder}" filesonly="true" whenempty="skip" update="false"/>
103 <delete dir="${feature.temp.folder}"/>
106 <target name="zip.logs" depends="init">
107 <delete dir="${feature.temp.folder}"/>
108 <mkdir dir="${feature.temp.folder}"/>
109 <antcall target="all.children" inheritAll="false">
110 <param name="destination.temp.folder" value="${feature.temp.folder}/plugins"/>
111 <param name="include.children" value="true"/>
112 <param name="target" value="gather.logs"/>
114 <zip zipfile="${feature.destination}/net.sourceforge.phpeclipse.core_1.1.2.log.zip" basedir="${feature.temp.folder}" filesonly="true" whenempty="skip" update="false"/>
115 <delete dir="${feature.temp.folder}"/>
118 <target name="clean" depends="init" description="Clean the feature: net.sourceforge.phpeclipse.core of all the zips, jars and logs created.">
119 <delete file="${feature.destination}/net.sourceforge.phpeclipse.core_1.1.2.jar"/>
120 <delete file="${feature.destination}/net.sourceforge.phpeclipse.core_1.1.2.bin.dist.zip"/>
121 <delete file="${feature.destination}/net.sourceforge.phpeclipse.core_1.1.2.log.zip"/>
122 <delete file="${feature.destination}/net.sourceforge.phpeclipse.core_1.1.2.src.zip"/>
123 <delete dir="${feature.temp.folder}"/>
124 <antcall target="all.children">
125 <param name="target" value="clean"/>
129 <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
130 <eclipse.convertPath fileSystemPath="C:/eclipse3/workspace/net.sourceforge.phpeclipse.feature.core/" property="resourcePath"/>
131 <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
132 <antcall target="all.children">
133 <param name="target" value="refresh"/>
136 <target name="gather.sources">
137 <antcall target="children">
138 <param name="destination.temp.folder" value="${feature.temp.folder}/plugins/net.sourceforge.phpeclipse.core.source_1.1.2/src"/>
139 <param name="target" value="gather.sources"/>
143 <target name="gather.logs" depends="init">
144 <mkdir dir="${feature.temp.folder}"/>
145 <antcall target="all.children" inheritAll="false">
146 <param name="destination.temp.folder" value="${feature.temp.folder}/plugins"/>
147 <param name="target" value="gather.logs"/>