changed admin name for phpeclipse.de
[phpeclipse.git] / net.sourceforge.phpeclipse.feature.core / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="net.sourceforge.phpeclipse.core" 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.webbrowser" target="${target}">
11                 </ant>
12                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.news" target="${target}">
13                 </ant>
14                 <ant antfile="build.xml" dir="../net.sourceforge.phpeclipse.wiki" target="${target}">
15                 </ant>
16         </target>
17         <target name="all.features" depends="init">
18         </target>
19         <target name="update.feature" depends="init">
20         </target>
21
22         <target name="all.children" depends="init,all.features,all.plugins,update.feature">
23         </target>
24
25         <target name="children" if="include.children">
26                 <antcall target="all.children"/>
27         </target>
28
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"/>
32                 </antcall>
33         </target>
34
35         <target name="build.sources" depends="init">
36                 <antcall target="all.children">
37                         <param name="target" value="build.sources"/>
38                 </antcall>
39         </target>
40
41         <target name="build.zips" depends="init">
42                 <antcall target="all.children">
43                         <param name="target" value="build.zips"/>
44                 </antcall>
45         </target>
46
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"/>
50                 </antcall>
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}"/>
60                 </antcall>
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}"/>
63         </target>
64
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"/>
69                 </antcall>
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"                      />
72                 </copy>
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}"/>
75         </target>
76         <target name="rootFiles*_*_*">
77         </target>
78
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="*"/>
89                 </antcall>
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}"/>
92         </target>
93
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"/>
101                 </antcall>
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}"/>
104         </target>
105
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"/>
113                 </antcall>
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}"/>
116         </target>
117
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"/>
126                 </antcall>
127         </target>
128
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"/>
134                 </antcall>
135         </target>
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"/>
140                 </antcall>
141         </target>
142
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"/>
148                 </antcall>
149         </target>
150
151 </project>