blob: 02ed4bf483d02acf6a9f0b4fc7cc28c8820f5b0c [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 Herrmann44109d32011-08-02 14:34:26 +00003<!--
Stephan Herrmann2c38ab42012-01-28 20:42:28 +01004 Copyright (c) 2007, 2012 IBM Corporation and others.
Stephan Herrmannaa0c80c2018-09-08 22:11:53 +02005
6 This program and the accompanying materials
7 are made available under the terms of the Eclipse Public License 2.0
Stephan Herrmann7b7062f2010-04-01 19:56:59 +00008 which accompanies this distribution, and is available at
Stephan Herrmannaa0c80c2018-09-08 22:11:53 +02009 https://www.eclipse.org/legal/epl-2.0/
10
11 SPDX-License-Identifier: EPL-2.0
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000012
13 Contributors:
14 IBM Corporation - initial API and implementation
15 -->
16
17<!-- build script to create a plugin from ${plugin} -->
Stephan Herrmann2c38ab42012-01-28 20:42:28 +010018<project name="${plugin}" default="export plug-in [_3.8.1]" basedir="..">
19<target name="export plug-in [_3.8.1]">
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000020 <tstamp/>
21 <property name="qualifier" value="z${DSTAMP}-${TSTAMP}" />
22 <antcall target="zz_internal_export">
Stephan Herrmann2c38ab42012-01-28 20:42:28 +010023 <param name="jdt_core_version" value="3.8.1"/>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000024 </antcall>
25</target>
Stephan Herrmann2c38ab42012-01-28 20:42:28 +010026<target name="export plug-in [_3.8.1.qualifier] (binary only)">
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000027 <tstamp/>
28 <property name="qualifier" value="z${DSTAMP}-${TSTAMP}" />
29 <antcall target="zz_internal_export_binary_only">
Stephan Herrmann2c38ab42012-01-28 20:42:28 +010030 <param name="jdt_core_version" value="3.8.1.${qualifier}"/>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000031 </antcall>
32</target>
Stephan Herrmann2c38ab42012-01-28 20:42:28 +010033<target name="export plug-in [_3.8.1.qualifier] (with sources)">
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000034 <tstamp/>
35 <property name="qualifier" value="z${DSTAMP}-${TSTAMP}" />
36 <antcall target="zz_internal_export">
Stephan Herrmann2c38ab42012-01-28 20:42:28 +010037 <param name="jdt_core_version" value="3.8.1.${qualifier}"/>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000038 </antcall>
39</target>
40
41<target name="zz_internal_export">
42
43 <tstamp/>
44 <property name="export-dir" value="../../plugin-export" />
45 <property name="plugin" value="org.eclipse.jdt.core" />
46 <property name="plugin-dir" value="${export-dir}/${plugin}_${jdt_core_version}"/>
47
48 <echo message="TARGET: ${export-dir}" />
49 <mkdir dir="${export-dir}" />
50 <delete dir="${plugin-dir}" />
51 <mkdir dir="${plugin-dir}" />
52
53 <echo message="UPDATE jdtCompilerAdapter.jar" />
54 <jar
55 jarfile="${plugin-dir}/jdtCompilerAdapter.jar"
56 basedir="antbin"/>
57
58 <echo message="UPDATE ${plugin}_${jdt_core_version}.jar" />
59 <copy todir="${plugin-dir}/META-INF">
60 <fileset dir="META-INF" />
61 </copy>
62 <replaceregexp file="${plugin-dir}/META-INF/MANIFEST.MF" match="Bundle-Version: ((\d)+\.(\d)+\.(\d)+\.)qualifier" replace="Bundle-Version: \1${qualifier}" byline="true" />
63 <zip zipfile="${plugin-dir}/${plugin}_${jdt_core_version}.jar">
64 <fileset dir=".">
65 <include name="plugin.xml" />
66 <include name="plugin.properties" />
67 <include name=".options"/>
68 <include name="about.html"/>
69 </fileset>
70 <fileset dir="${plugin-dir}">
71 <include name="META-INF/**" />
72 </fileset>
73 <fileset dir="bin" />
74 <fileset file="${plugin-dir}/jdtCompilerAdapter.jar"/>
75 <zipfileset dir="batch" prefix="src"/>
76 <zipfileset dir="codeassist" prefix="src"/>
77 <zipfileset dir="compiler" prefix="src"/>
78 <zipfileset dir="dom" prefix="src"/>
79 <zipfileset dir="eval" prefix="src"/>
80 <zipfileset dir="formatter" prefix="src"/>
81 <zipfileset dir="model" prefix="src"/>
82 <zipfileset dir="search" prefix="src"/>
83 </zip>
84 <delete dir="${plugin-dir}/META-INF" />
85
86 <delete file="${plugin-dir}/jdtCompilerAdapter.jar"/>
87
88 <echo message="UPDATE ${export-dir}/../${plugin}_${jdt_core_version}.zip" />
89 <zip zipfile="${export-dir}/../${plugin}_${jdt_core_version}.zip"
90 basedir="${export-dir}"
91 includes="${plugin}_${jdt_core_version}/**" />
92 <!--
93 <delete dir="${plugin-dir}" />
94 -->
95</target>
96
97<target name="zz_internal_export_binary_only">
98
99 <tstamp/>
100 <property name="export-dir" value="../../plugin-export" />
101 <property name="plugin" value="org.eclipse.jdt.core" />
102 <property name="plugin-dir" value="${export-dir}/${plugin}_${jdt_core_version}"/>
103
104 <echo message="TARGET: ${export-dir}" />
105 <mkdir dir="${export-dir}" />
106 <delete dir="${plugin-dir}" />
107 <mkdir dir="${plugin-dir}" />
108
109 <echo message="UPDATE jdtCompilerAdapter.jar" />
110 <jar
111 jarfile="${plugin-dir}/jdtCompilerAdapter.jar"
112 basedir="antbin"/>
113
114 <echo message="UPDATE ${plugin}_${jdt_core_version}.jar" />
115 <copy todir="${plugin-dir}/META-INF">
116 <fileset dir="META-INF" />
117 </copy>
118 <replaceregexp file="${plugin-dir}/META-INF/MANIFEST.MF" match="Bundle-Version: ((\d)+\.(\d)+\.(\d)+\.)qualifier" replace="Bundle-Version: \1${qualifier}" byline="true" />
119 <zip zipfile="${plugin-dir}/${plugin}_${jdt_core_version}.jar">
120 <fileset dir=".">
121 <include name="plugin.xml" />
122 <include name="plugin.properties" />
123 <include name=".options"/>
124 <include name="about.html"/>
125 </fileset>
126 <fileset dir="${plugin-dir}">
127 <include name="META-INF/**" />
128 </fileset>
129 <fileset dir="bin" />
130 <fileset file="${plugin-dir}/jdtCompilerAdapter.jar"/>
131 </zip>
132 <delete dir="${plugin-dir}/META-INF" />
133
134 <delete file="${plugin-dir}/jdtCompilerAdapter.jar"/>
135
136 <echo message="UPDATE ${export-dir}/../${plugin}_${jdt_core_version}.zip" />
137 <zip zipfile="${export-dir}/../${plugin}_${jdt_core_version}.zip"
138 basedir="${export-dir}"
139 includes="${plugin}_${jdt_core_version}/**" />
140 <!--
141 <delete dir="${plugin-dir}" />
142 -->
143</target>
144
145</project>