org.eclipse.jdt.core/scripts/ikvm_script.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (download) (as text) (annotate)
Tue Apr 28 16:53:02 2009 UTC (6 months, 4 weeks ago) by oliviert
Branch: MAIN
CVS Tags: v_974_R35x, v_969_R35x, v_A03, v_A02, v_A01, v_A00, v_A07, v_A06, v_A05, v_A04, v_A09, v_A08, v_968_R35x, v_958, v_959, v_954, v_955, v_956, v_957, v_971_R35x, v_961, v_960, v_963, v_962, v_964_R35x, v_977_R35x, R3_5, v_A18, v_A19, v_A14, v_A15, v_A16, v_A10, v_A11, v_A12, v_A13, v_966_R35x, v_970_R35x, v_A21, v_A20, v_A23, v_A22, v_975_R35x, v_976_R35x, v_967_R35x, v_965_R35x, v_A21d, v_A21a, jsr308_A22, v_972_R35x, R3_5_1, v_A17b, v_A17c, v_973_R35x, HEAD
Branch point for: JSR_308, R3_5_maintenance
Changes since 1.3: +11 -1 lines
HEAD - Fix copyright
<?xml version="1.0" encoding="UTF-8"?>
<!--
    Copyright (c) 2007, 2009 IBM Corporation and others.
    All rights reserved. This program and the accompanying materials
    are made available under the terms of the Eclipse Public License v1.0
    which accompanies this distribution, and is available at
    http://www.eclipse.org/legal/epl-v10.html
    
    Contributors:
        IBM Corporation - initial API and implementation
 -->

<project name="ecj" default="all" basedir="..">
	<!-- target name="checkout">
     <exec program="cvs" commandline="-z3 -d:pserver:anonymous@dev.eclipse.org:/home/eclipse co org.eclipse.jdt.core" />
   </target>
   <target name="allsources">
     <exec program="cmd" commandline="/c dir /s/b org.eclipse.jdt.core\batch\*.java > allsources.lst" />
     <exec program="cmd" commandline="/c dir /s/b org.eclipse.jdt.core\compiler\*.java >> allsources.lst" />
   </target>
   <target name="classes">
     <exec program="../bin/ikvmstub.exe" commandline="IKVM.GNU.Classpath" useruntimeengine="true" />
     <exec program="jikes" commandline="-nowarn -classpath IKVM.GNU.Classpath.jar;org.eclipse.jdt.core/compiler;org.eclipse.jdt.core/batch @allsources.lst" />
     <delete file="IKVM.GNU.Classpath.jar" />
   </target -->
	<property name="ikvm_home" value="D:\java_tools\ikvm" />
	<property name="dest" value="../../bingcj" />
	<property name="work" value="${dest}/tmp" />
	<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
	<property name="source" value="D:/eclipse/workspaces/head/org.eclipse.jdt.core" />

    <target name="clean">
		<echo message="target: ${dest}" />
		<delete dir="${dest}" failonerror="no"/>
		<mkdir dir="${dest}" />
	</target>	

	<target name="retrieve_class_files">
		<copy todir="${work}">
		    <fileset dir="${source}/batch/" includes='**/*.java' />
		</copy>
		<copy todir="${work}">
		    <fileset dir="${source}/compiler/" includes='**/*.java' />
		</copy>

		<echo message="copy resource files"/>
		<copy todir="${dest}">
		    <fileset dir="${source}/compiler/" includes='**/*.rsc' />
		</copy>

		<echo message="copy properties files from compiler"/>
		<copy todir="${dest}">
		    <fileset dir="${source}/compiler/" includes='**/*.properties' />
		    <fileset dir="${source}/batch/" includes='**/*.properties' />
		</copy>

		<javac srcdir="${work}" destdir="${dest}" nowarn="off" deprecation="off" source="1.4" debug="off" verbose="on">
			<classpath>
				<path location="${work}"/>
			</classpath>
		</javac>

		<delete dir="${work}" failonerror="no"/>
	</target>

	<target name="ecj">
		<exec dir="${dest}" executable="${ikvm_home}/bin/ikvmc.exe" output="${dest}/log.txt">
			<arg line="-out:ecj.exe -main:org.eclipse.jdt.internal.compiler.batch.Main -recurse:./*.class -recurse:./*.properties -recurse:./*.rsc"/>
		</exec>
		<copy file="${ikvm_home}/bin/IKVM.Runtime.dll" todir="${dest}" />
		<copy file="${ikvm_home}/bin/IKVM.GNU.Classpath.dll" todir="${dest}" />
	</target>

	<target name="all" depends="clean, retrieve_class_files, ecj">
	</target>
</project>