mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
6958391: add vizant support to langtools build
Reviewed-by: mcimadamore
This commit is contained in:
parent
da823fbf44
commit
c8cce21323
2 changed files with 43 additions and 5 deletions
|
@ -76,17 +76,27 @@ javadoc.jls3.cite=<a href="${javadoc.jls3.url}">The Java Languag
|
||||||
javadoc.jls3.option=-tag "jls3:a:See <cite>${javadoc.jls3.cite}</cite>:"
|
javadoc.jls3.option=-tag "jls3:a:See <cite>${javadoc.jls3.cite}</cite>:"
|
||||||
|
|
||||||
# jtreg, used to run the JDK regression tests
|
# jtreg, used to run the JDK regression tests
|
||||||
|
# See http://openjdk.java.net/jtreg/
|
||||||
# Override this path as needed, either on the command line or in
|
# Override this path as needed, either on the command line or in
|
||||||
# one of the standard user build.properties files (see build.xml)
|
# one of the standard user build.properties files (see build.xml)
|
||||||
|
|
||||||
# jtreg.home = /opt/jtreg/3.2.2_02
|
# jtreg.home = /opt/jtreg/4.1
|
||||||
|
|
||||||
# findbugs
|
# findbugs
|
||||||
|
# See http://findbugs.sourceforge.net/
|
||||||
# Override this path as needed, either on the command line or in
|
# Override this path as needed, either on the command line or in
|
||||||
# one of the standard user build.properties files (see build.xml)
|
# one of the standard user build.properties files (see build.xml)
|
||||||
|
|
||||||
# findbugs.home = /opt/findbugs/1.2.1
|
# findbugs.home = /opt/findbugs/1.2.1
|
||||||
|
|
||||||
|
# vizant (graph visualization tool for Ant)
|
||||||
|
# See http://vizant.sourceforge.net/
|
||||||
|
# Override this path as needed, either on the command line or in
|
||||||
|
# one of the standard user build.properties files (see build.xml)
|
||||||
|
|
||||||
|
# vizant.jar = /opt/vizant/0.1.2/vizant-0.1.2.jar
|
||||||
|
# dot = dot
|
||||||
|
|
||||||
#------------------------------------------------------------
|
#------------------------------------------------------------
|
||||||
|
|
||||||
# The following properties define the packages for each of the tools.
|
# The following properties define the packages for each of the tools.
|
||||||
|
|
|
@ -137,6 +137,19 @@
|
||||||
<echo message="import.jdk.src.dir: ${import.jdk.src.dir}"/>
|
<echo message="import.jdk.src.dir: ${import.jdk.src.dir}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="vizant" depends="-def-vizant">
|
||||||
|
<mkdir dir="${build.dir}"/>
|
||||||
|
<echo message="Generating ${build.dir}/build.dot"/>
|
||||||
|
<vizant antfile="${make.dir}/build.xml" outfile="${build.dir}/build.dot"/>
|
||||||
|
<echo message="Generating ${build.dir}/build.png"/>
|
||||||
|
<exec executable="${dot}" >
|
||||||
|
<arg value="-Tpng"/>
|
||||||
|
<arg value="-o"/>
|
||||||
|
<arg file="${build.dir}/build.png"/>
|
||||||
|
<arg file="${build.dir}/build.dot"/>
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
<!-- Standard target to build deliverables for JDK build. -->
|
<!-- Standard target to build deliverables for JDK build. -->
|
||||||
|
|
||||||
<target name="build" depends="build-bootstrap-tools,build-all-classes">
|
<target name="build" depends="build-bootstrap-tools,build-all-classes">
|
||||||
|
@ -459,6 +472,11 @@
|
||||||
<check name="jtreg" property="jtreg.home" marker="lib/jtreg.jar"/>
|
<check name="jtreg" property="jtreg.home" marker="lib/jtreg.jar"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="-check-vizant" depends="-def-check">
|
||||||
|
<check name="vizant" property="vizant.jar"/>
|
||||||
|
<check name="dot" property="dot"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
<!-- Ant macro and preset defs -->
|
<!-- Ant macro and preset defs -->
|
||||||
|
|
||||||
<target name="-def-build-tool">
|
<target name="-def-build-tool">
|
||||||
|
@ -766,11 +784,16 @@
|
||||||
<property name="findbugs.defined" value="true"/>
|
<property name="findbugs.defined" value="true"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="-def-vizant" unless="vizant.defined" depends="-check-vizant">
|
||||||
|
<taskdef name="vizant" classname="net.sourceforge.vizant.Vizant" classpath="${vizant.jar}"/>
|
||||||
|
<property name="vizant.defined" value="true"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="-def-check">
|
<target name="-def-check">
|
||||||
<macrodef name="check">
|
<macrodef name="check">
|
||||||
<attribute name="name"/>
|
<attribute name="name"/>
|
||||||
<attribute name="property"/>
|
<attribute name="property"/>
|
||||||
<attribute name="marker"/>
|
<attribute name="marker" default=""/>
|
||||||
<sequential>
|
<sequential>
|
||||||
<fail message="Cannot locate @{name}: please set @{property} to its location">
|
<fail message="Cannot locate @{name}: please set @{property} to its location">
|
||||||
<condition>
|
<condition>
|
||||||
|
@ -781,9 +804,14 @@
|
||||||
</fail>
|
</fail>
|
||||||
<fail message="@{name} is not installed in ${@{property}}">
|
<fail message="@{name} is not installed in ${@{property}}">
|
||||||
<condition>
|
<condition>
|
||||||
|
<and>
|
||||||
|
<not>
|
||||||
|
<equals arg1="@{marker}" arg2=""/>
|
||||||
|
</not>
|
||||||
<not>
|
<not>
|
||||||
<available file="${@{property}}/@{marker}"/>
|
<available file="${@{property}}/@{marker}"/>
|
||||||
</not>
|
</not>
|
||||||
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
</fail>
|
</fail>
|
||||||
</sequential>
|
</sequential>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue