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