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. |
| 4 | 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="version" value="v632linux" /> |
| 16 | <property name="gcc-path" value="/oliviert/gcj4.1_linux/gcc" /> |
| 17 | <property name="binaryname" value="ejc${version}" /> |
| 18 | <property name="dest" value="../../bingcj" /> |
| 19 | <property name="work" value="${dest}/tmp/" /> |
| 20 | <property name="source" value="/oliviert/workspaces/head/org.eclipse.jdt.core" /> |
| 21 | <property name="gcj_script_name" value="export-executable.xml"/> |
| 22 | |
| 23 | <target name="build"> |
| 24 | <echo message="target: ${dest}" /> |
| 25 | <delete dir="${dest}" failonerror="no"/> |
| 26 | <mkdir dir="${dest}" /> |
| 27 | |
| 28 | <copy todir="${work}"> |
| 29 | <fileset dir="${source}/batch/" excludes='**/*.html' /> |
| 30 | </copy> |
| 31 | <copy todir="${work}"> |
| 32 | <fileset dir="${source}/compiler/" excludes='**/*.html' /> |
| 33 | </copy> |
| 34 | |
| 35 | <echo message="generate build script" /> |
| 36 | <java classname="GenerateBuildScript"> |
| 37 | <arg value="${basedir}/scripts/${gcj_script_name}"/> |
| 38 | <arg value="${basedir}/${work}"/> |
| 39 | <arg value="i686-pc-linux-gnu-gcj"/> |
| 40 | <arg value="${basedir}/${work}"/> |
| 41 | <arg value="source"/> |
| 42 | <classpath> |
| 43 | <pathelement path="${basedir}/scripts"/> |
| 44 | </classpath> |
| 45 | </java> |
| 46 | |
| 47 | <echo message="run the new build script" /> |
| 48 | <ant antfile="${basedir}/scripts/export-executable.xml"/> |
| 49 | <delete file="${basedir}/scripts/export-executable.xml"/> |
| 50 | </target> |
| 51 | </project> |