Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Stephan Herrmann | 8f4b321 | 2010-05-22 16:38:56 +0000 | [diff] [blame] | 2 | |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 3 |
<!-- |
| 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.1.0]" basedir=".."> |
| 16 | |
| 17 | <target name="export plug-in [_3.1.0]"> |
| 18 | <antcall target="zz_internal_export"> |
| 19 | <param name="jdt_core_version" value="3.1.0"/> |
| 20 | </antcall> |
| 21 | </target> |
| 22 | |
| 23 | <target name="export plug-in [_3.0.0]"> |
| 24 | <antcall target="zz_internal_export"> |
| 25 | <param name="jdt_core_version" value="3.0.0"/> |
| 26 | </antcall> |
| 27 | </target> |
| 28 | |
| 29 | <target name="export plug-in [_2.1.1]"> |
| 30 | <antcall target="zz_internal_export"> |
| 31 | <param name="jdt_core_version" value="2.1.1"/> |
| 32 | </antcall> |
| 33 | </target> |
| 34 | |
| 35 | <target name="export plug-in [_2.1.0]"> |
| 36 | <antcall target="zz_internal_export"> |
| 37 | <param name="jdt_core_version" value="2.1.0"/> |
| 38 | </antcall> |
| 39 | </target> |
| 40 | |
| 41 | <target name="export plug-in [_2.1.0] (directory structure)"> |
| 42 | <antcall target="zz_internal_export_structure"> |
| 43 | <param name="jdt_core_version" value="2.1.0"/> |
| 44 | </antcall> |
| 45 | </target> |
| 46 | |
| 47 | <target name="export plug-in [_2.0.1]"> |
| 48 | <antcall target="zz_internal_export"> |
| 49 | <param name="jdt_core_version" value="2.0.1"/> |
| 50 | </antcall> |
| 51 | </target> |
| 52 | |
| 53 | <target name="export plug-in [_2.0.0]"> |
| 54 | <antcall target="zz_internal_export"> |
| 55 | <param name="jdt_core_version" value="2.0.0"/> |
| 56 | </antcall> |
| 57 | </target> |
| 58 | |
| 59 | <target name="export plug-in [_1.9.0]"> |
| 60 | <antcall target="zz_internal_export"> |
| 61 | <param name="jdt_core_version" value="1.9.0"/> |
| 62 | </antcall> |
| 63 | </target> |
| 64 | |
| 65 | <target name="zz_internal_export"> |
| 66 | |
| 67 | <tstamp/> |
| 68 | <property name="export-dir" value="../../plugin-export" /> |
| 69 | <property name="plugin" value="org.eclipse.jdt.core" /> |
| 70 | <property name="plugin-dir" value="${export-dir}/${plugin}_${jdt_core_version}"/> |
| 71 | |
| 72 | <echo message="TARGET: ${export-dir}" /> |
| 73 | <mkdir dir="${export-dir}" /> |
| 74 | <delete dir="${plugin-dir}" /> |
| 75 | <mkdir dir="${plugin-dir}" /> |
| 76 | |
| 77 | <echo message="UPDATE jdtcore.jar" /> |
| 78 | <jar |
| 79 | jarfile="${plugin-dir}/jdtcore.jar" |
| 80 | basedir="bin" |
| 81 | manifest="META-INF/MANIFEST.MF"/> |
| 82 | |
| 83 | <echo message="UPDATE jdtCompilerAdapter.jar" /> |
| 84 | <jar |
| 85 | jarfile="${plugin-dir}/jdtCompilerAdapter.jar" |
| 86 | basedir="antbin"/> |
| 87 | |
| 88 | <echo message="UPDATE plugin.xml" /> |
| 89 | <copy file="plugin.xml" todir="${plugin-dir}" /> |
| 90 | <echo message="UPDATE plugin.properties" /> |
| 91 | <copy file="plugin.properties" todir="${plugin-dir}" /> |
| 92 | |
| 93 | <echo message="UPDATE .options" /> |
| 94 | <copy file=".options" todir="${plugin-dir}" /> |
| 95 | |
| 96 | <echo message="UPDATE about.html" /> |
| 97 | <copy file="about.html" todir="${plugin-dir}" /> |
| 98 | |
| 99 | <echo message="UPDATE jdtcoresrc.zip" /> |
| 100 | <zip zipfile="${plugin-dir}/jdtcoresrc.zip"> |
| 101 | <fileset dir="batch" /> |
| 102 | <fileset dir="codeassist" /> |
| 103 | <fileset dir="compiler" /> |
| 104 | <fileset dir="dom" /> |
| 105 | <fileset dir="eval" /> |
| 106 | <fileset dir="formatter" /> |
| 107 | <fileset dir="model" /> |
| 108 | <fileset dir="search" /> |
| 109 | </zip> |
| 110 | |
| 111 | <echo message="UPDATE jdtCompilerAdaptersrc.zip" /> |
| 112 | <zip zipfile="${plugin-dir}/jdtCompilerAdaptersrc.zip"> |
| 113 | <fileset dir="antadapter" /> |
| 114 | </zip> |
| 115 | |
| 116 | <echo message="UPDATE ${export-dir}/../${plugin}_${jdt_core_version}.zip" /> |
| 117 | <zip zipfile="${export-dir}/../${plugin}_${jdt_core_version}.zip" |
| 118 | basedir="${export-dir}" |
| 119 | includes="${plugin}_${jdt_core_version}/**" /> |
| 120 | </target> |
| 121 | |
| 122 | <target name="zz_internal_export_structure"> |
| 123 | |
| 124 | <tstamp/> |
| 125 | <property name="export-dir" value="../../plugin-export" /> |
| 126 | <property name="plugin" value="org.eclipse.jdt.core" /> |
| 127 | <property name="bin_dest" value="${export-dir}/eclipse/plugins/${plugin}_${jdt_core_version}"/> |
| 128 | <property name="src_dest" value="${export-dir}/eclipse/plugins/org.eclipse.jdt.source_${jdt_core_version}/src/${plugin}_${jdt_core_version}"/> |
| 129 | |
| 130 | <echo message="TARGET: ${export-dir}" /> |
| 131 | <mkdir dir="${export-dir}" /> |
| 132 | <delete dir="${bin_dest}" /> |
| 133 | <delete dir="${src_dest}" /> |
| 134 | <mkdir dir="${bin_dest}" /> |
| 135 | <mkdir dir="${src_dest}" /> |
| 136 | |
| 137 | <echo message="UPDATE jdtcore.jar" /> |
| 138 | <jar |
| 139 | jarfile="${bin_dest}/jdtcore.jar" |
| 140 | basedir="bin" |
| 141 | excludes="**/JDTCompilerAdapter.class,**/antadapter/*"/> |
| 142 | |
| 143 | <echo message="UPDATE jdtCompilerAdapter.jar" /> |
| 144 | <jar |
| 145 | jarfile="${bin_dest}/jdtCompilerAdapter.jar" |
| 146 | basedir="bin" |
| 147 | includes="**/JDTCompilerAdapter.class,**/antadapter/*"/> |
| 148 | |
| 149 | <echo message="UPDATE plugin.xml" /> |
| 150 | <copy file="plugin.xml" todir="${bin_dest}" /> |
| 151 | <echo message="UPDATE plugin.properties" /> |
| 152 | <copy file="plugin.properties" todir="${bin_dest}" /> |
| 153 | |
| 154 | <echo message="UPDATE .options" /> |
| 155 | <copy file=".options" todir="${bin_dest}" /> |
| 156 | |
| 157 | <echo message="UPDATE about.html" /> |
| 158 | <copy file="about.html" todir="${bin_dest}" /> |
| 159 | |
| 160 | <echo message="UPDATE jdtcoresrc.zip" /> |
| 161 | <zip zipfile="${src_dest}/jdtcoresrc.zip"> |
| 162 | <fileset dir="batch" /> |
| 163 | <fileset dir="codeassist" /> |
| 164 | <fileset dir="compiler" /> |
| 165 | <fileset dir="dom" /> |
| 166 | <fileset dir="eval" /> |
| 167 | <fileset dir="formatter" /> |
| 168 | <fileset dir="model" /> |
| 169 | <fileset dir="search" /> |
| 170 | </zip> |
| 171 | </target> |
| 172 | |
| 173 | </project> |