blob: d2cbfc1aff135cde55cb17745ff8663bc079fe8b [file] [log] [blame]
Stephan Herrmann7b7062f2010-04-01 19:56:59 +00001<?xml version="1.0" encoding="UTF-8"?> <!--
2 Copyright (c) 2007, 2009 IBM Corporation and others.
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Eclipse Public License v1.0
5 which accompanies this distribution, and is available at
6 http://www.eclipse.org/legal/epl-v10.html
7
8 Contributors:
9 IBM Corporation - initial API and implementation
10 -->
11
12<project name="export-executable" default="build" basedir=".">
13
14 <property name="output" value="bin" />
15 <property name="jar_file" value="ecj.jar" />
16
17 <target name="build">
18 <delete file="${basedir}/${jar_file}" failonerror="no" />
19 <delete dir="${output}" failonerror="no" />
20 <mkdir dir="${output}" />
21
22 <javac srcdir="${basedir}" destdir="${output}"
23 debuglevel="lines,source"
24 source="1.3"
25 target="1.2"
26 excludes="org/eclipse/jdt/internal/compiler/tool/*,**/apt/**">
27 <compilerarg line="-Xlint:none"/>
28 </javac>
29
30 <javac destdir="${output}"
31 debuglevel="lines,source"
32 source="1.6"
33 target="1.6"
34 includes="org/eclipse/jdt/internal/compiler/tool/*">
35 <src path="${basedir}"/>
36 <include name="org/eclipse/jdt/internal/compiler/tool/*"/>
37 <include name="**/apt/**"/>
38 <compilerarg line="-Xlint:none"/>
39 </javac>
40
41 <zip destfile="${basedir}/${jar_file}">
42 <fileset dir="${output}" />
43 <fileset dir="${basedir}">
44 <include name="about.html"/>
45 <include name="**/*.rsc" />
46 <include name="META-INF/**"/>
47 <include name="**/*.properties"/>
48 <exclude name="META-INF/eclipse.inf"/>
49 </fileset>
50 </zip>
51 <delete dir="${output}" />
52 </target>
53</project>