langtools/make/build.xml
changeset 14541 36f9d11fc9aa
parent 12085 ce2780cb121f
child 15368 2577ddb7e710
equal deleted inserted replaced
14540:b7cbc1db01fe 14541:36f9d11fc9aa
     1 <?xml version="1.0" encoding="UTF-8"?>
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     2 <!--
     3  Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
     3  Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
     4  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5 
     5 
     6  This code is free software; you can redistribute it and/or modify it
     6  This code is free software; you can redistribute it and/or modify it
     7  under the terms of the GNU General Public License version 2 only, as
     7  under the terms of the GNU General Public License version 2 only, as
     8  published by the Free Software Foundation.  Oracle designates this
     8  published by the Free Software Foundation.  Oracle designates this
   275             <fileset dir="src" includes="**/*.java, **/*.properties"/>
   275             <fileset dir="src" includes="**/*.java, **/*.properties"/>
   276         </checkstyle>
   276         </checkstyle>
   277         <!-- transform the output to a simple html -->
   277         <!-- transform the output to a simple html -->
   278         <xslt  in="${dist.checkstyle.dir}/checkstyle_report.xml"
   278         <xslt  in="${dist.checkstyle.dir}/checkstyle_report.xml"
   279                out="${dist.checkstyle.dir}/checkstyle_report.html"
   279                out="${dist.checkstyle.dir}/checkstyle_report.html"
   280                style="${checkstyle.home}/contrib/checkstyle-simple.xsl"/>            
   280                style="${checkstyle.home}/contrib/checkstyle-simple.xsl"/>
   281         <!-- transform the output to a very simple emacs friendly text file -->
   281         <!-- transform the output to a very simple emacs friendly text file -->
   282         <xslt  in="${dist.checkstyle.dir}/checkstyle_report.xml"
   282         <xslt  in="${dist.checkstyle.dir}/checkstyle_report.xml"
   283                out="${dist.checkstyle.dir}/checkstyle_report.tmp"
   283                out="${dist.checkstyle.dir}/checkstyle_report.tmp"
   284                style="${make.conf.dir}/checkstyle-emacs.xsl"/>
   284                style="${make.conf.dir}/checkstyle-emacs.xsl"/>
   285         <!-- beautify remove extra lines -->
   285         <!-- beautify remove extra lines -->
   295          to access and fix the errors directly.
   295          to access and fix the errors directly.
   296      -->
   296      -->
   297     <target name="checkstyle-ide" depends="checkstyle">
   297     <target name="checkstyle-ide" depends="checkstyle">
   298         <concat>
   298         <concat>
   299             <fileset file="${dist.checkstyle.dir}/checkstyle_report.emacs.txt"/>
   299             <fileset file="${dist.checkstyle.dir}/checkstyle_report.emacs.txt"/>
   300         </concat>  
   300         </concat>
   301     </target>
   301     </target>
   302     
   302 
   303     <target name="findbugs" depends="-def-findbugs,build-all-tools">
   303     <target name="findbugs" depends="-def-findbugs,build-all-tools">
   304         <property name="findbugs.reportLevel" value="medium"/>
   304         <property name="findbugs.reportLevel" value="medium"/>
   305         <mkdir dir="${dist.findbugs.dir}"/>
   305         <mkdir dir="${dist.findbugs.dir}"/>
   306         <findbugs
   306         <findbugs
   307             home="${findbugs.home}"
   307             home="${findbugs.home}"
   366         <mkdir dir="${build.dir}/diag-examples/classes"/>
   366         <mkdir dir="${build.dir}/diag-examples/classes"/>
   367         <javac fork="true"
   367         <javac fork="true"
   368             executable="${dist.bin.dir}/javac"
   368             executable="${dist.bin.dir}/javac"
   369             srcdir="test/tools/javac/diags"
   369             srcdir="test/tools/javac/diags"
   370             destdir="${build.dir}/diag-examples/classes"
   370             destdir="${build.dir}/diag-examples/classes"
   371             includes="ArgTypeCompilerFactory.java,Example.java,FileManager.java,HTMLWriter.java,RunExamples.java"
   371             includes="ArgTypeCompilerFactory.java,Example.java,FileManager.java,HTMLWriter.java,RunExamples.java,DocCommentProcessor.java"
   372             sourcepath=""
   372             sourcepath=""
   373             classpath="${dist.lib.dir}/javac.jar"
   373             classpath="${dist.lib.dir}/javac.jar"
   374             includeAntRuntime="no"
   374             includeAntRuntime="no"
   375             debug="${javac.debug}"
   375             debug="${javac.debug}"
   376             debuglevel="${javac.debuglevel}">
   376             debuglevel="${javac.debuglevel}">
   379         <java fork="true"
   379         <java fork="true"
   380             jvm="${target.java.home}/bin/java"
   380             jvm="${target.java.home}/bin/java"
   381             dir="test/tools/javac/diags"
   381             dir="test/tools/javac/diags"
   382             classpath="${build.dir}/diag-examples/classes;${dist.lib.dir}/javac.jar"
   382             classpath="${build.dir}/diag-examples/classes;${dist.lib.dir}/javac.jar"
   383             classname="RunExamples">
   383             classname="RunExamples">
       
   384             <jvmarg value="-Dtest.classes=${build.dir}/diag-examples/classes"/>
   384             <arg value="-examples"/>
   385             <arg value="-examples"/>
   385             <arg value="examples"/>
   386             <arg value="examples"/>
   386             <arg value="-o"/>
   387             <arg value="-o"/>
   387             <arg file="${diags.examples.out}"/>
   388             <arg file="${diags.examples.out}"/>
   388             <arg value="-showFiles"/>
   389             <arg value="-showFiles"/>
   693     </target>
   694     </target>
   694 
   695 
   695     <target name="-check-checkstyle.home" depends="-def-check">
   696     <target name="-check-checkstyle.home" depends="-def-check">
   696         <check name="checkstyle" property="checkstyle.home" marker="${checkstyle.name.version}.jar"/>
   697         <check name="checkstyle" property="checkstyle.home" marker="${checkstyle.name.version}.jar"/>
   697     </target>
   698     </target>
   698     
   699 
   699     <target name="-check-jtreg.home" depends="-def-check">
   700     <target name="-check-jtreg.home" depends="-def-check">
   700         <check name="jtreg" property="jtreg.home" marker="lib/jtreg.jar"/>
   701         <check name="jtreg" property="jtreg.home" marker="lib/jtreg.jar"/>
   701     </target>
   702     </target>
   702 
   703 
   703     <target name="-check-vizant" depends="-def-check">
   704     <target name="-check-vizant" depends="-def-check">
  1003                 <pathelement location="${checkstyle.home}/${checkstyle.name.version}-all.jar"/>
  1004                 <pathelement location="${checkstyle.home}/${checkstyle.name.version}-all.jar"/>
  1004             </classpath>
  1005             </classpath>
  1005         </taskdef>
  1006         </taskdef>
  1006         <property name="checkstyle.defined" value="true"/>
  1007         <property name="checkstyle.defined" value="true"/>
  1007     </target>
  1008     </target>
  1008     
  1009 
  1009     <target name="-def-findbugs" unless="findbugs.defined"
  1010     <target name="-def-findbugs" unless="findbugs.defined"
  1010         depends="-check-findbugs.home,-check-target.java.home">
  1011         depends="-check-findbugs.home,-check-target.java.home">
  1011         <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask">
  1012         <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask">
  1012             <classpath>
  1013             <classpath>
  1013                 <pathelement location="${findbugs.home}/lib/findbugs.jar"/>
  1014                 <pathelement location="${findbugs.home}/lib/findbugs.jar"/>