blob: 3fbdb3e112abfb5c0062176654bc74364be1f93e [file] [log] [blame]
Stephan Herrmann4ea615c2011-05-14 13:27:24 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Stephan Herrmannae707952015-10-30 22:28:02 +01003 Copyright (c) 2007, 2015 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}"
Stephan Herrmanne8a756a2014-06-10 18:57:05 +020024 debuglevel="lines,source"
Stephan Herrmannae707952015-10-30 22:28:02 +010025 source="1.7"
26 target="1.7">
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000027 <compilerarg line="-Xlint:none"/>
28 </javac>
29
Stephan Herrmann1a8ea8f2012-09-18 15:10:52 +020030 <delete file="${basedir}/META-INF/MANIFEST.MF" failonerror="false"/>
31 <copy tofile="${basedir}/META-INF/MANIFEST.MF" file="${basedir}/scripts/binary/META-INF/MANIFEST.MF"/>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000032 <zip destfile="${basedir}/${jar_file}">
33 <fileset dir="${output}" />
34 <fileset dir="${basedir}">
35 <include name="about.html"/>
Stephan Herrmann35ce9502014-06-05 16:16:02 +020036 <include name="ecj.1"/>
Stephan Herrmann1a8ea8f2012-09-18 15:10:52 +020037 <include name="**/*.rsc"/>
38 <include name="**/readableNames.props"/>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000039 <include name="META-INF/**"/>
40 <include name="**/*.properties"/>
41 <exclude name="META-INF/eclipse.inf"/>
42 </fileset>
43 </zip>
44 <delete dir="${output}" />
45 </target>
46</project>