build.properties revision 578
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand#
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand#
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# This code is free software; you can redistribute it and/or modify it
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# under the terms of the GNU General Public License version 2 only, as
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# published by the Free Software Foundation. Oracle designates this
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# particular file as subject to the "Classpath" exception as provided
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# by Oracle in the LICENSE file that accompanied this code.
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand#
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# This code is distributed in the hope that it will be useful, but WITHOUT
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# version 2 for more details (a copy is included in the LICENSE file that
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# accompanied this code).
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand#
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# You should have received a copy of the GNU General Public License version
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# 2 along with this work; if not, write to the Free Software Foundation,
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand#
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# or visit www.oracle.com if you need additional information or have any
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# questions.
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand#
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# This is the JDK used to build and run the bootstrap version of javac.
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# The bootstrap javac is used to compile both boostrap versions of the
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# other tools, and product versions of all the tools.
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# Override this path as needed, either on the command line or in
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# one of the standard user build.properties files (see build.xml)
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# boot.java.home = /opt/jdk/1.6.0
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandboot.java = ${boot.java.home}/bin/java
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandboot.javac = ${boot.java.home}/bin/javac
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandboot.javac.source = 6
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandboot.javac.target = 6
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# This is the JDK used to run the product version of the tools,
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# for example, for testing. If you're building a complete JDK, specify that.
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# Override this path as needed, either on the command line or in
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# one of the standard user build.properties files (see build.xml)
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# target.java.home = /opt/jdk/1.7.0
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandtarget.java = ${target.java.home}/bin/java
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# Version info -- override as needed
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjdk.version = 1.7.0
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandbuild.number = b00
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandmilestone = internal
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# FIXME -- these need to match the standard values
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# If we include date in full.version (ie for developer build)
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# we will need to make sure the build is idempotent (i.e.
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# repeated builds don't rebuild the tools, because of new
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# timestamps
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# FIXME -- need to include openjdk as needed
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandrelease = ${jdk.version}-${milestone}
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandbootstrap.release = ${release}_bootstrap
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandfull.version = ${release}-${build.number}
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandbootstrap.full.version = ${bootstrap.release}-${build.number}
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# options for the <javac> tasks used to compile the tools
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavac.source = 7
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavac.target = 7
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavac.debug = true
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavac.debuglevel = source,lines
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavac.no.jdk.warnings = -XDignore.symbol.file=true
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# set the following to -version to verify the versions of javac being used
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavac.version.opt =
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# in time, there should be no exceptions to -Xlint:all
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavac.lint.opts = -Xlint:all,-deprecation -Werror
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# options for the <javadoc> task for javac
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavadoc.jls3.url=http://java.sun.com/docs/books/jls/
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavadoc.jls3.cite=&lt;a href=&quot;${javadoc.jls3.url}&quot;&gt;The Java Language Specification, Third Edition&lt;/a&gt;
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavadoc.jls3.option=-tag "jls3:a:See &lt;cite&gt;${javadoc.jls3.cite}&lt;/cite&gt;:"
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# jtreg, used to run the JDK regression tests
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# See http://openjdk.java.net/jtreg/
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# Override this path as needed, either on the command line or in
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# one of the standard user build.properties files (see build.xml)
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# jtreg.home = /opt/jtreg/4.1
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# findbugs
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# See http://findbugs.sourceforge.net/
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# Override this path as needed, either on the command line or in
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# one of the standard user build.properties files (see build.xml)
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# findbugs.home = /opt/findbugs/1.2.1
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# vizant (graph visualization tool for Ant)
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# See http://vizant.sourceforge.net/
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# Override this path as needed, either on the command line or in
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# one of the standard user build.properties files (see build.xml)
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# vizant.jar = /opt/vizant/0.1.2/vizant-0.1.2.jar
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# dot = dot
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand#------------------------------------------------------------
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# The following properties define the packages for each of the tools.
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# Syntactically, they should be suitable as arguments for the "includes"
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# parameter of Ant filesets. In particular, note the trailing '/'.
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavac.includes = \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand javax/annotation/processing/ \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand javax/lang/model/ \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand javax/tools/ \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand com/sun/source/ com/sun/tools/javac/
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavac.tests = \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand tools/javac
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand#
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavadoc.includes = \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand com/sun/javadoc/ \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand com/sun/tools/javadoc/
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavadoc.tests = \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand tools/javadoc/
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand#
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normanddoclets.includes = \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand com/sun/tools/doclets/
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normanddoclets.tests = \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand com/sun/javadoc/
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand#
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavah.includes = \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand com/sun/tools/javah/
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavah.tests = \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand tools/javah/
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand#
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavap.includes = \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand com/sun/tools/classfile/ \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand com/sun/tools/javap/ \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand sun/tools/javap/
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjavap.tests = \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand tools/javap/
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand#
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandapt.includes = \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand com/sun/mirror/ \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand com/sun/tools/apt/
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandapt.tests = \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand tools/apt/
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand#
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# The following files require the latest JDK to be available.
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# The API can be provided by using a suitable boot.java.home
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# or by setting import.jdk
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandrequire.latest.jdk.files = \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand com/sun/tools/javac/nio/*.java
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# The following files in the import jdk source directory are required
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# in order to compile the files defined in ${require.latest.jdk.files}
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand#
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# For NIO, the list of stub files is defined by the contents of the primary
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# API packages, together with such types that may be required in order to
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# compile the stubs. Some of these dependencies would go away if the stub
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# generator were to be improved -- e.g. by removing unnecessary imports.
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand#
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandimport.jdk.stub.files = \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand java/io/File.java \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand java/nio/file/**.java \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand java/nio/file/attribute/**.java \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand java/nio/file/spi/**.java \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand java/nio/channels/AsynchronousChannel.java \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand java/nio/channels/AsynchronousFileChannel.java \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand java/nio/channels/CompletionHandler.java \
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand java/nio/channels/SeekableByteChannel.java
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# The following value is used by the main jtreg target.
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# An empty value means all tests
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand# Override as desired to run a specific set of tests
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normandjtreg.tests =
cda02a28c0f41feb359ebbddd68ed5f1dcd4930eMichel Normand