blob: 91f931d46c5bc53eeaa76e96ef8f5c54f94a1d6f [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.
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="32M4" />
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="bin" value="${dest}/bin/" />
21 <property name="source" value="/oliviert/workspaces/head/org.eclipse.jdt.core" />
22 <property name="gcj_script_name" value="export-executable.xml"/>
23
24 <target name="build">
25 <echo message="target: ${dest}" />
26 <delete dir="${dest}" failonerror="no"/>
27 <mkdir dir="${dest}" />
28 <delete dir="${bin}" failonerror="no"/>
29 <mkdir dir="${bin}" />
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 <copy todir="${bin}">
38 <fileset dir="${source}/batch/" includes='**/*.properties' />
39 </copy>
40 <copy todir="${bin}">
41 <fileset dir="${source}/compiler/" includes='**/*.properties' />
42 </copy>
43 <copy todir="${bin}">
44 <fileset dir="${source}/compiler/" includes='**/*.rsc' />
45 </copy>
46
47 <javac srcdir="${work}"
48 destdir="${bin}"
49 nowarn="on"
50 deprecation="off"
51 source="1.3"
52 debug="on"
53 verbose="off"
54 target="1.2">
55 <compilerarg compiler="org.eclipse.jdt.core.JDTCompilerAdapter" line="-1.4 -inlineJSR"/>
56 </javac>
57
58 <echo message="generate build script" />
59 <java classname="GenerateBuildScript">
60 <arg value="${basedir}/scripts/${gcj_script_name}"/>
61 <arg value="${basedir}/${bin}"/>
62 <arg value="i686-pc-linux-gnu-gcj"/>
63 <arg value="${basedir}/${bin}"/>
64 <arg value="bin"/>
65 <classpath>
66 <pathelement path="${basedir}/scripts"/>
67 </classpath>
68 </java>
69
70 <echo message="run the new build script" />
71 <ant antfile="${basedir}/scripts/export-executable.xml"/>
72 <delete file="${basedir}/scripts/export-executable.xml"/>
73 </target>
74</project>