langtools/make/build.properties
author jjg
Fri, 04 Jun 2010 17:33:25 -0700
changeset 5845 6b8e5689445a
parent 5844 76650bf67a5c
child 6148 3a8158299c51
permissions -rw-r--r--
6958802: cleanup and doc langtools build.xml file Reviewed-by: ohair
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
#
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 5004
diff changeset
     2
# Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
#
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 5004
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 5004
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
#
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 5004
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 5004
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 5004
diff changeset
    23
# questions.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
06bc494ca11e Initial load
duke
parents:
diff changeset
    26
# This is the JDK used to build and run the bootstrap version of javac.
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
# The bootstrap javac is used to compile both boostrap versions of the
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
# other tools, and product versions of all the tools.
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
    29
# Override this path as needed, either on the command line or in
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
# one of the standard user build.properties files (see build.xml)
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
    32
# boot.java.home = /opt/jdk/1.6.0
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
boot.java = ${boot.java.home}/bin/java
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
boot.javac = ${boot.java.home}/bin/javac
2982
090c71af18f6 6827026: Change javac source and target default to 7
jjg
parents: 2212
diff changeset
    35
boot.javac.source = 6
090c71af18f6 6827026: Change javac source and target default to 7
jjg
parents: 2212
diff changeset
    36
boot.javac.target = 6
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
# This is the JDK used to run the product version of the tools,
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
# for example, for testing. If you're building a complete JDK, specify that.
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
    40
# Override this path as needed, either on the command line or in
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
# one of the standard user build.properties files (see build.xml)
06bc494ca11e Initial load
duke
parents:
diff changeset
    42
3565
be4461e75d68 6870743: update comments in langtools/make/build.properties
jjg
parents: 3379
diff changeset
    43
# target.java.home = /opt/jdk/1.7.0
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    44
target.java = ${target.java.home}/bin/java
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
# Version info -- override as needed
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
jdk.version = 1.7.0
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
build.number = b00
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
milestone = internal
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
# FIXME -- these need to match the standard values
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
# If we include date in full.version (ie for developer build)
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
# we will need to make sure the build is idempotent (i.e.
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
# repeated builds don't rebuild the tools, because of new
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
# timestamps
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
# FIXME -- need to include openjdk as needed
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
release = ${jdk.version}-${milestone}
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
bootstrap.release = ${release}_bootstrap
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
full.version = ${release}-${build.number}
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
bootstrap.full.version = ${bootstrap.release}-${build.number}
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
# options for the <javac> tasks used to compile the tools
3379
e37ab7805402 6854244: change source/target used to compile JDK to 7
jjg
parents: 3378
diff changeset
    63
javac.source = 7
e37ab7805402 6854244: change source/target used to compile JDK to 7
jjg
parents: 3378
diff changeset
    64
javac.target = 7
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
javac.debug = true
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
javac.debuglevel = source,lines
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
javac.no.jdk.warnings = -XDignore.symbol.file=true
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
# set the following to -version to verify the versions of javac being used
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
    69
javac.version.opt =
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    70
# in time, there should be no exceptions to -Xlint:all
5004
6c2694dc2da0 6929544: langtools source code uses statics qualified by instance variables
jjg
parents: 5002
diff changeset
    71
javac.lint.opts = -Xlint:all,-deprecation -Werror
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    72
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
# options for the <javadoc> task for javac
06bc494ca11e Initial load
duke
parents:
diff changeset
    74
javadoc.jls3.url=http://java.sun.com/docs/books/jls/
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
    75
javadoc.jls3.cite=&lt;a href=&quot;${javadoc.jls3.url}&quot;&gt;The Java Language Specification, Third Edition&lt;/a&gt;
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
javadoc.jls3.option=-tag "jls3:a:See &lt;cite&gt;${javadoc.jls3.cite}&lt;/cite&gt;:"
06bc494ca11e Initial load
duke
parents:
diff changeset
    77
06bc494ca11e Initial load
duke
parents:
diff changeset
    78
# jtreg, used to run the JDK regression tests
5844
76650bf67a5c 6958391: add vizant support to langtools build
jjg
parents: 5520
diff changeset
    79
# See http://openjdk.java.net/jtreg/
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
    80
# Override this path as needed, either on the command line or in
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
# one of the standard user build.properties files (see build.xml)
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
5844
76650bf67a5c 6958391: add vizant support to langtools build
jjg
parents: 5520
diff changeset
    83
# jtreg.home = /opt/jtreg/4.1
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
# findbugs
5844
76650bf67a5c 6958391: add vizant support to langtools build
jjg
parents: 5520
diff changeset
    86
# See http://findbugs.sourceforge.net/
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
    87
# Override this path as needed, either on the command line or in
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    88
# one of the standard user build.properties files (see build.xml)
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
# findbugs.home = /opt/findbugs/1.2.1
06bc494ca11e Initial load
duke
parents:
diff changeset
    91
5844
76650bf67a5c 6958391: add vizant support to langtools build
jjg
parents: 5520
diff changeset
    92
# vizant (graph visualization tool for Ant)
76650bf67a5c 6958391: add vizant support to langtools build
jjg
parents: 5520
diff changeset
    93
# See http://vizant.sourceforge.net/
76650bf67a5c 6958391: add vizant support to langtools build
jjg
parents: 5520
diff changeset
    94
# Override this path as needed, either on the command line or in
76650bf67a5c 6958391: add vizant support to langtools build
jjg
parents: 5520
diff changeset
    95
# one of the standard user build.properties files (see build.xml)
76650bf67a5c 6958391: add vizant support to langtools build
jjg
parents: 5520
diff changeset
    96
76650bf67a5c 6958391: add vizant support to langtools build
jjg
parents: 5520
diff changeset
    97
# vizant.jar = /opt/vizant/0.1.2/vizant-0.1.2.jar
76650bf67a5c 6958391: add vizant support to langtools build
jjg
parents: 5520
diff changeset
    98
# dot = dot
76650bf67a5c 6958391: add vizant support to langtools build
jjg
parents: 5520
diff changeset
    99
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
#------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
# The following properties define the packages for each of the tools.
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
# Syntactically, they should be suitable as arguments for the "includes"
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
# parameter of Ant filesets. In particular, note the trailing '/'.
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
javac.includes = \
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   107
        javax/annotation/processing/ \
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   108
        javax/lang/model/ \
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   109
        javax/tools/ \
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   110
        com/sun/source/ com/sun/tools/javac/
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
javac.tests = \
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   113
        tools/javac
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   114
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   115
#
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   116
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
javadoc.includes = \
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   118
        com/sun/javadoc/ \
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   119
        com/sun/tools/javadoc/
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
javadoc.tests = \
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   122
        tools/javadoc/
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   123
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   124
#
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   125
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
doclets.includes = \
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   127
        com/sun/tools/doclets/
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
06bc494ca11e Initial load
duke
parents:
diff changeset
   129
doclets.tests = \
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   130
        com/sun/javadoc/
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   131
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   132
#
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
javah.includes = \
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   135
        com/sun/tools/javah/
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
javah.tests = \
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   138
        tools/javah/
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   139
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   140
#
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
javap.includes = \
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   143
        com/sun/tools/classfile/ \
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   144
        com/sun/tools/javap/ \
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   145
        sun/tools/javap/
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
javap.tests = \
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   148
        tools/javap/
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   149
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   150
#
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
apt.includes = \
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   153
        com/sun/mirror/ \
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   154
        com/sun/tools/apt/
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
apt.tests = \
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   157
        tools/apt/
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   158
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   159
#
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
5845
6b8e5689445a 6958802: cleanup and doc langtools build.xml file
jjg
parents: 5844
diff changeset
   161
# The following files require the latest JDK to be available.
6b8e5689445a 6958802: cleanup and doc langtools build.xml file
jjg
parents: 5844
diff changeset
   162
# The API can be provided by using a suitable boot.java.home
6b8e5689445a 6958802: cleanup and doc langtools build.xml file
jjg
parents: 5844
diff changeset
   163
# or by setting import.jdk
6b8e5689445a 6958802: cleanup and doc langtools build.xml file
jjg
parents: 5844
diff changeset
   164
require.latest.jdk.files = \
4548
bc0d5b3c3b2d 6906175: bridge JSR199 and JSR 203 APIs
jjg
parents: 4415
diff changeset
   165
    com/sun/tools/javac/nio/*.java
4415
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 3655
diff changeset
   166
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 3655
diff changeset
   167
# The following files in the import jdk source directory are required
5845
6b8e5689445a 6958802: cleanup and doc langtools build.xml file
jjg
parents: 5844
diff changeset
   168
# in order to compile the files defined in ${require.latest.jdk.files}
4548
bc0d5b3c3b2d 6906175: bridge JSR199 and JSR 203 APIs
jjg
parents: 4415
diff changeset
   169
#
bc0d5b3c3b2d 6906175: bridge JSR199 and JSR 203 APIs
jjg
parents: 4415
diff changeset
   170
# For NIO, the list of stub files is defined by the contents of the primary
bc0d5b3c3b2d 6906175: bridge JSR199 and JSR 203 APIs
jjg
parents: 4415
diff changeset
   171
# API packages, together with such types that may be required in order to
bc0d5b3c3b2d 6906175: bridge JSR199 and JSR 203 APIs
jjg
parents: 4415
diff changeset
   172
# compile the stubs. Some of these dependencies would go away if the stub
bc0d5b3c3b2d 6906175: bridge JSR199 and JSR 203 APIs
jjg
parents: 4415
diff changeset
   173
# generator were to be improved -- e.g. by removing unnecessary imports.
bc0d5b3c3b2d 6906175: bridge JSR199 and JSR 203 APIs
jjg
parents: 4415
diff changeset
   174
#
bc0d5b3c3b2d 6906175: bridge JSR199 and JSR 203 APIs
jjg
parents: 4415
diff changeset
   175
import.jdk.stub.files = \
bc0d5b3c3b2d 6906175: bridge JSR199 and JSR 203 APIs
jjg
parents: 4415
diff changeset
   176
    java/io/File.java \
bc0d5b3c3b2d 6906175: bridge JSR199 and JSR 203 APIs
jjg
parents: 4415
diff changeset
   177
    java/nio/file/**.java \
bc0d5b3c3b2d 6906175: bridge JSR199 and JSR 203 APIs
jjg
parents: 4415
diff changeset
   178
    java/nio/file/attribute/**.java \
bc0d5b3c3b2d 6906175: bridge JSR199 and JSR 203 APIs
jjg
parents: 4415
diff changeset
   179
    java/nio/file/spi/**.java \
bc0d5b3c3b2d 6906175: bridge JSR199 and JSR 203 APIs
jjg
parents: 4415
diff changeset
   180
    java/nio/channels/AsynchronousChannel.java \
bc0d5b3c3b2d 6906175: bridge JSR199 and JSR 203 APIs
jjg
parents: 4415
diff changeset
   181
    java/nio/channels/AsynchronousFileChannel.java \
bc0d5b3c3b2d 6906175: bridge JSR199 and JSR 203 APIs
jjg
parents: 4415
diff changeset
   182
    java/nio/channels/CompletionHandler.java \
bc0d5b3c3b2d 6906175: bridge JSR199 and JSR 203 APIs
jjg
parents: 4415
diff changeset
   183
    java/nio/channels/SeekableByteChannel.java
4415
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 3655
diff changeset
   184
3655
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   185
# The following value is used by the main jtreg target.
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   186
# An empty value means all tests
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   187
# Override as desired to run a specific set of tests
f9ee66e780f4 6758471: should be able to set jtreg options in langtools build
jjg
parents: 3565
diff changeset
   188
jtreg.tests =