view make/build-graal.xml @ 8890:a33b6378cb76

delete build/linux/shared/graal before compile in build-graal.xml to handle stale class files left behind after refactoring in Eclipse
author Doug Simon <doug.simon@oracle.com>
date Mon, 08 Apr 2013 11:20:19 +0200
parents ce5750014c3d
children dedfff70763f
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 basedir="." default="main" name="graal">
  <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 depends="jar" name="main"/>
  <target depends="cleanclasses" name="compile">
    <mkdir dir="${classes.dir}"/>
    <javac debug="on" destdir="${classes.dir}" includeantruntime="false">
      <src path="${src.dir}/com.oracle.graal.api.meta"/>
      <src path="${src.dir}/com.oracle.graal.api.code"/>
      <src path="${src.dir}/com.oracle.graal.graph"/>
      <src path="${src.dir}/com.oracle.graal.debug"/>
      <src path="${src.dir}/com.oracle.graal.api.replacements"/>
      <src path="${src.dir}/com.oracle.graal.nodes"/>
      <src path="${src.dir}/com.oracle.graal.phases"/>
      <src path="${src.dir}/com.oracle.graal.phases.common"/>
      <src path="${src.dir}/com.oracle.graal.virtual"/>
      <src path="${src.dir}/com.oracle.graal.loop"/>
      <src path="${src.dir}/com.oracle.graal.alloc"/>
      <src path="${src.dir}/com.oracle.graal.asm"/>
      <src path="${src.dir}/com.oracle.graal.lir"/>
      <src path="${src.dir}/com.oracle.graal.compiler"/>
      <src path="${src.dir}/com.oracle.graal.bytecode"/>
      <src path="${src.dir}/com.oracle.graal.java"/>
      <src path="${src.dir}/com.oracle.graal.word"/>
      <src path="${src.dir}/com.oracle.graal.api.runtime"/>
      <src path="${src.dir}/com.oracle.graal.replacements"/>
      <src path="${src.dir}/com.oracle.graal.printer"/>
      <src path="${src.dir}/com.oracle.graal.hotspot"/>
      <src path="${src.dir}/com.oracle.graal.amd64"/>
      <src path="${src.dir}/com.oracle.graal.asm.amd64"/>
      <src path="${src.dir}/com.oracle.graal.lir.amd64"/>
      <src path="${src.dir}/com.oracle.graal.compiler.amd64"/>
      <src path="${src.dir}/com.oracle.graal.replacements.amd64"/>
      <src path="${src.dir}/com.oracle.graal.hotspot.amd64"/>
      <src path="${src.dir}/com.oracle.graal.sparc"/>
      <src path="${src.dir}/com.oracle.graal.asm.sparc"/>
      <src path="${src.dir}/com.oracle.graal.lir.sparc"/>
      <src path="${src.dir}/com.oracle.graal.compiler.sparc"/>
      <src path="${src.dir}/com.oracle.graal.hotspot.sparc"/>
      <compilerarg value="-XDignore.symbol.file"/>
      <classpath>
        <fileset dir="${java.home}/../lib">
          <include name="tools.jar"/>
        </fileset>
      </classpath>
    </javac>
  </target>
  <target depends="compile" name="jar">
    <mkdir dir="${jar.dir}"/>
    <jar basedir="${classes.dir}" destfile="${jar.file}"/>
  </target>
  <target name="cleanclasses">
    <delete dir="${classes.dir}"/>
  </target>
  <target depends="cleanclasses" name="clean">
    <delete file="${jar.file}"/>
  </target>
</project>