blob: c68cc37de16a8c8ec1b76c5aeec9f30d37a50d80 [file] [log] [blame]
Stephan Herrmann4ea615c2011-05-14 13:27:24 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Stephan Herrmann9364f842021-11-11 21:27:45 +01003 Copyright (c) 2007, 2021 IBM Corporation and others.
Stephan Herrmannaa0c80c2018-09-08 22:11:53 +02004
5 This program and the accompanying materials
6 are made available under the terms of the Eclipse Public License 2.0
Stephan Herrmann7b7062f2010-04-01 19:56:59 +00007 which accompanies this distribution, and is available at
Stephan Herrmannaa0c80c2018-09-08 22:11:53 +02008 https://www.eclipse.org/legal/epl-2.0/
9
10 SPDX-License-Identifier: EPL-2.0
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000011
12 Contributors:
13 IBM Corporation - initial API and implementation
14 -->
15
16<project name="export-executable" default="build" basedir=".">
17
18 <property name="output" value="bin" />
19 <property name="jar_file" value="ecj.jar" />
20
21 <target name="build">
22 <delete file="${basedir}/${jar_file}" failonerror="no" />
23 <delete dir="${output}" failonerror="no" />
24 <mkdir dir="${output}" />
25
26 <javac srcdir="${basedir}" destdir="${output}"
Stephan Herrmanne8a756a2014-06-10 18:57:05 +020027 debuglevel="lines,source"
Stephan Herrmann9364f842021-11-11 21:27:45 +010028 debug="true"
29 release="11">
30 <compilerarg line="-Xlint:none --patch-module java.compiler=javax17api.jar"/>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000031 </javac>
32
Stephan Herrmann1a8ea8f2012-09-18 15:10:52 +020033 <delete file="${basedir}/META-INF/MANIFEST.MF" failonerror="false"/>
34 <copy tofile="${basedir}/META-INF/MANIFEST.MF" file="${basedir}/scripts/binary/META-INF/MANIFEST.MF"/>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000035 <zip destfile="${basedir}/${jar_file}">
36 <fileset dir="${output}" />
37 <fileset dir="${basedir}">
38 <include name="about.html"/>
Stephan Herrmann35ce9502014-06-05 16:16:02 +020039 <include name="ecj.1"/>
Stephan Herrmann1a8ea8f2012-09-18 15:10:52 +020040 <include name="**/*.rsc"/>
41 <include name="**/readableNames.props"/>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000042 <include name="META-INF/**"/>
43 <include name="**/*.properties"/>
44 <exclude name="META-INF/eclipse.inf"/>
Stephan Herrmannc1951232021-03-20 15:57:34 +010045 <exclude name="META-INF/ECLIPSE_.SF"/>
46 <exclude name="META-INF/ECLIPSE_.RSA"/>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000047 </fileset>
48 </zip>
49 <delete dir="${output}" />
50 </target>
Stephan Herrmanna1dd2df2017-12-05 20:11:07 +010051</project>