blob: 5a5983a41a1c9645422d7901e50dd0651d0547b3 [file] [log] [blame]
Stephan Herrmann8f4b3212010-05-22 16:38:56 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Stephan Herrmann7b7062f2010-04-01 19:56:59 +00003 Copyright (c) 2007, 2009 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="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>