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