langtools/make/netbeans/langtools/build.xml
changeset 24074 7a609dde1d05
parent 20266 d5e2fc28504e
child 25874 83c19f00452c
equal deleted inserted replaced
24073:e6d5236551d2 24074:7a609dde1d05
     1 <?xml version="1.0" encoding="UTF-8"?>
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     2 <!--
     3  Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
     3  Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved.
     4 
     4 
     5  Redistribution and use in source and binary forms, with or without
     5  Redistribution and use in source and binary forms, with or without
     6  modification, are permitted provided that the following conditions
     6  modification, are permitted provided that the following conditions
     7  are met:
     7  are met:
     8 
     8 
   134             <target name="langtools.jtreg"/>
   134             <target name="langtools.jtreg"/>
   135             <target name="-show-jtreg"/>
   135             <target name="-show-jtreg"/>
   136         </antcall>
   136         </antcall>
   137     </target>
   137     </target>
   138 
   138 
   139     <target name="-show-jtreg" if="netbeans.home" unless="jtreg.passed">
   139     <target name="-show-jtreg-single-detect" if="netbeans.home" unless="jtreg.passed">
   140         <nbbrowse file="${jtreg.report}/report.html"/>
   140         <dirname property="netbeans.jtreg.tests.dir.temp" file="${jtreg.report}/../work/${jtreg.tests}"/>
       
   141         <basename property="netbeans.jtreg.tests.basename.temp" file="${jtreg.tests}" suffix=".java"/>
       
   142         <property name="netbeans.jtreg.single.jtr" value="${netbeans.jtreg.tests.dir.temp}/${netbeans.jtreg.tests.basename.temp}.jtr"/>
       
   143         <condition property="netbeans.jtreg.single">
       
   144             <available file="${netbeans.jtreg.single.jtr}" />
       
   145         </condition>
       
   146         <condition property="netbeans.jtreg.multiple">
       
   147             <not>
       
   148                 <available file="${netbeans.jtreg.single.jtr}" />
       
   149             </not>
       
   150         </condition>
       
   151     </target>
       
   152 
       
   153     <target name="-show-jtreg-single" if="netbeans.jtreg.single" depends="-show-jtreg-single-detect">
       
   154         <nbbrowse file="${netbeans.jtreg.single.jtr}"/>
   141         <fail>Some tests failed; see report for details.</fail>
   155         <fail>Some tests failed; see report for details.</fail>
   142     </target>
   156     </target>
       
   157 
       
   158     <target name="-show-jtreg-multiple" if="netbeans.jtreg.multiple" depends="-show-jtreg-single-detect">
       
   159         <nbbrowse url="file://${jtreg.report}/html/report.html#Results"/>
       
   160         <fail>Some tests failed; see report for details.</fail>
       
   161     </target>
       
   162 
       
   163     <target name="-show-jtreg" depends="-show-jtreg-single-detect,-show-jtreg-single,-show-jtreg-multiple" />
   143 
   164 
   144     <!-- Debug tool in NetBeans. -->
   165     <!-- Debug tool in NetBeans. -->
   145 
   166 
   146     <target name="debug" depends="-check-target.java.home,-def-run,-def-start-debugger,-get-tool-and-args,build" if="netbeans.home">
   167     <target name="debug" depends="-check-target.java.home,-def-run,-def-start-debugger,-get-tool-and-args,build" if="netbeans.home">
   147         <echo level="info" message="Debug ${use_bootstrap}${langtools.tool.name} with args ${langtools.tool.args}"/>
   168         <echo level="info" message="Debug ${use_bootstrap}${langtools.tool.name} with args ${langtools.tool.args}"/>