0N/A<?xml version="1.0" encoding="UTF-8"?>
0N/A<!--
841N/A Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
0N/A DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A
0N/A This code is free software; you can redistribute it and/or modify it
0N/A under the terms of the GNU General Public License version 2 only, as
553N/A published by the Free Software Foundation. Oracle designates this
0N/A particular file as subject to the "Classpath" exception as provided
553N/A by Oracle in the LICENSE file that accompanied this code.
0N/A
0N/A This code is distributed in the hope that it will be useful, but WITHOUT
0N/A ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A version 2 for more details (a copy is included in the LICENSE file that
0N/A accompanied this code).
0N/A
0N/A You should have received a copy of the GNU General Public License version
0N/A 2 along with this work; if not, write to the Free Software Foundation,
0N/A Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A
553N/A Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
553N/A or visit www.oracle.com if you need additional information or have any
553N/A questions.
0N/A-->
0N/A
0N/A<!--
578N/A This is the main build file for the complete langtools repository.
578N/A It is used when building JDK (in which case it is invoked from the
578N/A Makefile), and it can be used when working on the tools themselves,
578N/A in an IDE such as NetBeans.
578N/A
578N/A External dependencies are specified via properties. These can be given
578N/A on the command line, or by providing a local build.properties file.
578N/A (They can also be edited into make/build.properties, although that is not
578N/A recommended.) At a minimum, boot.java.home must be set to the installed
578N/A location of the version of JDK used to build this repository. Additional
578N/A properties may be required, depending on the targets that are built.
578N/A For example, to run any of the jtreg tests you must set jtreg.home,
578N/A to run findbugs on the code you must set findbugs.home, and so on.
578N/A
578N/A For the most part, javac can be built using the previous version of JDK.
578N/A However, a small number of javac files require access to the latest JDK,
578N/A which may not yet have been compiled. To compile these files, you can do
578N/A one of the following:
578N/A - Set boot.java.home to a recent build of the latest version of JDK.
578N/A - Set import.jdk to either a recent build (containing jre/lib/rt.jar)
578N/A or to jdk source repository. In the latter case, stub files will
578N/A automatically be generated and used for the required API, to avoid
578N/A unnecessary compilation of the source repository.
578N/A If you do neither, the relevant files will not be built.
578N/A
578N/A The main build happens in two phases:
578N/A - First, javac and other tools as needed are built using ${boot.java.home}.
578N/A (This implies a constraint on the source code that they can be compiled
578N/A with the previous version of JDK.
578N/A - Second, all required classes are compiled with the latest javac, created
578N/A in the previous step.
578N/A The first phase is called the bootstrap phase. All targets, properties and
578N/A tasks that are specific to that phase have "bootstrap" in their name.
578N/A
578N/A For more details on the JDK build, see
578N/A http://blogs.sun.com/kto/entry/anatomy_of_the_jdk_build
578N/A http://openjdk.java.net/groups/build/
578N/A For more details on the stub generator, see
578N/A http://blogs.sun.com/jjg/entry/building_javac_for_jdk7
578N/A
578N/A Internal details ...
578N/A
578N/A Interim build products are created in the build/ directory.
578N/A Final build products are created in the dist/ directory.
578N/A When building JDK, the dist/directory will contain:
578N/A - A bootstrap compiler suitable for running with ${boot.java.home}
578N/A suitable for compiling downstream parts of JDK
578N/A - Source files and class files for inclusion in the JDK being built
578N/A When building standalone, the dist/directory will contain:
578N/A - Separate jar files for each of the separate langtools components
578N/A - Simple scripts to invoke the tools by executing the corresponding
578N/A jar files.
578N/A These jar files and scripts are "for developer use only".
578N/A
578N/A This file is organized into sections as follows:
578N/A - global property definitions
578N/A - general top level targets
578N/A - general diagnostic/debugging targets
578N/A - groups of targets for each tool: javac, javadoc, doclets, javah, javap, apt
578N/A Within each group, the following targets are provided, where applicable
578N/A build-bootstrap-TOOL build the bootstrap version of the tool
578N/A build-classes-TOOL build the classes for the tool
578N/A build-TOOL build the jar file and script for the tool
578N/A jtreg-TOOL build the tool and run the appropriate tests
578N/A findbugs-TOOL run findbugs on the tool's source oode
578N/A TOOL build the tool, run the tests, and run findbugs
578N/A - utility definitions
0N/A -->
0N/A
0N/A<project name="langtools" default="build" basedir="..">
578N/A <!--
578N/A **** Global property definitions.
578N/A -->
370N/A
272N/A <!-- Force full debuginfo for javac if the debug.classfiles
272N/A property is set. This must be BEFORE the include of
272N/A build.properties because it sets javac.debuglevel. -->
272N/A <condition property="javac.debuglevel" value="source,lines,vars">
272N/A <equals arg1="${debug.classfiles}" arg2="true"/>
272N/A </condition>
272N/A
0N/A <!-- The following locations can be used to override default property values. -->
0N/A
0N/A <!-- Use this location for customizations specific to this instance of this workspace -->
0N/A <property file="build.properties"/>
0N/A
0N/A <!-- Use this location for customizations common to all OpenJDK langtools workspaces -->
0N/A <property file="${user.home}/.openjdk/${ant.project.name}-build.properties"/>
0N/A
0N/A <!-- Use this location for customizations common to all OpenJDK workspaces -->
0N/A <property file="${user.home}/.openjdk/build.properties"/>
370N/A
370N/A <!-- Convenient shorthands for standard locations within the workspace. -->
0N/A <property name="build.dir" location="build"/>
0N/A <property name="build.bootstrap.dir" location="${build.dir}/bootstrap"/>
0N/A <property name="build.coverage.dir" location="${build.dir}/coverage"/>
0N/A <property name="build.classes.dir" location="${build.dir}/classes"/>
0N/A <property name="build.gensrc.dir" location="${build.dir}/gensrc"/>
440N/A <property name="build.genstubs.dir" location="${build.dir}/genstubs"/>
0N/A <property name="build.javadoc.dir" location="${build.dir}/javadoc"/>
0N/A <property name="build.jtreg.dir" location="${build.dir}/jtreg"/>
0N/A <property name="build.toolclasses.dir" location="${build.dir}/toolclasses"/>
0N/A <property name="dist.dir" location="dist"/>
0N/A <property name="dist.bin.dir" location="${dist.dir}/bin"/>
0N/A <property name="dist.coverage.dir" location="${dist.dir}/coverage"/>
0N/A <property name="dist.findbugs.dir" location="${dist.dir}/findbugs"/>
0N/A <property name="dist.lib.dir" location="${dist.dir}/lib"/>
0N/A <property name="make.dir" location="make"/>
0N/A <property name="make.tools.dir" location="${make.dir}/tools"/>
0N/A <property name="src.dir" location="src"/>
0N/A <property name="src.bin.dir" location="${src.dir}/share/bin"/>
0N/A <property name="src.classes.dir" location="${src.dir}/share/classes"/>
0N/A <property name="test.dir" location="test"/>
0N/A
0N/A <!-- java.marker is set to a marker file to check for within a Java install dir.
0N/A The best file to check for across Solaris/Linux/Windows/MacOS is one of the
0N/A executables; regrettably, that is OS-specific. -->
0N/A <condition property="java.marker" value="bin/java">
370N/A <os family="unix"/>
0N/A </condition>
0N/A <condition property="java.marker" value="bin/java.exe">
370N/A <os family="windows"/>
0N/A </condition>
370N/A
0N/A <!-- Standard property values, if not overriden by earlier settings. -->
370N/A <property file="${make.dir}/build.properties"/>
369N/A
369N/A <!-- launcher.java is used in the launcher scripts provided to run
370N/A the tools' jar files. If it has not already been set, then
370N/A default it to use ${target.java.home}, if available, otherwise
370N/A quietly default to simply use "java". -->
370N/A <condition property="launcher.java"
370N/A value="${target.java.home}/bin/java" else="java">
370N/A <isset property="target.java.home"/>
369N/A </condition>
369N/A
440N/A <!-- Logic for handling access import jdk classes, if available.
440N/A import.jdk should be unset, or set to jdk home (to use rt.jar)
440N/A or to jdk repo (to use src/share/classes).
440N/A Based on the value, if any, set up default values for javac's sourcepath,
449N/A classpath and bootclasspath. Note: the default values are overridden
440N/A in the build-bootstrap-classes macro. -->
440N/A
440N/A <available property="import.jdk.src.dir" value="${import.jdk}/src/share/classes"
440N/A filepath="${import.jdk}/src/share/classes" file="java/nio/file/Path.java"/>
440N/A <available property="import.jdk.jar" value="${import.jdk}/jre/lib/rt.jar"
440N/A ignoresystemclasses="true"
440N/A classpath="${import.jdk}/jre/lib/rt.jar" classname="java.nio.file.Path"/>
440N/A
578N/A <!-- Set the default bootclasspath option used for javac.
578N/A Note that different variants of the option are used, meaning we can't just
578N/A define the value for the option.
578N/A Note the explicit use of the standard property ${path.separator} in the following.
578N/A This is because Ant is not clever enough to handle direct use of : or ; -->
440N/A <condition property="javac.bootclasspath.opt"
462N/A value="-Xbootclasspath:${build.classes.dir}${path.separator}${import.jdk.jar}"
440N/A else="-Xbootclasspath/p:${build.classes.dir}">
440N/A <isset property="import.jdk.jar"/>
440N/A </condition>
440N/A
578N/A <condition property="boot.java.provides.latest.jdk">
578N/A <available
578N/A ignoresystemclasses="true"
578N/A classpath="${boot.java.home}/jre/lib/rt.jar" classname="java.nio.file.Path"/>
578N/A </condition>
578N/A
578N/A <condition property="bootstrap.exclude.files" value="" else="${require.latest.jdk.files}">
578N/A <isset property="boot.java.provides.latest.jdk"/>
578N/A </condition>
578N/A
578N/A <condition property="exclude.files" value="" else="${require.latest.jdk.files}">
578N/A <or>
578N/A <isset property="boot.java.provides.latest.jdk"/>
578N/A <isset property="import.jdk"/>
578N/A </or>
440N/A </condition>
440N/A
578N/A <condition property="require.import.jdk.stubs">
578N/A <and>
578N/A <not>
578N/A <isset property="boot.java.provides.latest.jdk"/>
578N/A </not>
578N/A <isset property="import.jdk.src.dir"/>
578N/A </and>
578N/A </condition>
578N/A
578N/A <!-- Set the default value of the sourcepath used for javac. -->
578N/A <condition property="javac.sourcepath" value="${build.genstubs.dir}" else="">
578N/A <isset property="require.import.jdk.stubs"/>
578N/A </condition>
578N/A
578N/A <!-- Set the default value of the classpath used for javac. -->
578N/A <property name="javac.classpath" value=""/>
578N/A
578N/A
578N/A <!--
578N/A **** General top level targets.
578N/A -->
370N/A
0N/A <!-- Standard target to build deliverables for JDK build. -->
0N/A
0N/A <target name="build" depends="build-bootstrap-tools,build-all-classes">
0N/A <copy todir="${dist.dir}/bootstrap">
0N/A <fileset dir="${build.bootstrap.dir}" includes="bin/,lib/"/>
0N/A </copy>
0N/A <chmod dir="${dist.dir}/bootstrap/bin" perm="ugo+rx">
0N/A <include name="*"/>
0N/A </chmod>
0N/A <mkdir dir="${dist.lib.dir}"/>
0N/A <jar file="${dist.lib.dir}/classes.jar" basedir="${build.classes.dir}"/>
0N/A <zip file="${dist.lib.dir}/src.zip" basedir="${src.classes.dir}"/>
0N/A </target>
370N/A
440N/A <target name="build-bootstrap-tools"
440N/A depends="build-bootstrap-javac,build-bootstrap-javadoc,build-bootstrap-doclets,build-bootstrap-javah"
440N/A />
370N/A
440N/A <target name="build-all-tools"
440N/A depends="build-javac,build-javadoc,build-doclets,build-javah,build-javap,build-apt"
440N/A />
370N/A
440N/A <target name="build-all-classes" depends="build-bootstrap-javac,-create-import-jdk-stubs">
435N/A <build-classes includes="${javac.includes} ${javadoc.includes} ${doclets.includes} ${javah.includes} ${javap.includes} ${apt.includes}"/>
435N/A </target>
370N/A
0N/A <!-- clean -->
0N/A
0N/A <target name="clean" description="Delete all generated files">
0N/A <delete dir="${build.dir}"/>
0N/A <delete dir="${dist.dir}"/>
0N/A </target>
0N/A
0N/A <!-- Additional targets for running tools on the build -->
0N/A
370N/A <target name="jtreg" depends="build-all-tools,-def-jtreg">
370N/A <jtreg-tool name="all" tests="${jtreg.tests}"/>
370N/A </target>
370N/A
0N/A <target name="findbugs" depends="-def-findbugs,build-all-tools">
0N/A <property name="findbugs.reportLevel" value="medium"/>
0N/A <mkdir dir="${dist.findbugs.dir}"/>
0N/A <findbugs
0N/A home="${findbugs.home}"
0N/A projectName="JDK langtools ${full.version}"
0N/A output="xml"
0N/A outputFile="${dist.findbugs.dir}/findbugs.xml"
0N/A reportLevel="${findbugs.reportLevel}"
0N/A failOnError="false"
0N/A errorProperty="findbugs.all.errors"
0N/A warningsProperty="findbugs.all.warnings"
680N/A jvm="${target.java.home}/bin/java"
0N/A jvmargs="-Xmx512M">
0N/A <class location="${build.classes.dir}"/>
0N/A <sourcePath>
0N/A <pathelement location="${src.classes.dir}"/>
0N/A </sourcePath>
0N/A </findbugs>
0N/A <exec executable="sh">
0N/A <arg value="${findbugs.home}/bin/convertXmlToText"/>
0N/A <arg value="-longBugCodes"/>
0N/A <arg value="-html:${findbugs.home}/src/xsl/fancy.xsl"/>
0N/A <arg value="${dist.findbugs.dir}/findbugs.xml"/>
0N/A <redirector output="${dist.findbugs.dir}/findbugs.html"/>
45N/A </exec>
0N/A </target>
0N/A
0N/A <target name="coverage" depends="-def-cobertura,build-all-classes,instrument-classes,jtreg,coverage-report"/>
0N/A
0N/A <target name="instrument-classes" depends="-def-cobertura">
0N/A <!-- only define the following property when we want coverage info -->
0N/A <path id="coverage.classpath">
0N/A <pathelement location="${build.coverage.dir}/classes"/>
0N/A <path refid="cobertura.classpath"/>
0N/A </path>
0N/A <property name="coverage.options" value="-Dnet.sourceforge.cobertura.datafile=${build.coverage.dir}/cobertura.ser"/>
0N/A <property name="coverage.classpath" refid="coverage.classpath"/>
0N/A <mkdir dir="${build.coverage.dir}/classes"/>
0N/A <delete file="${build.coverage.dir}/cobertura.ser"/>
0N/A <cobertura-instrument todir="${build.coverage.dir}/classes"
0N/A datafile="${build.coverage.dir}/cobertura.ser">
370N/A <fileset dir="${build.classes.dir}"
0N/A includes="**/*.class" excludes="**/resources/*.class"/>
0N/A </cobertura-instrument>
370N/A </target>
0N/A
0N/A <target name="coverage-report" depends="-def-cobertura">
0N/A <mkdir dir="${dist.coverage.dir}"/>
370N/A <cobertura-report
0N/A srcdir="${src.classes.dir}"
0N/A destdir="${dist.coverage.dir}"
0N/A datafile="${build.coverage.dir}/cobertura.ser"/>
370N/A <cobertura-report
370N/A format="xml"
370N/A srcdir="${src.classes.dir}"
0N/A destdir="${dist.coverage.dir}"
0N/A datafile="${build.coverage.dir}/cobertura.ser"/>
0N/A </target>
370N/A
609N/A <target name="diags-examples" depends="build-javac">
609N/A <!-- can override the following on the command line if desired. -->
609N/A <property name="diags.examples.out" location="${build.dir}/diag-examples/diags-examples.html"/>
609N/A <mkdir dir="${build.dir}/diag-examples/classes"/>
609N/A <javac fork="true"
609N/A executable="${dist.bin.dir}/javac"
609N/A srcdir="test/tools/javac/diags"
609N/A destdir="${build.dir}/diag-examples/classes"
841N/A includes="ArgTypeCompilerFactory.java,Example.java,FileManager.java,HTMLWriter.java,RunExamples.java"
609N/A sourcepath=""
609N/A classpath="${dist.lib.dir}/javac.jar"
609N/A includeAntRuntime="no"
609N/A debug="${javac.debug}"
609N/A debuglevel="${javac.debuglevel}"/>
609N/A <java fork="true"
609N/A jvm="${target.java.home}/bin/java"
609N/A dir="test/tools/javac/diags"
609N/A classpath="${build.dir}/diag-examples/classes;${dist.lib.dir}/javac.jar"
609N/A classname="RunExamples">
609N/A <arg value="-examples"/>
609N/A <arg value="examples"/>
609N/A <arg value="-o"/>
609N/A <arg file="${diags.examples.out}"/>
609N/A <arg value="-showFiles"/>
609N/A <arg value="-title"/>
609N/A <arg value="Examples of javac diagnostics"/>
609N/A </java>
609N/A </target>
609N/A
824N/A <!-- a patching facility to speed up incorporating the langtools' classfiles
824N/A into a jdk of your choice. Either target.java.home or patch.jdk can be
824N/A set on the command line; setting target.java.home has the advantage of
824N/A patching the jdk used for jtreg and other tests.
824N/A -->
824N/A <target name="patch" depends="build-all-classes">
824N/A <condition property="patch.jdk" value="${target.java.home}">
824N/A <available file="${target.java.home}" type="dir"/>
824N/A </condition>
824N/A <fail message="patch.jdk or target.java.home is not set, please set target.java.home, or patch.jdk for an alternate jdk image to patch">
824N/A <condition>
824N/A <not>
824N/A <isset property="patch.jdk"/>
824N/A </not>
824N/A </condition>
824N/A </fail>
824N/A <property name="patch.tools.jar" location="${patch.jdk}/lib/tools.jar"/>
824N/A <property name="patch.rt.jar" location="${patch.jdk}/jre/lib/rt.jar"/>
824N/A <fail message="patch.jdk or target.java.home must point to a valid jdk image: missing tools.jar">
824N/A <condition>
824N/A <not>
824N/A <available file="${patch.tools.jar}" type="file"/>
824N/A </not>
824N/A </condition>
824N/A </fail>
824N/A <fail message="patch.jdk or target.java.home must point to a valid jdk image: missing rt.jar">
824N/A <condition>
824N/A <not>
824N/A <available file="${patch.rt.jar}" type="file"/>
824N/A </not>
824N/A </condition>
824N/A </fail>
824N/A <zip zipfile="${patch.tools.jar}" update="true">
824N/A <zipfileset dir="${build.classes.dir}" includes="com/**"/>
824N/A </zip>
824N/A <zip zipfile="${patch.rt.jar}" update="true">
824N/A <zipfileset dir="${build.classes.dir}" includes="javax/**"/>
824N/A </zip>
824N/A </target>
578N/A
578N/A <!--
578N/A **** Debugging/diagnostic targets.
578N/A -->
578N/A
578N/A <!-- standard JDK target -->
578N/A <target name="sanity"
578N/A description="display settings of configuration values">
578N/A <echo level="info">ant.home = ${ant.home}</echo>
578N/A <echo level="info">boot.java.home = ${boot.java.home}</echo>
578N/A <echo level="info">target.java.home = ${target.java.home}</echo>
578N/A <echo level="info">jtreg.home = ${jtreg.home}</echo>
578N/A <echo level="info">findbugs.home = ${findbugs.home}</echo>
578N/A </target>
578N/A
578N/A <target name="post-sanity" depends="-def-jtreg,sanity,build"
578N/A description="perform basic validation after a standard build">
578N/A <jtreg
578N/A dir="make/test"
578N/A workDir="${build.jtreg.dir}/post-sanity/work"
578N/A reportDir="${build.jtreg.dir}/post-sanity/report"
578N/A jdk="${target.java.home}"
578N/A verbose="summary"
578N/A failonerror="false" resultproperty="jtreg.post-sanity.result">
578N/A </jtreg>
578N/A </target>
578N/A
578N/A <!-- use vizant tool to generate graphical image of this Ant file.-->
578N/A <target name="vizant" depends="-def-vizant">
578N/A <mkdir dir="${build.dir}"/>
578N/A <echo message="Generating ${build.dir}/build.dot"/>
578N/A <vizant antfile="${make.dir}/build.xml" outfile="${build.dir}/build.dot"/>
578N/A <echo message="Generating ${build.dir}/build.png"/>
578N/A <exec executable="${dot}" >
578N/A <arg value="-Tpng"/>
578N/A <arg value="-o"/>
578N/A <arg file="${build.dir}/build.png"/>
578N/A <arg file="${build.dir}/build.dot"/>
578N/A </exec>
578N/A </target>
578N/A
578N/A <target name="check-import.jdk">
578N/A <echo message="import.jdk: ${import.jdk}"/>
578N/A <echo message="import.jdk.jar: ${import.jdk.jar}"/>
578N/A <echo message="import.jdk.src.dir: ${import.jdk.src.dir}"/>
578N/A </target>
578N/A
578N/A <target name="diagnostics">
578N/A <diagnostics/>
578N/A </target>
578N/A
578N/A
578N/A <!--
578N/A **** javac targets.
578N/A -->
0N/A
435N/A <target name="build-bootstrap-javac"
435N/A depends="-def-build-bootstrap-classes,-def-build-bootstrap-jar,-def-build-bootstrap-tool">
435N/A <build-bootstrap-classes includes="${javac.includes}"/>
435N/A <build-bootstrap-jar name="javac" includes="${javac.includes}"/>
435N/A <build-bootstrap-tool name="javac"/>
0N/A </target>
370N/A
440N/A <target name="build-classes-javac" depends="build-bootstrap-javac,-create-import-jdk-stubs">
435N/A <build-classes includes="${javac.includes}"/>
0N/A </target>
370N/A
435N/A <target name="build-javac" depends="build-classes-javac">
435N/A <build-jar name="javac" includes="${javac.includes}"/>
435N/A <build-tool name="javac"/>
0N/A </target>
370N/A
0N/A <target name="javadoc-javac" depends="build-javac,-def-javadoc-tool">
971N/A <javadoc-tool name="javac" includes="${javac.includes}" options="${javadoc.jls.option}"/>
0N/A </target>
370N/A
435N/A <target name="jtreg-javac" depends="build-javac,build-javap,-def-jtreg">
370N/A <jtreg-tool name="javac" tests="${javac.tests}"/>
0N/A </target>
370N/A
0N/A <target name="findbugs-javac" depends="build-javac,-def-findbugs">
0N/A <findbugs-tool name="javac"/>
0N/A </target>
370N/A
0N/A <target name="javac" depends="build-javac,jtreg-javac,findbugs-javac"/>
370N/A
578N/A
578N/A <!--
578N/A **** javadoc targets.
578N/A -->
0N/A
0N/A <target name="build-bootstrap-javadoc" depends="build-bootstrap-javac">
435N/A <build-bootstrap-classes includes="${javadoc.includes}"/>
435N/A <build-bootstrap-jar name="javadoc" includes="${javadoc.includes}"
435N/A jarclasspath="javac.jar doclets.jar"/>
435N/A <build-bootstrap-tool name="javadoc"/>
0N/A </target>
370N/A
0N/A <target name="build-classes-javadoc" depends="build-classes-javac">
435N/A <build-classes includes="${javadoc.includes}"/>
0N/A </target>
370N/A
435N/A <target name="build-javadoc" depends="build-javac,build-classes-javadoc">
435N/A <build-jar name="javadoc" includes="${javadoc.includes}"
0N/A jarclasspath="javac.jar doclets.jar"/>
435N/A <build-tool name="javadoc"/>
0N/A </target>
370N/A
0N/A <target name="javadoc-javadoc" depends="build-javadoc,-def-javadoc-tool">
0N/A <javadoc-tool name="javadoc" includes="${javadoc.includes}"/>
0N/A </target>
370N/A
0N/A <target name="jtreg-javadoc" depends="build-javadoc,-def-jtreg">
370N/A <jtreg-tool name="javadoc" tests="${javadoc.tests}"/>
0N/A </target>
370N/A
0N/A <target name="findbugs-javadoc" depends="build-javadoc,-def-findbugs">
0N/A <findbugs-tool name="javadoc"/>
0N/A </target>
370N/A
0N/A <target name="javadoc" depends="build-javadoc,jtreg-javadoc,findbugs-javadoc"/>
370N/A
578N/A
578N/A <!--
578N/A **** doclets targets.
578N/A -->
0N/A
0N/A <target name="build-bootstrap-doclets" depends="build-bootstrap-javadoc,-def-build-bootstrap-jar">
435N/A <build-bootstrap-classes includes="${doclets.includes}"/>
435N/A <build-bootstrap-jar name="doclets" includes="${doclets.includes}"
435N/A jarmainclass="com.sun.tools.javadoc.Main"
435N/A jarclasspath="javadoc.jar"/>
0N/A </target>
370N/A
0N/A <target name="build-classes-doclets" depends="build-classes-javadoc">
435N/A <build-classes includes="${doclets.includes}"/>
0N/A </target>
370N/A
435N/A <target name="build-doclets" depends="build-javadoc,build-classes-doclets">
0N/A <!-- just jar, no bin for doclets -->
435N/A <build-jar name="doclets" includes="${doclets.includes}" jarclasspath="javadoc.jar"/>
0N/A </target>
0N/A
0N/A <!-- (no javadoc for doclets) -->
370N/A
0N/A <target name="jtreg-doclets" depends="build-doclets,-def-jtreg">
370N/A <jtreg-tool name="doclets" tests="${doclets.tests}"/>
0N/A </target>
370N/A
0N/A <target name="findbugs-doclets" depends="build-doclets,-def-findbugs">
0N/A <findbugs-tool name="doclets"/>
0N/A </target>
370N/A
0N/A <target name="doclets" depends="build-doclets,jtreg-doclets,findbugs-doclets"/>
370N/A
578N/A
578N/A <!--
578N/A **** javah targets.
578N/A -->
0N/A
0N/A <target name="build-bootstrap-javah" depends="build-bootstrap-javadoc">
435N/A <build-bootstrap-classes includes="${javah.includes}"/>
435N/A <build-bootstrap-jar name="javah" includes="${javah.includes}"
435N/A jarclasspath="javadoc.jar doclets.jar javac.jar"/>
435N/A <build-bootstrap-tool name="javah"/>
0N/A </target>
370N/A
435N/A <target name="build-javah" depends="build-javac,build-classes-javah">
435N/A <build-jar name="javah" includes="${javah.includes}" jarclasspath="javac.jar"/>
435N/A <build-tool name="javah"/>
0N/A </target>
370N/A
0N/A <target name="build-classes-javah" depends="build-classes-javadoc">
435N/A <build-classes includes="${javah.includes}"/>
0N/A </target>
370N/A
0N/A <!-- (no javadoc for javah) -->
0N/A
0N/A <target name="jtreg-javah" depends="build-javah,-def-jtreg">
370N/A <jtreg-tool name="javah" tests="${javah.tests}"/>
0N/A </target>
370N/A
0N/A <target name="findbugs-javah" depends="build-javah,-def-findbugs">
0N/A <findbugs-tool name="javah"/>
0N/A </target>
370N/A
0N/A <target name="javah" depends="build-javah,jtreg-javah,findbugs-javah"/>
370N/A
578N/A
578N/A <!--
578N/A **** javap targets.
578N/A -->
0N/A
435N/A <target name="build-bootstrap-javap"
435N/A depends="-def-build-bootstrap-classes,-def-build-bootstrap-jar,-def-build-bootstrap-tool">
435N/A <build-bootstrap-classes includes="${javap.includes}"/>
435N/A <build-bootstrap-jar name="javap" includes="${javap.includes}"
435N/A jarmainclass="sun.tools.javap.Main"/>
435N/A <build-bootstrap-tool name="javap"/>
0N/A </target>
370N/A
45N/A <target name="build-classes-javap" depends="build-classes-javac">
435N/A <build-classes includes="${javap.includes}"/>
0N/A </target>
370N/A
435N/A <target name="build-javap" depends="build-javac,build-classes-javap">
435N/A <build-jar name="javap" includes="${javap.includes}"
290N/A jarmainclass="com.sun.tools.javap.Main"
45N/A jarclasspath="javac.jar"/>
435N/A <build-tool name="javap"/>
0N/A </target>
370N/A
0N/A <!-- (no javadoc for javap) -->
0N/A
0N/A <target name="jtreg-javap" depends="build-javap,-def-jtreg">
370N/A <jtreg-tool name="javap" tests="${javap.tests}"/>
0N/A </target>
370N/A
0N/A <target name="findbugs-javap" depends="build-javap,-def-findbugs">
0N/A <findbugs-tool name="javap"/>
0N/A </target>
370N/A
0N/A <target name="javap" depends="build-javap,jtreg-javap,findbugs-javap"/>
370N/A
578N/A
578N/A <!--
578N/A **** apt targets.
578N/A -->
370N/A
0N/A <target name="build-bootstrap-apt" depends="build-bootstrap-javac">
435N/A <build-bootstrap-classes includes="${apt.includes}"/>
435N/A <build-bootstrap-jar name="apt" includes="${apt.includes}"
435N/A jarclasspath="javac.jar"/>
435N/A <build-bootstrap-tool name="apt"/>
0N/A </target>
370N/A
435N/A <target name="build-apt" depends="build-javac,build-classes-apt">
435N/A <build-jar name="apt" includes="${apt.includes}" jarclasspath="javac.jar"/>
435N/A <build-tool name="apt"/>
0N/A </target>
370N/A
0N/A <target name="build-classes-apt" depends="build-classes-javac">
435N/A <build-classes includes="${apt.includes}"/>
0N/A </target>
370N/A
0N/A <target name="javadoc-apt" depends="build-apt,-def-javadoc-tool">
0N/A <javadoc-tool name="apt" includes="${apt.includes}"/>
0N/A </target>
370N/A
370N/A
0N/A <target name="jtreg-apt" depends="build-apt,-def-jtreg">
370N/A <jtreg-tool name="apt" tests="${apt.tests}"/>
0N/A </target>
370N/A
0N/A <target name="findbugs-apt" depends="build-apt,-def-findbugs">
0N/A <findbugs-tool name="apt"/>
0N/A </target>
370N/A
0N/A <target name="apt" depends="build-apt,jtreg-apt,findbugs-apt"/>
0N/A
440N/A
578N/A <!--
578N/A **** Create import JDK stubs.
578N/A -->
578N/A
578N/A <target name="-create-import-jdk-stubs" depends="-def-genstubs" if="require.import.jdk.stubs">
440N/A <mkdir dir="${build.genstubs.dir}"/>
440N/A <genstubs
440N/A srcdir="${import.jdk.src.dir}" destdir="${build.genstubs.dir}"
440N/A includes="${import.jdk.stub.files}"
679N/A fork="true" classpath="${build.toolclasses.dir}:${build.bootstrap.dir}/classes:${ant.core.lib}"
440N/A />
440N/A </target>
440N/A
578N/A
578N/A <!--
578N/A **** Check targets.
578N/A **** "-check-*" targets check that a required property is set, and set to a reasonable value.
578N/A **** A user friendly message is generated if not, and the build exits.
578N/A -->
370N/A
0N/A <target name="-check-boot.java.home" depends="-def-check">
0N/A <check name="bootstrap java" property="boot.java.home" marker="${java.marker}"/>
0N/A </target>
370N/A
0N/A <target name="-check-target.java.home" depends="-def-check">
0N/A <check name="target java" property="target.java.home" marker="${java.marker}"/>
0N/A </target>
370N/A
0N/A <target name="-check-cobertura.home" depends="-def-check">
0N/A <check name="cobertura" property="cobertura.home" marker="cobertura.jar"/>
0N/A </target>
370N/A
0N/A <target name="-check-findbugs.home" depends="-def-check">
0N/A <check name="findbugs" property="findbugs.home" marker="lib/findbugs.jar"/>
0N/A </target>
370N/A
0N/A <target name="-check-jtreg.home" depends="-def-check">
0N/A <check name="jtreg" property="jtreg.home" marker="lib/jtreg.jar"/>
0N/A </target>
370N/A
577N/A <target name="-check-vizant" depends="-def-check">
577N/A <check name="vizant" property="vizant.jar"/>
577N/A <check name="dot" property="dot"/>
577N/A </target>
577N/A
578N/A
578N/A <!--
578N/A **** Targets for Ant macro and task definitions.
578N/A -->
0N/A
435N/A <target name="-def-build-tool">
0N/A <macrodef name="build-tool">
0N/A <attribute name="name"/>
0N/A <attribute name="bin.dir" default="${dist.bin.dir}"/>
369N/A <attribute name="java" default="${launcher.java}"/>
0N/A <sequential>
0N/A <mkdir dir="@{bin.dir}"/>
0N/A <copy file="${src.bin.dir}/launcher.sh-template" tofile="@{bin.dir}/@{name}">
0N/A <filterset begintoken="#" endtoken="#">
370N/A <filter token="PROGRAM" value="@{name}"/>
370N/A <filter token="TARGET_JAVA" value="@{java}"/>
655N/A <filter token="PS" value="${path.separator}"/>
0N/A </filterset>
0N/A </copy>
0N/A <chmod file="@{bin.dir}/@{name}" perm="ugo+rx"/>
0N/A </sequential>
0N/A </macrodef>
0N/A </target>
0N/A
435N/A <target name="-def-build-jar">
0N/A <macrodef name="build-jar">
0N/A <attribute name="name"/>
0N/A <attribute name="includes"/>
0N/A <attribute name="classes.dir" default="${build.classes.dir}"/>
0N/A <attribute name="lib.dir" default="${dist.lib.dir}"/>
0N/A <attribute name="jarmainclass" default="com.sun.tools.@{name}.Main"/>
0N/A <attribute name="jarclasspath" default=""/>
0N/A <sequential>
0N/A <mkdir dir="@{lib.dir}"/>
0N/A <jar destfile="@{lib.dir}/@{name}.jar"
0N/A basedir="@{classes.dir}"
0N/A includes="@{includes}">
370N/A <manifest>
0N/A <attribute name="Main-Class" value="@{jarmainclass}"/>
0N/A <attribute name="Class-Path" value="@{jarclasspath}"/>
0N/A </manifest>
0N/A </jar>
0N/A </sequential>
0N/A </macrodef>
0N/A </target>
0N/A
0N/A <target name="-def-build-classes" depends="-def-pcompile">
0N/A <macrodef name="build-classes">
0N/A <attribute name="includes"/>
440N/A <attribute name="excludes" default="${exclude.files} **/package-info.java"/>
0N/A <attribute name="classes.dir" default="${build.classes.dir}"/>
0N/A <attribute name="gensrc.dir" default="${build.gensrc.dir}"/>
440N/A <attribute name="javac.bootclasspath" default="${build.bootstrap.dir}/classes"/>
440N/A <attribute name="bootclasspath.opt" default="${javac.bootclasspath.opt}"/>
440N/A <attribute name="classpath" default="${javac.classpath}"/>
440N/A <attribute name="sourcepath" default="${javac.sourcepath}"/>
435N/A <attribute name="java.home" default="${boot.java.home}"/>
435N/A <attribute name="source" default="${javac.source}"/>
435N/A <attribute name="target" default="${javac.target}"/>
0N/A <attribute name="release" default="${release}"/>
0N/A <attribute name="full.version" default="${full.version}"/>
0N/A <sequential>
440N/A <echo level="verbose" message="build-classes: excludes=@{excludes}"/>
440N/A <echo level="verbose" message="build-classes: bootclasspath.opt=@{bootclasspath.opt}"/>
440N/A <echo level="verbose" message="build-classes: classpath=@{classpath}"/>
440N/A <echo level="verbose" message="build-classes: sourcepath=@{sourcepath}"/>
0N/A <mkdir dir="@{gensrc.dir}"/>
0N/A <mkdir dir="@{classes.dir}"/>
0N/A <pcompile srcdir="${src.classes.dir}"
0N/A destdir="@{gensrc.dir}"
0N/A includes="@{includes}"/>
0N/A <copy todir="@{gensrc.dir}">
45N/A <fileset dir="${src.classes.dir}" includes="@{includes}"/>
0N/A <globmapper from="*.properties-template" to="*.properties"/>
0N/A <filterset begintoken="$(" endtoken=")">
0N/A <filter token="JDK_VERSION" value="${jdk.version}"/>
0N/A <filter token="RELEASE" value="@{release}"/>
0N/A <filter token="FULL_VERSION" value="@{full.version}"/>
0N/A </filterset>
0N/A </copy>
0N/A <pcompile srcdir="@{gensrc.dir}"
0N/A destdir="@{gensrc.dir}"
0N/A includes="**/*.properties"/>
0N/A <javac fork="true"
435N/A executable="@{java.home}/bin/javac"
435N/A srcdir="${src.classes.dir}:@{gensrc.dir}"
0N/A destdir="@{classes.dir}"
0N/A includes="@{includes}"
0N/A excludes="@{excludes}"
440N/A sourcepath="@{sourcepath}"
440N/A classpath="@{classpath}"
0N/A includeAntRuntime="no"
435N/A source="@{source}"
435N/A target="@{target}"
370N/A debug="${javac.debug}"
0N/A debuglevel="${javac.debuglevel}">
440N/A <compilerarg value="-implicit:none"/>
440N/A <compilerarg value="-Xprefer:source"/>
440N/A <compilerarg value="-J-Xbootclasspath/p:@{javac.bootclasspath}"/>
440N/A <compilerarg line="@{bootclasspath.opt}"/>
0N/A <compilerarg line="${javac.no.jdk.warnings}"/>
0N/A <compilerarg line="${javac.version.opt}"/>
0N/A <compilerarg line="${javac.lint.opts}"/>
0N/A </javac>
449N/A <copy todir="@{classes.dir}" includeemptydirs="false">
449N/A <fileset dir="${src.classes.dir}" includes="@{includes}" excludes="@{excludes}">
0N/A <exclude name="**/*.java"/>
0N/A <exclude name="**/*.properties"/>
0N/A <exclude name="**/*-template"/>
944N/A <exclude name="**/*.rej"/>
944N/A <exclude name="**/*.orig"/>
944N/A <exclude name="**/overview.html"/>
0N/A <exclude name="**/package.html"/>
0N/A </fileset>
0N/A </copy>
0N/A </sequential>
0N/A </macrodef>
0N/A </target>
370N/A
0N/A <target name="-def-build-bootstrap-tool" depends="-check-boot.java.home,-def-build-tool">
0N/A <presetdef name="build-bootstrap-tool">
0N/A <build-tool
0N/A bin.dir="${build.bootstrap.dir}/bin"
435N/A java="${boot.java}"/>
0N/A </presetdef>
0N/A </target>
370N/A
0N/A <target name="-def-build-bootstrap-jar" depends="-def-build-jar">
0N/A <presetdef name="build-bootstrap-jar">
0N/A <build-jar
435N/A classes.dir="${build.bootstrap.dir}/classes"
435N/A lib.dir="${build.bootstrap.dir}/lib"/>
435N/A </presetdef>
435N/A </target>
435N/A
435N/A <target name="-def-build-bootstrap-classes" depends="-def-build-classes">
435N/A <presetdef name="build-bootstrap-classes">
435N/A <build-classes
435N/A source="${boot.javac.source}"
435N/A target="${boot.javac.target}"
0N/A gensrc.dir="${build.bootstrap.dir}/gensrc"
0N/A classes.dir="${build.bootstrap.dir}/classes"
440N/A javac.bootclasspath=""
440N/A bootclasspath.opt="-Xbootclasspath/p:${build.bootstrap.dir}/classes"
440N/A sourcepath=""
0N/A release="${bootstrap.release}"
440N/A full.version="${bootstrap.full.version}"
578N/A excludes="${bootstrap.exclude.files} **/package-info.java"/>
0N/A </presetdef>
0N/A </target>
370N/A
0N/A <target name="-def-pcompile">
0N/A <mkdir dir="${build.toolclasses.dir}"/>
198N/A <javac fork="true"
373N/A source="${boot.javac.source}"
373N/A target="${boot.javac.target}"
198N/A executable="${boot.java.home}/bin/javac"
198N/A srcdir="${make.tools.dir}/CompileProperties"
0N/A destdir="${build.toolclasses.dir}/"
679N/A classpath="${ant.core.lib}"
679N/A includeantruntime="false"/>
0N/A <taskdef name="pcompile"
370N/A classname="CompilePropertiesTask"
0N/A classpath="${build.toolclasses.dir}/"/>
0N/A </target>
370N/A
578N/A <target name="-def-genstubs" depends="build-bootstrap-javac" if="require.import.jdk.stubs">
440N/A <mkdir dir="${build.toolclasses.dir}"/>
440N/A <javac fork="true"
440N/A source="${boot.javac.source}"
440N/A target="${boot.javac.target}"
440N/A executable="${boot.java.home}/bin/javac"
440N/A srcdir="${make.tools.dir}/GenStubs"
440N/A destdir="${build.toolclasses.dir}/"
872N/A classpath="${ant.core.lib}"
872N/A includeantruntime="false">
872N/A <compilerarg value="-Xbootclasspath/p:${build.bootstrap.dir}/classes"/>
872N/A </javac>
440N/A <taskdef name="genstubs"
440N/A classname="GenStubs$$Ant"
440N/A classpath="${build.toolclasses.dir}/"/>
440N/A </target>
440N/A
0N/A <target name="-def-javadoc-tool" depends="-check-target.java.home">
0N/A <macrodef name="javadoc-tool">
0N/A <attribute name="name"/>
0N/A <attribute name="includes"/>
0N/A <attribute name="options" default=""/>
0N/A <attribute name="source" default="1.5"/> <!-- FIXME -->
0N/A <sequential>
0N/A <property name="javadoc.options" value=""/> <!-- default, can be overridden per user or per project -->
0N/A <!-- Note: even with this default value, includes
578N/A from src.classes.dir get javadoc'd; see packageset below -->
0N/A <property name="javadoc.packagenames" value="none"/> <!-- default, can be overridden per user or per project -->
370N/A <javadoc
0N/A executable="${target.java.home}/bin/javadoc"
370N/A destdir="${build.javadoc.dir}/@{name}"
0N/A source="@{source}"
370N/A windowtitle="UNOFFICIAL"
370N/A failonerror="true"
0N/A use="true"
370N/A author="false"
0N/A version="false"
0N/A packagenames="${javadoc.packagenames}" >
0N/A <header><![CDATA[<strong>Unofficial Javadoc</strong> generated from developer sources for preview purposes only]]></header>
0N/A <arg line="@{options}"/>
0N/A <bootclasspath>
0N/A <path location="${build.classes.dir}"/>
0N/A <path location="${target.java.home}/jre/lib/rt.jar"/>
0N/A </bootclasspath>
0N/A <sourcepath>
0N/A <pathelement location="${src.classes.dir}"/>
0N/A </sourcepath>
0N/A <!-- XXX just <fileset> (restricted further to **/*.java) and no <packageset> -->
0N/A <!-- means that {@link some.package} will not work, which is no good. -->
0N/A <!-- (It correctly skips excluded single classes, but not if packageset is also included, -->
0N/A <!-- which also causes duplicates in the class index for included files.) -->
0N/A <packageset dir="${src.classes.dir}" includes="@{includes}">
0N/A <or>
0N/A <filename name="java/"/>
0N/A <filename name="javax/"/>
0N/A <filename name="com/sun/javadoc/"/>
0N/A <filename name="com/sun/mirror/"/>
0N/A <filename name="com/sun/source/"/>
0N/A </or>
0N/A </packageset>
0N/A </javadoc>
0N/A </sequential>
0N/A </macrodef>
0N/A </target>
370N/A
370N/A <target name="-def-jtreg" unless="jtreg.defined" depends="-check-jtreg.home,-check-target.java.home">
0N/A <taskdef name="jtreg" classname="com.sun.javatest.regtest.Main$$Ant">
0N/A <classpath>
0N/A <pathelement location="${jtreg.home}/lib/jtreg.jar"/>
0N/A <pathelement location="${jtreg.home}/lib/javatest.jar"/>
0N/A </classpath>
0N/A </taskdef>
0N/A <macrodef name="jtreg-tool">
0N/A <attribute name="name"/>
0N/A <attribute name="tests"/>
0N/A <attribute name="jdk" default="${target.java.home}"/>
370N/A <attribute name="samevm" default="true"/>
582N/A <attribute name="verbose" default="${default.jtreg.verbose}"/>
582N/A <attribute name="options" default="${other.jtreg.options}"/>
0N/A <attribute name="keywords" default="-keywords:!ignore"/>
0N/A <attribute name="jpda.jvmargs" default=""/>
0N/A <sequential>
582N/A <property name="coverage.options" value=""/> <!-- default -->
582N/A <property name="coverage.classpath" value=""/> <!-- default -->
582N/A <property name="default.jtreg.verbose" value="summary"/> <!-- default -->
582N/A <property name="other.jtreg.options" value=""/> <!-- default -->
370N/A <jtreg
0N/A dir="${test.dir}"
370N/A workDir="${build.jtreg.dir}/@{name}/work"
0N/A reportDir="${build.jtreg.dir}/@{name}/report"
0N/A jdk="@{jdk}"
0N/A samevm="@{samevm}" verbose="@{verbose}"
0N/A failonerror="false" resultproperty="jtreg.@{name}.result"
0N/A javacoptions="-g"
1161N/A vmoptions="${coverage.options} -Xbootclasspath/p:${coverage.classpath}${path.separator}${build.classes.dir} @{jpda.jvmargs}">
0N/A <arg line="@{keywords}"/>
0N/A <arg line="@{options}"/>
0N/A <arg line="@{tests}"/>
0N/A </jtreg>
370N/A <!-- the next two properties are for convenience, when only
0N/A a single instance of jtreg will be invoked. -->
0N/A <condition property="jtreg.passed">
200N/A <equals arg1="${jtreg.@{name}.result}" arg2="0"/>
0N/A </condition>
0N/A <property name="jtreg.report" value="${build.jtreg.dir}/@{name}/report"/>
0N/A </sequential>
0N/A </macrodef>
0N/A <property name="jtreg.defined" value="true"/>
0N/A </target>
0N/A
0N/A <target name="-def-cobertura" depends="-check-cobertura.home">
0N/A <path id="cobertura.classpath">
0N/A <fileset dir="${cobertura.home}">
0N/A <include name="cobertura.jar"/>
0N/A <include name="lib/**/*.jar"/>
0N/A </fileset>
0N/A </path>
370N/A <taskdef classpathref="cobertura.classpath" resource="tasks.properties"/>
0N/A </target>
370N/A
680N/A <target name="-def-findbugs" unless="findbugs.defined"
680N/A depends="-check-findbugs.home,-check-target.java.home">
0N/A <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask">
0N/A <classpath>
0N/A <pathelement location="${findbugs.home}/lib/findbugs.jar"/>
0N/A </classpath>
0N/A </taskdef>
0N/A <macrodef name="findbugs-tool">
0N/A <attribute name="name"/>
0N/A <attribute name="output" default="emacs"/>
0N/A <attribute name="outputFile" default=""/>
0N/A <attribute name="reportLevel" default="high"/>
0N/A <sequential>
370N/A <findbugs
0N/A home="${findbugs.home}"
0N/A output="@{output}"
0N/A outputFile="@{outputFile}"
0N/A reportLevel="@{reportLevel}"
0N/A failOnError="false"
0N/A errorProperty="findbugs.@{name}.errors"
0N/A warningsProperty="findbugs.@{name}.warnings"
680N/A jvm="${target.java.home}/bin/java"
0N/A jvmargs="-Xmx512M" >
0N/A <class location="${dist.dir}/lib/@{name}.jar"/>
0N/A <auxClasspath>
0N/A <pathelement location="${build.classes.dir}"/>
0N/A </auxClasspath>
0N/A <sourcePath>
0N/A <pathelement location="${src.classes.dir}"/>
0N/A </sourcePath>
0N/A </findbugs>
0N/A </sequential>
0N/A </macrodef>
0N/A <property name="findbugs.defined" value="true"/>
0N/A </target>
578N/A
577N/A <target name="-def-vizant" unless="vizant.defined" depends="-check-vizant">
578N/A <taskdef name="vizant" classname="net.sourceforge.vizant.Vizant" classpath="${vizant.jar}"/>
577N/A <property name="vizant.defined" value="true"/>
577N/A </target>
370N/A
0N/A <target name="-def-check">
0N/A <macrodef name="check">
0N/A <attribute name="name"/>
0N/A <attribute name="property"/>
577N/A <attribute name="marker" default=""/>
0N/A <sequential>
0N/A <fail message="Cannot locate @{name}: please set @{property} to its location">
0N/A <condition>
0N/A <not>
0N/A <isset property="@{property}"/>
0N/A </not>
0N/A </condition>
0N/A </fail>
0N/A <fail message="@{name} is not installed in ${@{property}}">
0N/A <condition>
578N/A <and>
578N/A <not>
578N/A <equals arg1="@{marker}" arg2=""/>
578N/A </not>
577N/A <not>
577N/A <available file="${@{property}}/@{marker}"/>
577N/A </not>
578N/A </and>
0N/A </condition>
0N/A </fail>
0N/A </sequential>
0N/A </macrodef>
0N/A </target>
0N/A
0N/A</project>
0N/A