<?xmlversion="1.0"encoding="UTF-8"?> <!-- ~ Copyright (c) 2007, 2020, 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.
-->
<!-- This is a convenience build file supporting development in the langtools repository. It can be run either standalone, or from IDEs. This build script is for a developer use only, it is not used to build the production version of javac or other langtools tools.
External dependencies are specified via properties. These can be given on the command line, or by providing a local build.properties file. (They can also be edited into make/build.properties, although that is not recommended.) At a minimum, langtools.jdk.home must be set to the installed location of the version of JDK used to build this repository. Additional properties may be required, depending on the targets that are built. For example, to run any of the jtreg tests you must set jtreg.home.
The output of the build is as follows:
build |-bin (scripts to invoke various tools, javac etc.) |-gensrc (generated sources - i.e. properties) |-modules (compiled classes in a modular layout) |-jtreg (test work/results) |-toolclasses (tools used for building - like the property compiler)
This file is organized into sections as follows: - global property definitions - primary top level targets (cleaning, building) - utility definitions
-->
<project name="langtools" default="build" basedir="../.."> <!-- **** Global property definitions.
-->
<!-- The following locations can be used to override default property values. -->
<!-- Use this location for customizations specific to this instance of this workspace -->
<property file="make/langtools/build.properties"/>
<!-- Use this location for customizations common to all OpenJDK langtools workspaces -->
<property file="${user.home}/.openjdk/${ant.project.name}-build.properties"/>
<!-- Use this location for customizations common to all OpenJDK workspaces -->
<property file="${user.home}/.openjdk/build.properties"/>
<!-- java.marker is set to a marker file to check for within a Java install dir. The best file to check for across Linux/Windows/MacOS is one of the
executables; regrettably, that is OS-specific. -->
<condition property="java.marker" value="bin/java">
<os family="unix"/>
</condition>
<condition property="java.marker" value="bin/java.exe">
<os family="windows"/>
</condition>
<!-- Standard property values, if not overridden by earlier settings. -->
<property file="${make.dir}/build.properties"/>
<!-- launcher.java is used in the launcher scripts provided to run the tools' jar files. If it has not already been set, then default it to use ${langtools.jdk.home}, if available, otherwise
quietly default to simply use "java". -->
<condition property="launcher.java"
value="${langtools.jdk.home}/bin/java" else="java">
<isset property="langtools.jdk.home"/>
</condition>
<!-- **** Check targets
-->
<target name="-def-check">
<macrodef name="check">
<attribute name="name"/>
<attribute name="property"/>
<attribute name="marker" default=""/>
<sequential>
<fail message="Cannot locate @{name}: please set @{property} to its location">
<condition>
<not>
<isset property="@{property}"/>
</not>
</condition>
</fail>
<fail message="@{name} is not installed in ${@{property}}">
<condition>
<and>
<not>
<equals arg1="@{marker}" arg2=""/>
</not>
<not>
<available file="${@{property}}/@{marker}"/>
</not>
</and>
</condition>
</fail>
</sequential>
</macrodef>
</target>
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.1Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.