view make/build-graal.xml @ 8261:2237260c6fdb

the contents of jvm.cfg are reset when copying the JDK so that the non-default VMs must be built before being run
author Doug Simon <doug.simon@oracle.com>
date Wed, 13 Mar 2013 21:55:08 +0100
parents 60b6dd6a58b7
children b246434a3e4a
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8"?>
<!--
 Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

 This code is free software; you can redistribute it and/or modify it
 under the terms of the GNU General Public License version 2 only, as
 published by the Free Software Foundation.  Oracle designates this
 particular file as subject to the "Classpath" exception as provided
 by Oracle in the LICENSE file that accompanied this code.

 This code is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 version 2 for more details (a copy is included in the LICENSE file that
 accompanied this code).

 You should have received a copy of the GNU General Public License version
 2 along with this work; if not, write to the Free Software Foundation,
 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 or visit www.oracle.com if you need additional information or have any
 questions.
-->

<project name="graal" basedir="." default="main">
  <property name="src.dir"     value="${gamma.dir}/graal"/>
  <property name="classes.dir" value="${shared.dir}/graal"/>
  <property name="jar.dir"     value="${shared.dir}"/>
  <property name="jar.file"    value="${jar.dir}/graal.jar"/>

  <target name="main" depends="jar"/>

  <target name="compile">
    <mkdir dir="${classes.dir}"/>
    <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="on" includeantruntime="false">
      <include name="com.oracle.graal.*/**"/>
      <exclude name="com.oracle.graal.test/**"/>
      <exclude name="com.oracle.graal.*.test/**"/>
      <exclude name="com.oracle.graal.jtt/**"/>
      <compilerarg value="-XDignore.symbol.file"/>
    </javac>
  </target>

  <target name="jar" depends="compile">
    <mkdir dir="${jar.dir}"/>
    <jar destfile="${jar.file}" basedir="${classes.dir}"/>
  </target>

  <target name="clean">
    <delete dir="${classes.dir}"/>
    <delete file="${jar.file}"/>
  </target>
</project>