| 1 | <?xml version="1.0" encoding="UTF-8"?>
|
| 2 | |
| 3 | Copyright (c) 2007, 2021 IBM Corporation and others.
|
| 4 |
|
| 5 | This program and the accompanying materials
|
| 6 | are made available under the terms of the Eclipse Public License 2.0
|
| 7 | which accompanies this distribution, and is available at
|
| 8 | https://www.eclipse.org/legal/epl-2.0/
|
| 9 |
|
| 10 | SPDX-License-Identifier: EPL-2.0
|
| 11 |
|
| 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}"
|
| 27 | source="17"
|
| 28 | target="17"
|
| 29 | debuglevel="lines,source"
|
| 30 | debug="true">
|
| 31 | <compilerarg line="-Xlint:none --patch-module java.compiler=javax17api.jar"/>
|
| 32 | </javac>
|
| 33 |
|
| 34 | <zip destfile="${basedir}/${jar_file}">
|
| 35 | <fileset dir="${output}" />
|
| 36 | <fileset dir="${basedir}">
|
| 37 | <include name="about.html"/>
|
| 38 | <include name="ecj.1"/>
|
| 39 | <include name="**/*.rsc"/>
|
| 40 | <include name="**/readableNames.props"/>
|
| 41 | <include name="META-INF/**"/>
|
| 42 | <include name="**/*.properties"/>
|
| 43 | <exclude name="META-INF/eclipse.inf"/>
|
| 44 | <exclude name="META-INF/ECLIPSE_.SF"/>
|
| 45 | <exclude name="META-INF/ECLIPSE_.RSA"/>
|
| 46 | </fileset>
|
| 47 | </zip>
|
| 48 | <delete dir="${output}" />
|
| 49 | </target>
|
| 50 | </project>
|