view make/build-graal.xml @ 8340:d9d883aeb96f

unittest: seperate target `longunittest' and `shortunittest' There are some unittests which took a quite long time, e.g. Test6850611 takes about 16seconds on my machine. We want them to shift into a seperate mx target. In order to move a testcase to `longunittest' you have to replace all `@Test' with `@LongTest' in the testclass. `@Test' belongs to `shortunittest'. The target `unittest` executes both, `@Test' and `@LongTest'. Note: Mixing `@Test' and `@LongTest' in a testclass, causes that each testmethod is executed for both, `shortunittest' and `longunittest', mx targets.
author Bernhard Urban <bernhard.urban@jku.at>
date Thu, 14 Mar 2013 19:07:42 +0100
parents 3d840eec7f2b
children 102b5249e97e
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 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.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.snippets"/>
      <src path="${src.dir}/com.oracle.graal.api.runtime"/>
      <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.snippets.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="clean">
    <delete dir="${classes.dir}"/>
    <delete file="${jar.filr}"/>
  </target>
</project>