blob: 03f1674b501ffa59e472b9ebf57aafcfd56c0a46 [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="ecj" default="all" basedir="..">
17 <!-- target name="checkout">
18 <exec program="cvs" commandline="-z3 -d:pserver:anonymous@dev.eclipse.org:/home/eclipse co org.eclipse.jdt.core" />
19 </target>
20 <target name="allsources">
21 <exec program="cmd" commandline="/c dir /s/b org.eclipse.jdt.core\batch\*.java > allsources.lst" />
22 <exec program="cmd" commandline="/c dir /s/b org.eclipse.jdt.core\compiler\*.java >> allsources.lst" />
23 </target>
24 <target name="classes">
25 <exec program="../bin/ikvmstub.exe" commandline="IKVM.GNU.Classpath" useruntimeengine="true" />
26 <exec program="jikes" commandline="-nowarn -classpath IKVM.GNU.Classpath.jar;org.eclipse.jdt.core/compiler;org.eclipse.jdt.core/batch @allsources.lst" />
27 <delete file="IKVM.GNU.Classpath.jar" />
28 </target -->
29 <property name="ikvm_home" value="D:\java_tools\ikvm" />
30 <property name="dest" value="../../bingcj" />
31 <property name="work" value="${dest}/tmp" />
32 <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
33 <property name="source" value="D:/eclipse/workspaces/head/org.eclipse.jdt.core" />
34
35 <target name="clean">
36 <echo message="target: ${dest}" />
37 <delete dir="${dest}" failonerror="no"/>
38 <mkdir dir="${dest}" />
39 </target>
40
41 <target name="retrieve_class_files">
42 <copy todir="${work}">
43 <fileset dir="${source}/batch/" includes='**/*.java' />
44 </copy>
45 <copy todir="${work}">
46 <fileset dir="${source}/compiler/" includes='**/*.java' />
47 </copy>
48
49 <echo message="copy resource files"/>
50 <copy todir="${dest}">
51 <fileset dir="${source}/compiler/" includes='**/*.rsc' />
52 </copy>
53
54 <echo message="copy properties files from compiler"/>
55 <copy todir="${dest}">
56 <fileset dir="${source}/compiler/" includes='**/*.properties' />
57 <fileset dir="${source}/batch/" includes='**/*.properties' />
58 </copy>
59
60 <javac srcdir="${work}" destdir="${dest}" nowarn="off" deprecation="off" source="1.4" debug="off" verbose="on">
61 <classpath>
62 <path location="${work}"/>
63 </classpath>
64 </javac>
65
66 <delete dir="${work}" failonerror="no"/>
67 </target>
68
69 <target name="ecj">
70 <exec dir="${dest}" executable="${ikvm_home}/bin/ikvmc.exe" output="${dest}/log.txt">
71 <arg line="-out:ecj.exe -main:org.eclipse.jdt.internal.compiler.batch.Main -recurse:./*.class -recurse:./*.properties -recurse:./*.rsc"/>
72 </exec>
73 <copy file="${ikvm_home}/bin/IKVM.Runtime.dll" todir="${dest}" />
74 <copy file="${ikvm_home}/bin/IKVM.GNU.Classpath.dll" todir="${dest}" />
75 </target>
76
77 <target name="all" depends="clean, retrieve_class_files, ecj">
78 </target>
79</project>