Stephan Herrmann | 8f4b321 | 2010-05-22 16:38:56 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 3 | Copyright (c) 2007, 2009 IBM Corporation and others. |
Stephan Herrmann | aa0c80c | 2018-09-08 22:11:53 +0200 | [diff] [blame] | 4 | |
| 5 | This program and the accompanying materials |
| 6 | are made available under the terms of the Eclipse Public License 2.0 |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 7 | which accompanies this distribution, and is available at |
Stephan Herrmann | aa0c80c | 2018-09-08 22:11:53 +0200 | [diff] [blame] | 8 | https://www.eclipse.org/legal/epl-2.0/ |
| 9 | |
| 10 | SPDX-License-Identifier: EPL-2.0 |
Stephan Herrmann | 7b7062f | 2010-04-01 19:56:59 +0000 | [diff] [blame] | 11 | |
| 12 | Contributors: |
| 13 | IBM Corporation - initial API and implementation |
| 14 | --> |
| 15 | |
| 16 | <project name="export-executable" default="build" basedir=".."> |
| 17 | |
| 18 | <property name="version" value="32M4SM" /> |
| 19 | <property name="gcc-path" value="/oliviert/gcj4.0.3/xgcc" /> |
| 20 | <property name="binaryname" value="ejavac${version}.exe" /> |
| 21 | <property name="dest" value="../../bingcj" /> |
| 22 | <property name="work" value="${dest}/tmp/" /> |
| 23 | <property name="source" value="/oliviert/workspaces/head/org.eclipse.jdt.core" /> |
| 24 | <property name="gcj_script_name" value="export-executable.xml"/> |
| 25 | |
| 26 | <target name="build"> |
| 27 | <echo message="target: ${dest}" /> |
| 28 | <delete dir="${dest}" failonerror="no"/> |
| 29 | <mkdir dir="${dest}" /> |
| 30 | |
| 31 | <copy todir="${work}"> |
| 32 | <fileset dir="${source}/batch/" excludes='**/*.html' /> |
| 33 | </copy> |
| 34 | <copy todir="${work}"> |
| 35 | <fileset dir="${source}/compiler/" excludes='**/*.html' /> |
| 36 | </copy> |
| 37 | |
| 38 | <echo message="generate build script" /> |
| 39 | <java classname="GenerateBuildScript"> |
| 40 | <arg value="${basedir}/scripts/${gcj_script_name}"/> |
| 41 | <arg value="${basedir}/${work}"/> |
| 42 | <arg value="i686-pc-mingw32-gcj"/> |
| 43 | <arg value="${basedir}/${work}"/> |
| 44 | <arg value="source"/> |
| 45 | <classpath> |
| 46 | <pathelement path="${basedir}/scripts"/> |
| 47 | </classpath> |
| 48 | </java> |
| 49 | |
| 50 | <echo message="run the new build script" /> |
| 51 | <ant antfile="${basedir}/scripts/export-executable.xml"/> |
| 52 | <delete file="${basedir}/scripts/export-executable.xml"/> |
| 53 | </target> |
| 54 | </project> |