build.xml revision 739
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo SirainenCDDL HEADER START
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo SirainenThe contents of this file are subject to the terms of the
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo SirainenCommon Development and Distribution License (the "License").
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo SirainenYou may not use this file except in compliance with the License.
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo SirainenSee LICENSE.txt included in this distribution for the specific
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo Sirainenlanguage governing permissions and limitations under the License.
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo SirainenWhen distributing Covered Code, include this CDDL HEADER in each
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo Sirainenfile and include the License file at LICENSE.txt.
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo SirainenIf applicable, add the following below this CDDL HEADER, with the
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo Sirainenfields enclosed by brackets "[]" replaced with your own identifying
5d370784b36faad7038a227652f3397991d2e0e1Timo Siraineninformation: Portions Copyright [yyyy] [name of copyright owner]
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo SirainenCDDL HEADER END
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo SirainenCopyright 2007 Sun Microsystems, Inc. All rights reserved.
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo SirainenUse is subject to license terms.
<fileset dir="${build.classes.dir}"/>
nbproject/build-impl.xml file.
<target name="run" depends="opengrok-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
nbproject/build-impl.xml file.
<fail unless="JFlex.present" message="Please download JFlex (http://jflex.de/) and put JFlex.jar it into /lib directory (or in ant classpath)."/>
<jflex file="src/org/opensolaris/opengrok/analysis/c/CxxSymbolTokenizer.lex" destdir="${gensrcdir}"/>
<jflex file="src/org/opensolaris/opengrok/analysis/java/JavaSymbolTokenizer.lex" destdir="${gensrcdir}"/>
<jflex file="src/org/opensolaris/opengrok/analysis/lisp/LispSymbolTokenizer.lex" destdir="${gensrcdir}"/>
<jflex file="src/org/opensolaris/opengrok/analysis/tcl/TclSymbolTokenizer.lex" destdir="${gensrcdir}"/>
<jflex file="src/org/opensolaris/opengrok/analysis/plain/PlainFullTokenizer.lex" destdir="${gensrcdir}"/>
<jflex file="src/org/opensolaris/opengrok/analysis/plain/PlainSymbolTokenizer.lex" destdir="${gensrcdir}"/>
<jflex file="src/org/opensolaris/opengrok/analysis/document/TroffFullTokenizer.lex" destdir="${gensrcdir}"/>
<jflex file="src/org/opensolaris/opengrok/analysis/sh/ShSymbolTokenizer.lex" destdir="${gensrcdir}"/>
<jflex file="src/org/opensolaris/opengrok/search/context/HistoryLineTokenizer.lex" destdir="${gensrcdir}"/>
<jflex file="src/org/opensolaris/opengrok/search/context/PlainLineTokenizer.lex" destdir="${gensrcdir}"/>
file="${build.classes.dir}/org/opensolaris/opengrok/info.properties">
Create an empty manifest file so that nbproject/build-impl.xml
opengrok.jar depends
unless="manifest.available+main.class+mkdist.available">
<fail unless="findbugs.jar.present" message="Please install Findbugs findbugs.jar in ~/.ant/lib-directory (or in ant classpath) to run Findbugs, see README"/>
<fail unless="findbugs-ant.jar.present" message="Please install Findbugs findbugs-ant.jar in ~/.ant/lib-directory (or in ant classpath) to run Findbugs, see README"/>
<target name="findbugs" depends="dist, -check_findbugs" description="Runs Findbugs on the OpenGrok source code and generate HTML output">
<taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpathref="findbugs.lib"/>
<findbugs projectname="OpenGrok" home="${findbugs.home}" output="html" excludeFilter="tools/findbugs_filter.xml" outputFile="findbugs/findbugs.html" jvmargs="-Xmx512m">
<target name="findbugs-xml" depends="dist, -check_findbugs" description="Runs Findbugs on the OpenGrok source code and generate XML output">
<taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpathref="findbugs.lib"/>
<findbugs projectname="OpenGrok" home="${findbugs.home}" output="xml" excludeFilter="tools/findbugs_filter.xml" outputFile="findbugs/findbugs.xml" jvmargs="-Xmx512m">
<fail unless="checkstyle.jar.present" message="Please install checkstyle-all.jar in lib-directory (or in ant classpath) to run Checkstyle, see README."/>
<target name="checkstyle" depends="compile, -check_checkstyle" description="Run checkstyle on OpenGrok source code">
<fail unless="pmd.jar.present" message="Please install pmd.jar in lib-directory (or in ant classpath) to run PMD, see README."/>
<fail unless="emma.jar.present" message="Please install emma.jar in lib-directory (or in ant classpath) to run Emma, see README."/>
<fail unless="emma_ant.jar.present" message="Please install emma_ant.jar in lib-directory (or in ant classpath) to run Emma, see README."/>
<target name="emma-instrument" depends="compile, -check_emma" description="Instruments the source code for Emma code coverage analysis">
metadatafile="${coverage.dir}/coverage.em"
filter="+org.opensolaris.*,-org.opensolaris.opengrok.management.client.*"/>
<concat destfile="${test.cvs.repo}/CVS/Root" append="no" force="yes" eol="unix">${user.dir}/${test.cvs.root}/
basedir="${test.sources}"
basedir="${test.repositories}"
<fileset dir="ext/SampleRazorRepository/Repository/OpenGrokSample/RAZOR_UNIVERSE/DOMAIN_01/Simple"/>
<!--copy todir="${test.razor}/Razor-Simple/SimpleCProgram-BinaryRelease/.razor">
<fileset dir="ext/SampleRazorRepository/Repository/OpenGrokSample/RAZOR_UNIVERSE/DOMAIN_01/Simple"/>