org.eclipse.jdt.core/scripts/export-ejavac2.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (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.2: +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="export-executable" default="build" basedir="..">

	<property name="version" value="32M4" />
	<property name="gcc-path" value="/oliviert/gcj4.0.3/xgcc" />
	<property name="binaryname" value="ejc${version}.exe" />
	<property name="dest" value="../../bingcj" />
	<property name="work" value="${dest}/tmp/" />
	<property name="bin" value="${dest}/bin/" />
	<property name="source" value="/oliviert/workspaces/head/org.eclipse.jdt.core" />
	<property name="gcj_script_name" value="export-executable.xml"/>

    <target name="build">
		<echo message="target: ${dest}" />
		<delete dir="${dest}" failonerror="no"/>
		<mkdir dir="${dest}" />
		<delete dir="${bin}" failonerror="no"/>
		<mkdir dir="${bin}" />
	
		<copy todir="${work}">
		    <fileset dir="${source}/batch/" excludes='**/*.html' />
		</copy>
		<copy todir="${work}">
		    <fileset dir="${source}/compiler/" excludes='**/*.html' />
		</copy>
		<copy todir="${bin}">
		    <fileset dir="${source}/batch/" includes='**/*.properties' />
		</copy>
		<copy todir="${bin}">
		    <fileset dir="${source}/compiler/" includes='**/*.properties' />
		</copy>
		<copy todir="${bin}">
		    <fileset dir="${source}/compiler/" includes='**/*.rsc' />
		</copy>
   
		<javac srcdir="${work}"
			destdir="${bin}"
			nowarn="on"
			deprecation="off"
			source="1.3"
			debug="on"
			verbose="off"
			target="1.2">
		    <compilerarg compiler="org.eclipse.jdt.core.JDTCompilerAdapter" line="-1.4 -inlineJSR"/>
		</javac>
	
		<echo message="generate build script" />
		<java classname="GenerateBuildScript">
			<arg value="${basedir}/scripts/${gcj_script_name}"/>
			<arg value="${basedir}/${bin}"/>
			<arg value="i686-pc-mingw32-gcj"/>
			<arg value="${basedir}/${bin}"/>
			<arg value="bin"/>
			<classpath>
				<pathelement path="${basedir}/scripts"/>
			</classpath>
		</java>
		
		<echo message="run the new build script" />
		<ant antfile="${basedir}/scripts/export-executable.xml"/>
		<delete file="${basedir}/scripts/export-executable.xml"/>
	</target>
</project>