blob: 1821aaee3f3d67a2bff8b53210bba312cfdd4ebb [file] [log] [blame]
Stephan Herrmann7b7062f2010-04-01 19:56:59 +00001<?xml version="1.0" encoding="UTF-8"?>
Stephan Herrmann8f4b3212010-05-22 16:38:56 +00002
Stephan Herrmann7b7062f2010-04-01 19:56:59 +00003 <!--
4 Copyright (c) 2007, 2009 IBM Corporation and others.
5 All rights reserved. This program and the accompanying materials
6 are made available under the terms of the Eclipse Public License v1.0
7 which accompanies this distribution, and is available at
8 http://www.eclipse.org/legal/epl-v10.html
9
10 Contributors:
11 IBM Corporation - initial API and implementation
12 -->
13
14<!-- build script to create a plugin from ${plugin} -->
15<project name="${plugin}" default="export plug-in [_3.6.0]" basedir="..">
16<target name="export plug-in [_3.6.0]">
17 <tstamp/>
18 <property name="qualifier" value="z${DSTAMP}-${TSTAMP}" />
19 <antcall target="zz_internal_export">
20 <param name="jdt_core_version" value="3.6.0"/>
21 </antcall>
22</target>
23<target name="export plug-in [_3.6.0.qualifier] (binary only)">
24 <tstamp/>
25 <property name="qualifier" value="z${DSTAMP}-${TSTAMP}" />
26 <antcall target="zz_internal_export_binary_only">
27 <param name="jdt_core_version" value="3.6.0.${qualifier}"/>
28 </antcall>
29</target>
30<target name="export plug-in [_3.6.0.qualifier] (with sources)">
31 <tstamp/>
32 <property name="qualifier" value="z${DSTAMP}-${TSTAMP}" />
33 <antcall target="zz_internal_export">
34 <param name="jdt_core_version" value="3.6.0.${qualifier}"/>
35 </antcall>
36</target>
37<target name="export plug-in [_3.5.0]">
38 <tstamp/>
39 <property name="qualifier" value="z${DSTAMP}-${TSTAMP}" />
40 <antcall target="zz_internal_export">
41 <param name="jdt_core_version" value="3.5.0"/>
42 </antcall>
43</target>
44<target name="export plug-in [_3.5.0.qualifier] (binary only)">
45 <tstamp/>
46 <property name="qualifier" value="z${DSTAMP}-${TSTAMP}" />
47 <antcall target="zz_internal_export_binary_only">
48 <param name="jdt_core_version" value="3.5.0.${qualifier}"/>
49 </antcall>
50</target>
51<target name="export plug-in [_3.5.0.qualifier] (with sources)">
52 <tstamp/>
53 <property name="qualifier" value="z${DSTAMP}-${TSTAMP}" />
54 <antcall target="zz_internal_export">
55 <param name="jdt_core_version" value="3.5.0.${qualifier}"/>
56 </antcall>
57</target>
58 <target name="export plug-in [_3.4.0]">
59 <tstamp/>
60 <property name="qualifier" value="z${DSTAMP}-${TSTAMP}" />
61 <antcall target="zz_internal_export">
62 <param name="jdt_core_version" value="3.4.0"/>
63 </antcall>
64 </target>
65<target name="export plug-in [_3.3.0]">
66 <tstamp/>
67 <property name="qualifier" value="z${DSTAMP}-${TSTAMP}" />
68 <antcall target="zz_internal_export">
69 <param name="jdt_core_version" value="3.3.0"/>
70 </antcall>
71</target>
72<target name="export plug-in [_3.2.1]">
73 <tstamp/>
74 <property name="qualifier" value="z${DSTAMP}-${TSTAMP}" />
75 <antcall target="zz_internal_export">
76 <param name="jdt_core_version" value="3.2.1"/>
77 </antcall>
78</target>
79
80<target name="export plug-in [_3.2.0]">
81 <tstamp/>
82 <property name="qualifier" value="z${DSTAMP}-${TSTAMP}" />
83 <antcall target="zz_internal_export">
84 <param name="jdt_core_version" value="3.2.0"/>
85 </antcall>
86</target>
87
88<target name="export plug-in [_3.1.0]">
89 <antcall target="zz_internal_export">
90 <param name="jdt_core_version" value="3.1.0"/>
91 </antcall>
92</target>
93
94<target name="export plug-in [_3.0.0]">
95 <antcall target="zz_internal_export">
96 <param name="jdt_core_version" value="3.0.0"/>
97 </antcall>
98</target>
99
100<target name="export plug-in [_2.1.1]">
101 <antcall target="zz_internal_export">
102 <param name="jdt_core_version" value="2.1.1"/>
103 </antcall>
104</target>
105
106<target name="export plug-in [_2.1.0]">
107 <antcall target="zz_internal_export">
108 <param name="jdt_core_version" value="2.1.0"/>
109 </antcall>
110</target>
111
112<target name="export plug-in [_2.0.1]">
113 <antcall target="zz_internal_export">
114 <param name="jdt_core_version" value="2.0.1"/>
115 </antcall>
116</target>
117
118<target name="export plug-in [_2.0.0]">
119 <antcall target="zz_internal_export">
120 <param name="jdt_core_version" value="2.0.0"/>
121 </antcall>
122</target>
123
124<target name="export plug-in [_1.9.0]">
125 <antcall target="zz_internal_export">
126 <param name="jdt_core_version" value="1.9.0"/>
127 </antcall>
128</target>
129
130<target name="zz_internal_export">
131
132 <tstamp/>
133 <property name="export-dir" value="../../plugin-export" />
134 <property name="plugin" value="org.eclipse.jdt.core" />
135 <property name="plugin-dir" value="${export-dir}/${plugin}_${jdt_core_version}"/>
136
137 <echo message="TARGET: ${export-dir}" />
138 <mkdir dir="${export-dir}" />
139 <delete dir="${plugin-dir}" />
140 <mkdir dir="${plugin-dir}" />
141
142 <echo message="UPDATE jdtCompilerAdapter.jar" />
143 <jar
144 jarfile="${plugin-dir}/jdtCompilerAdapter.jar"
145 basedir="antbin"/>
146
147 <echo message="UPDATE ${plugin}_${jdt_core_version}.jar" />
148 <copy todir="${plugin-dir}/META-INF">
149 <fileset dir="META-INF" />
150 </copy>
151 <replaceregexp file="${plugin-dir}/META-INF/MANIFEST.MF" match="Bundle-Version: ((\d)+\.(\d)+\.(\d)+\.)qualifier" replace="Bundle-Version: \1${qualifier}" byline="true" />
152 <zip zipfile="${plugin-dir}/${plugin}_${jdt_core_version}.jar">
153 <fileset dir=".">
154 <include name="plugin.xml" />
155 <include name="plugin.properties" />
156 <include name=".options"/>
157 <include name="about.html"/>
158 </fileset>
159 <fileset dir="${plugin-dir}">
160 <include name="META-INF/**" />
161 </fileset>
162 <fileset dir="bin" />
163 <fileset file="${plugin-dir}/jdtCompilerAdapter.jar"/>
164 <zipfileset dir="batch" prefix="src"/>
165 <zipfileset dir="codeassist" prefix="src"/>
166 <zipfileset dir="compiler" prefix="src"/>
167 <zipfileset dir="dom" prefix="src"/>
168 <zipfileset dir="eval" prefix="src"/>
169 <zipfileset dir="formatter" prefix="src"/>
170 <zipfileset dir="model" prefix="src"/>
171 <zipfileset dir="search" prefix="src"/>
172 </zip>
173 <delete dir="${plugin-dir}/META-INF" />
174
175 <delete file="${plugin-dir}/jdtCompilerAdapter.jar"/>
176
177 <echo message="UPDATE ${export-dir}/../${plugin}_${jdt_core_version}.zip" />
178 <zip zipfile="${export-dir}/../${plugin}_${jdt_core_version}.zip"
179 basedir="${export-dir}"
180 includes="${plugin}_${jdt_core_version}/**" />
181 <!--
182 <delete dir="${plugin-dir}" />
183 -->
184</target>
185
186<target name="zz_internal_export_binary_only">
187
188 <tstamp/>
189 <property name="export-dir" value="../../plugin-export" />
190 <property name="plugin" value="org.eclipse.jdt.core" />
191 <property name="plugin-dir" value="${export-dir}/${plugin}_${jdt_core_version}"/>
192
193 <echo message="TARGET: ${export-dir}" />
194 <mkdir dir="${export-dir}" />
195 <delete dir="${plugin-dir}" />
196 <mkdir dir="${plugin-dir}" />
197
198 <echo message="UPDATE jdtCompilerAdapter.jar" />
199 <jar
200 jarfile="${plugin-dir}/jdtCompilerAdapter.jar"
201 basedir="antbin"/>
202
203 <echo message="UPDATE ${plugin}_${jdt_core_version}.jar" />
204 <copy todir="${plugin-dir}/META-INF">
205 <fileset dir="META-INF" />
206 </copy>
207 <replaceregexp file="${plugin-dir}/META-INF/MANIFEST.MF" match="Bundle-Version: ((\d)+\.(\d)+\.(\d)+\.)qualifier" replace="Bundle-Version: \1${qualifier}" byline="true" />
208 <zip zipfile="${plugin-dir}/${plugin}_${jdt_core_version}.jar">
209 <fileset dir=".">
210 <include name="plugin.xml" />
211 <include name="plugin.properties" />
212 <include name=".options"/>
213 <include name="about.html"/>
214 </fileset>
215 <fileset dir="${plugin-dir}">
216 <include name="META-INF/**" />
217 </fileset>
218 <fileset dir="bin" />
219 <fileset file="${plugin-dir}/jdtCompilerAdapter.jar"/>
220 </zip>
221 <delete dir="${plugin-dir}/META-INF" />
222
223 <delete file="${plugin-dir}/jdtCompilerAdapter.jar"/>
224
225 <echo message="UPDATE ${export-dir}/../${plugin}_${jdt_core_version}.zip" />
226 <zip zipfile="${export-dir}/../${plugin}_${jdt_core_version}.zip"
227 basedir="${export-dir}"
228 includes="${plugin}_${jdt_core_version}/**" />
229 <!--
230 <delete dir="${plugin-dir}" />
231 -->
232</target>
233
234</project>