blob: 20807dc926562a91ff45f06a96e079f7e2550ee7 [file] [log] [blame]
Stephan Herrmann4ea615c2011-05-14 13:27:24 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright (c) 2007, 2011 IBM Corporation and others.
Stephan Herrmann7b7062f2010-04-01 19:56:59 +00004 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="3.1.0" />
16 <property name="gcc-path" value="C:/java_tools/thisiscool-gcc/gcc-4.0" />
17 <property name="binaryname" value="ejavac${version}" />
18 <property name="dest" value="c:/temp/bingcj" />
19 <property name="extract_folder" value="${dest}/src/" />
20 <property name="work" value="${dest}/tmp/" />
21 <property name="source" value="C:/eclipse/I1111/eclipse/plugins/org.eclipse.jdt.source_3.1.0/src/org.eclipse.jdt.core_3.1.0/jdtcoresrc.zip" />
22 <property name="binaries" value="C:/eclipse/I1111/eclipse/plugins/org.eclipse.jdt.core_3.1.0/jdtcore.jar" />
23 <property name="gcj_script_name" value="export-executable.xml" />
24
25 <target name="build">
26 <echo message="target: ${dest}" />
27 <delete dir="${dest}" failonerror="no" />
28 <mkdir dir="${dest}" />
29
30 <unzip overwrite="yes" dest="${work}" src="${source}">
31 <patternset>
32 <include name="**/compiler/**" />
33 <exclude name="**/compiler/**/*.html" />
34 <exclude name="**/IScanner.java" />
35 <exclude name="**/ITerminalSymbols.java" />
36 <exclude name="**/DocumentElementParser.java" />
37 <exclude name="**/IDocumentElementRequestor.java" />
38 <exclude name="**/ISourceElementRequestor.java" />
39 <exclude name="**/SourceElementParser.java" />
40 <exclude name="**/SourceElementRequestorAdapter.java" />
41 <exclude name="**/SourceConstructorDeclaration.java" />
42 <exclude name="**/SourceFieldDeclaration.java" />
43 <exclude name="**/SourceMethodDeclaration.java" />
44 <exclude name="**/SourceTypeConverter.java" />
45 </patternset>
46 </unzip>
47
48 <unzip overwrite="yes" dest="${work}" src="${binaries}">
49 <patternset>
50 <include name="**/compiler/**/*.properties" />
51 <include name="**/*.rsc" />
52 <exclude name="**/*.class" />
53 <exclude name="**/*.mf" />
54 </patternset>
55 </unzip>
56
57 <!-- echo message="generate build script" />
58 <java classname="GenerateBuildScript">
59 <sysproperty key="user.dir" value="${basedir}/scripts"/>
60 <arg value="${gcj_script_name}"/>
61 <arg value="${basedir}/${work}"/>
62 <classpath>
63 <pathelement path="${basedir}/scripts"/>
64 </classpath>
65 </java>
66
67 <echo message="run the new build script" />
68 <ant antfile="${basedir}/scripts/export-executable.xml"/>
69 <delete file="${basedir}/scripts/export-executable.xml"/ -->
70 </target>
71</project>