blob: 3e5e8911dcaddbee50139e3087647e85f47f7cf7 [file] [log] [blame]
kchan63d17902006-05-17 23:58:01 +00001<?xml version="1.0" encoding="UTF-8"?>
2<project name="org.apache.jakarta_log4j.feature" 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="../org.apache.jakarta_log4j" target="${target}">
11 </ant>
12 </target>
13 <target name="all.features" depends="init">
14 </target>
15 <target name="update.feature" depends="init">
16 </target>
17
18 <target name="all.children" depends="init,all.features,all.plugins,update.feature">
19 </target>
20
21 <target name="children" if="include.children">
22 <antcall target="all.children"/>
23 </target>
24
25 <target name="build.jars" depends="init" description="Build all the jars for the feature: org.apache.jakarta_log4j.feature.">
26 <antcall target="all.children">
27 <param name="target" value="build.jars"/>
28 </antcall>
29 </target>
30
31 <target name="build.sources" depends="init">
32 <antcall target="all.children">
33 <param name="target" value="build.sources"/>
34 </antcall>
35 </target>
36
37 <target name="build.zips" depends="init">
38 <antcall target="all.children">
39 <param name="target" value="build.zips"/>
40 </antcall>
41 </target>
42
43 <target name="build.update.jar" depends="init" description="Build the feature jar of: org.apache.jakarta_log4j.feature for an update site.">
44 <antcall target="all.children">
45 <param name="target" value="build.update.jar"/>
46 </antcall>
47 <property name="feature.base" value="${feature.temp.folder}"/>
48 <delete dir="${feature.temp.folder}"/>
49 <mkdir dir="${feature.temp.folder}"/>
50 <antcall target="gather.bin.parts" inheritAll="false">
51 <param name="arch" value="*"/>
52 <param name="ws" value="*"/>
53 <param name="nl" value="*"/>
54 <param name="os" value="*"/>
55 <param name="feature.base" value="${feature.temp.folder}"/>
56 </antcall>
57 <jar destfile="${feature.destination}/org.apache.jakarta_log4j.feature_1.2.8.200605171938.jar" basedir="${feature.temp.folder}/features/org.apache.jakarta_log4j.feature_1.2.8.200605171938"/>
58 <delete dir="${feature.temp.folder}"/>
59 </target>
60
61 <target name="gather.bin.parts" depends="init" if="feature.base">
62 <mkdir dir="${feature.base}/features/org.apache.jakarta_log4j.feature_1.2.8.200605171938"/>
63 <antcall target="children">
64 <param name="destination.temp.folder" value="${feature.base}/plugins"/>
65 <param name="target" value="gather.bin.parts"/>
66 </antcall>
67 <copy todir="${feature.base}/features/org.apache.jakarta_log4j.feature_1.2.8.200605171938" failonerror="true" overwrite="false">
68 <fileset dir="${basedir}" includes="feature.xml" />
69 </copy>
70 <eclipse.idReplacer featureFilePath="${feature.base}/features/org.apache.jakarta_log4j.feature_1.2.8.200605171938/feature.xml" selfVersion="1.2.8.200605171938" featureIds="" pluginIds="org.apache.jakarta_log4j,1.2.8.200605171938,"/>
71 <antcall target="rootFiles${os}_${ws}_${arch}"/>
72 </target>
73 <target name="rootFiles*_*_*">
74 </target>
75 <target name="rootFilesgroup_group_group">
76 <antcall target="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: org.apache.jakarta_log4j.feature.">
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 destfile="${feature.destination}/org.apache.jakarta_log4j.feature_1.2.8.200605171938.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/org.apache.jakarta_log4j.feature.source_1.2.8.200605171938/src"/>
99 <param name="include.children" value="true"/>
100 <param name="target" value="gather.sources"/>
101 </antcall>
102 <zip destfile="${feature.destination}/org.apache.jakarta_log4j.feature_1.2.8.200605171938.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 destfile="${feature.destination}/org.apache.jakarta_log4j.feature_1.2.8.200605171938.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: org.apache.jakarta_log4j.feature of all the zips, jars and logs created.">
119 <delete file="${feature.destination}/org.apache.jakarta_log4j.feature_1.2.8.200605171938.jar"/>
120 <delete file="${feature.destination}/org.apache.jakarta_log4j.feature_1.2.8.200605171938.bin.dist.zip"/>
121 <delete file="${feature.destination}/org.apache.jakarta_log4j.feature_1.2.8.200605171938.log.zip"/>
122 <delete file="${feature.destination}/org.apache.jakarta_log4j.feature_1.2.8.200605171938.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="D:/eclipse32RC3/eclipse/workspace_selfhostdev/org.apache.jakarta_log4j.feature/" 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/org.apache.jakarta_log4j.feature.source_1.2.8.200605171938/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>