build.xml revision 623
132N/A<?xml version="1.0" encoding="UTF-8"?>
132N/A<!--
132N/A
132N/ACDDL HEADER START
132N/A
132N/AThe contents of this file are subject to the terms of the
132N/ACommon Development and Distribution License (the "License").
132N/AYou may not use this file except in compliance with the License.
132N/A
132N/ASee LICENSE.txt included in this distribution for the specific
132N/Alanguage governing permissions and limitations under the License.
132N/A
132N/AWhen distributing Covered Code, include this CDDL HEADER in each
132N/Afile and include the License file at LICENSE.txt.
132N/AIf applicable, add the following below this CDDL HEADER, with the
132N/Afields enclosed by brackets "[]" replaced with your own identifying
132N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
132N/A
132N/ACDDL HEADER END
132N/A
132N/ACopyright 2007 Sun Microsystems, Inc. All rights reserved.
132N/AUse is subject to license terms.
132N/A
132N/A-->
215N/A<project name="OpenGrok" default="jar" basedir=".">
132N/A <description>Builds, tests, and runs the project opengrok.</description>
132N/A <import file="nbproject/build-impl.xml"/>
132N/A
132N/A <import file="nbproject/profiler-build-impl.xml"/> <!--
132N/A
132N/A There exist several targets which are by default empty and which can be
132N/A used for execution of your tasks. These targets are usually executed
132N/A before and after some main targets. They are:
132N/A
132N/A -pre-init: called before initialization of project properties
132N/A -post-init: called after initialization of project properties
132N/A -pre-compile: called before javac compilation
132N/A -post-compile: called after javac compilation
132N/A -pre-compile-single: called before javac compilation of single file
132N/A -post-compile-single: called after javac compilation of single file
132N/A -pre-compile-test: called before javac compilation of JUnit tests
132N/A -post-compile-test: called after javac compilation of JUnit tests
132N/A -pre-compile-test-single: called before javac compilation of single JUnit test
132N/A -post-compile-test-single: called after javac compilation of single JUunit test
132N/A -pre-jar: called before JAR building
132N/A -post-jar: called after JAR building
132N/A -post-clean: called after cleaning build products
132N/A
132N/A (Targets beginning with '-' are not intended to be called on their own.)
132N/A
132N/A Example of inserting an obfuscator after compilation could look like this:
132N/A
132N/A <target name="-post-compile">
132N/A <obfuscate>
132N/A <fileset dir="${build.classes.dir}"/>
132N/A </obfuscate>
132N/A </target>
132N/A
132N/A For list of available properties check the imported
132N/A nbproject/build-impl.xml file.
132N/A
132N/A
132N/A Another way to customize the build is by overriding existing main targets.
132N/A The targets of interest are:
132N/A
132N/A -init-macrodef-javac: defines macro for javac compilation
132N/A -init-macrodef-junit: defines macro for junit execution
132N/A -init-macrodef-debug: defines macro for class debugging
132N/A -init-macrodef-java: defines macro for class execution
132N/A -do-jar-with-manifest: JAR building (if you are using a manifest)
132N/A -do-jar-without-manifest: JAR building (if you are not using a manifest)
132N/A run: execution of project
132N/A -javadoc-build: Javadoc generation
132N/A test-report: JUnit report generation
132N/A
132N/A An example of overriding the target for project execution could look like this:
132N/A
132N/A <target name="run" depends="opengrok-impl.jar">
132N/A <exec dir="bin" executable="launcher.exe">
132N/A <arg file="${dist.jar}"/>
132N/A </exec>
132N/A </target>
132N/A
132N/A Notice that the overridden target depends on the jar target and not only on
132N/A the compile target as the regular run target does. Again, for a list of available
132N/A properties which you can use, check the target you are overriding in the
132N/A nbproject/build-impl.xml file.
132N/A
132N/A -->
219N/A
620N/A <property name="version" value="0.7"/>
220N/A <property name="distname" value="opengrok"/>
341N/A
341N/A <property name="findbugs.home" value="${user.home}/.ant/lib/findbugs"/>
379N/A <property name="checkstyle.home" value="${user.home}/.ant/lib/checkstyle"/>
411N/A <property name="pmd.home" value="${user.home}/.ant/lib/pmd"/>
487N/A
487N/A
487N/A <condition property="jvm.new">
487N/A <and>
487N/A <not>
487N/A <equals arg1="${ant.java.version}" arg2="1.5"/>
487N/A </not>
487N/A <not>
487N/A <equals arg1="${ant.java.version}" arg2="1.4"/>
487N/A </not>
487N/A </and>
487N/A </condition>
487N/A
487N/A <target name="-exclude-client" unless="jvm.new">
487N/A <echo>Detected JDK lower than 1.6 , excluding building of systray client ... </echo>
487N/A <property name="excludes" value="org/opensolaris/opengrok/management/client/**"/>
487N/A </target>
487N/A
320N/A
336N/A <path id="lib.search.path">
336N/A <pathelement path="${user.home}/.ant/lib"/>
336N/A <pathelement path="${java.class.path}"/>
336N/A <pathelement path="lib"/>
336N/A </path>
336N/A
336N/A <path id="findbugs.lib.search.path">
341N/A <pathelement path="${findbugs.home}/lib/"/>
487N/A <pathelement path="${java.class.path}"/>
336N/A <pathelement path="lib/findbugs/lib/"/>
336N/A </path>
336N/A
379N/A <path id="checkstyle.lib.search.path">
379N/A <pathelement path="${checkstyle.home}/"/>
487N/A <pathelement path="${java.class.path}"/>
379N/A <pathelement path="lib/checkstyle/lib/"/>
379N/A </path>
379N/A
411N/A <path id="pmd.lib.search.path">
411N/A <pathelement path="${pmd.home}/lib/"/>
487N/A <pathelement path="${java.class.path}"/>
411N/A <pathelement path="lib/pmd/lib/"/>
411N/A </path>
411N/A
320N/A <available file="JFlex.jar" type="file" property="JFlex.present">
336N/A <filepath refid="lib.search.path"/>
320N/A </available>
336N/A <fail unless="JFlex.present" message="Please download JFlex (http://jflex.de/) and put JFlex.jar it into /lib directory (or in ant classpath)."/>
320N/A
320N/A <taskdef classname="JFlex.anttask.JFlexTask" name="jflex" classpath="lib/JFlex.jar"/>
132N/A <property name="gensrcdir" value="generatedsrc"/>
132N/A <target name="jflex">
132N/A <mkdir dir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/analysis/plain/PlainXref.lex" destdir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/analysis/c/CSymbolTokenizer.lex" destdir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/analysis/c/CXref.lex" destdir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/analysis/java/JavaSymbolTokenizer.lex" destdir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/analysis/java/JavaXref.lex" destdir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/analysis/lisp/LispSymbolTokenizer.lex" destdir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/analysis/lisp/LispXref.lex" destdir="${gensrcdir}"/>
244N/A <jflex file="src/org/opensolaris/opengrok/analysis/tcl/TclSymbolTokenizer.lex" destdir="${gensrcdir}"/>
244N/A <jflex file="src/org/opensolaris/opengrok/analysis/tcl/TclXref.lex" destdir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/analysis/plain/PlainFullTokenizer.lex" destdir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/analysis/plain/PlainSymbolTokenizer.lex" destdir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/analysis/plain/PlainXref.lex" destdir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/analysis/plain/XMLXref.lex" destdir="${gensrcdir}"/>
190N/A <jflex file="src/org/opensolaris/opengrok/analysis/sql/SQLXref.lex" destdir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/analysis/document/TroffXref.lex" destdir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/analysis/document/TroffFullTokenizer.lex" destdir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/analysis/sh/ShSymbolTokenizer.lex" destdir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/analysis/sh/ShXref.lex" destdir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/search/context/HistoryLineTokenizer.lex" destdir="${gensrcdir}"/>
132N/A <jflex file="src/org/opensolaris/opengrok/search/context/PlainLineTokenizer.lex" destdir="${gensrcdir}"/>
132N/A </target>
132N/A
230N/A <property name="hg" value="hg"/>
230N/A <target name="-hg-get-changeset">
230N/A <exec executable="${hg}"
230N/A failifexecutionfails="no"
230N/A outputproperty="changeset">
230N/A <arg value="log"/>
230N/A <arg value="-r"/>
230N/A <arg value="tip"/>
230N/A <redirector>
230N/A <outputfilterchain>
230N/A <filterreader classname="org.apache.tools.ant.filters.LineContainsRegExp">
230N/A <param type="regexp" value="^changeset:"/>
230N/A </filterreader>
230N/A <tokenfilter>
230N/A <replaceregex pattern="^changeset:[^:]*:" replace=""/>
230N/A </tokenfilter>
230N/A </outputfilterchain>
230N/A </redirector>
230N/A </exec>
230N/A </target>
230N/A
230N/A <target name="-update-build-info" depends="-hg-get-changeset">
230N/A <mkdir dir="${build.classes.dir}/org/opensolaris/opengrok"/>
230N/A <propertyfile
230N/A file="${build.classes.dir}/org/opensolaris/opengrok/info.properties">
230N/A <entry key="version" value="${version}"/>
230N/A <entry key="changeset" value="${changeset}"/>
230N/A </propertyfile>
230N/A </target>
230N/A
301N/A <property name="coverage.dir" value="${basedir}/coverage"/>
132N/A <target name="-pre-compile" depends="jflex"/>
132N/A <target name="-post-clean">
132N/A <delete dir="${gensrcdir}"/>
213N/A <delete file="${manifest.file}"/>
301N/A <delete dir="${coverage.dir}"/>
132N/A </target>
132N/A
211N/A <!--
213N/A Create an empty manifest file so that nbproject/build-impl.xml
213N/A notices that a manifest should be added to the jar file
213N/A -->
213N/A <target name="-touch-manifest">
213N/A <!-- no attributes, main-class and class-path will be added later -->
213N/A <manifest file="manifest.mf" mode="replace"/>
213N/A </target>
213N/A
487N/A <target name="-pre-init" depends="-touch-manifest, -exclude-client"/>
213N/A
213N/A <!--
213N/A Initialize a property holding a list of jar files on which
213N/A opengrok.jar depends
213N/A -->
213N/A <target name="-post-init">
213N/A <pathconvert property="opengrok.lib.files" pathsep=" ">
213N/A <path>
213N/A <pathelement path="${javac.classpath}"/>
213N/A </path>
213N/A <flattenmapper/>
213N/A <map from="" to="lib/"/>
213N/A </pathconvert>
213N/A </target>
213N/A
213N/A <!-- Update the manifest file with a classpath attribute -->
213N/A <target name="-update-manifest-classpath">
213N/A <manifest file="${manifest.file}" mode="update">
213N/A <attribute name="Class-Path" value="${opengrok.lib.files}"/>
213N/A </manifest>
213N/A </target>
213N/A
230N/A <target name="-pre-jar" depends="-update-manifest-classpath,-update-build-info"/>
213N/A
213N/A <!--
211N/A Copy the jars from lib to dist/lib manually if we don't have
211N/A the copylibs task from NetBeans
211N/A -->
211N/A <target name="-copy-lib-without-netbeans"
211N/A unless="manifest.available+main.class+mkdist.available">
246N/A <copy todir="${dist.dir}/lib">
246N/A <fileset file="${file.reference.ant.jar}"/>
246N/A </copy>
213N/A <copy todir="${dist.dir}">
213N/A <fileset dir="." includes="${opengrok.lib.files}"/>
211N/A </copy>
211N/A </target>
132N/A
211N/A <target name="-post-jar" depends="-copy-lib-without-netbeans">
144N/A <war destfile="${dist.war}" webxml="conf/web.xml">
144N/A <fileset dir="web"/>
144N/A <fileset dir="conf" excludes="web.xml"/>
144N/A <lib dir="${dist.dir}" includes="opengrok.jar"/>
453N/A <lib dir="${dist.dir}/lib" includes="*.jar" excludes="servlet-api.jar"/>
144N/A </war>
260N/A <echo message="Generating man page.."/>
260N/A <java classname="org.opensolaris.opengrok.index.CommandLineOptions"
260N/A output="${dist.dir}/opengrok.1" failonerror="true" fork="true">
260N/A <classpath>
260N/A <pathelement location="dist/opengrok.jar"/>
260N/A <pathelement path="${java.class.path}"/>
260N/A </classpath>
260N/A </java>
144N/A </target>
219N/A
219N/A <target name="package" depends="jar">
219N/A <exec os="SunOS" executable="/usr/bin/pkgmk">
219N/A <arg line="-o -d build -r . -v ${version} -f pkgdef/prototype"/>
219N/A </exec>
219N/A <exec os="SunOS" executable="/usr/bin/pkgtrans">
219N/A <arg line="-s build /dist/OSOLopengrok-${version}.pkg OSOLopengrok"/>
219N/A </exec>
219N/A </target>
220N/A
220N/A <target name="dist" depends="jar">
220N/A <tar destfile="${dist.dir}/${distname}-${version}.tar.gz"
220N/A compression="gzip">
220N/A <tarfileset dir="." prefix="${distname}-${version}">
220N/A <include name="README.txt"/>
220N/A <include name="CHANGES.txt"/>
220N/A <include name="LICENSE.txt"/>
220N/A <include name="paths.tsv"/>
220N/A </tarfileset>
220N/A <tarfileset dir="." prefix="${distname}-${version}" mode="755">
299N/A <include name="OpenGrok"/>
220N/A <include name="run.sh"/>
220N/A <include name="run-quiet.sh"/>
220N/A <include name="run.bat"/>
220N/A </tarfileset>
220N/A <tarfileset dir="doc" prefix="${distname}-${version}">
220N/A <include name="EXAMPLE.txt"/>
220N/A </tarfileset>
220N/A <tarfileset dir="${dist.dir}" prefix="${distname}-${version}">
220N/A <include name="opengrok.jar"/>
220N/A <include name="source.war"/>
220N/A <include name="lib/*"/>
623N/A <exclude name="lib/servlet-api.jar"/>
220N/A </tarfileset>
220N/A </tar>
220N/A </target>
220N/A
221N/A <target name="dist-src" depends="init">
221N/A <mkdir dir="${dist.dir}"/>
221N/A <exec executable="hg">
221N/A <arg value="archive"/>
221N/A <arg value="-t"/>
221N/A <arg value="tgz"/>
221N/A <arg value="${dist.dir}/${distname}-${version}-src.tar.gz"/>
221N/A </exec>
221N/A </target>
295N/A
336N/A <target name="-check_findbugs" description="Check that findbugs jar files are present">
336N/A <available file="findbugs.jar" type="file" property="findbugs.jar.present">
336N/A <filepath refid="findbugs.lib.search.path"/>
336N/A </available>
341N/A <fail unless="findbugs.jar.present" message="Please install Findbugs findbugs.jar in ~/.ant/lib-directory (or in ant classpath) to run Findbugs, see README"/>
336N/A
336N/A <available file="findbugs-ant.jar" type="file" property="findbugs-ant.jar.present">
336N/A <filepath refid="findbugs.lib.search.path"/>
336N/A </available>
341N/A <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"/>
336N/A </target>
336N/A
341N/A <target name="findbugs" depends="dist, -check_findbugs" description="Runs Findbugs on the OpenGrok source code and generate HTML output">
336N/A <path id="findbugs.lib" >
341N/A <pathelement location="${findbugs.home}/lib/findbugs.jar"/>
341N/A <pathelement location="${findbugs.home}/lib/findbugs-ant.jar"/>
336N/A </path>
336N/A <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpathref="findbugs.lib"/>
295N/A <mkdir dir="findbugs"/>
341N/A <findbugs projectname="OpenGrok" home="${findbugs.home}" output="html" excludeFilter="tools/findbugs_filter.xml" outputFile="findbugs/findbugs.html" jvmargs="-Xmx512m">
295N/A <auxClasspath>
295N/A <fileset dir="${dist.dir}/lib/">
295N/A <include name="*.jar"/>
295N/A </fileset>
295N/A </auxClasspath>
295N/A <sourcePath path="src" />
295N/A <class location="${dist.dir}/opengrok.jar" />
295N/A </findbugs>
295N/A </target>
301N/A
341N/A <target name="findbugs-xml" depends="dist, -check_findbugs" description="Runs Findbugs on the OpenGrok source code and generate XML output">
339N/A <path id="findbugs.lib" >
341N/A <pathelement location="${findbugs.home}/lib/findbugs.jar"/>
341N/A <pathelement location="${findbugs.home}/lib/findbugs-ant.jar"/>
339N/A </path>
339N/A <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpathref="findbugs.lib"/>
339N/A <mkdir dir="findbugs"/>
341N/A <findbugs projectname="OpenGrok" home="${findbugs.home}" output="xml" excludeFilter="tools/findbugs_filter.xml" outputFile="findbugs/findbugs.xml" jvmargs="-Xmx512m">
339N/A <auxClasspath>
339N/A <fileset dir="${dist.dir}/lib/">
339N/A <include name="*.jar"/>
339N/A </fileset>
339N/A </auxClasspath>
339N/A <sourcePath path="src" />
339N/A <class location="${dist.dir}/opengrok.jar" />
339N/A </findbugs>
339N/A </target>
379N/A
379N/A <target name="-check_checkstyle" description="Check that checkstyle jar files are present">
379N/A <available file="checkstyle-all.jar" type="file" property="checkstyle.jar.present">
379N/A <filepath refid="checkstyle.lib.search.path"/>
379N/A </available>
379N/A <fail unless="checkstyle.jar.present" message="Please install checkstyle-all.jar in lib-directory (or in ant classpath) to run Checkstyle, see README."/>
411N/A </target>
379N/A
379N/A <target name="checkstyle" depends="compile, -check_checkstyle" description="Run checkstyle on OpenGrok source code">
379N/A <taskdef resource="checkstyletask.properties" classpath="${checkstyle.home}/checkstyle-all.jar"/>
386N/A <checkstyle config="checkstyle/style.xml" failOnViolation="false">
379N/A <fileset dir="src" includes="**/*.java"/>
379N/A <formatter type="plain"/>
379N/A <formatter type="plain" toFile="checkstyle/checkstyle_errors.txt"/>
379N/A <formatter type="xml" toFile="checkstyle/checkstyle_errors.xml"/>
379N/A </checkstyle>
411N/A </target>
411N/A
411N/A <target name="-check_pmd" description="Check that pmd jar files are present">
411N/A <available file="pmd.jar" type="file" property="pmd.jar.present">
411N/A <filepath refid="pmd.lib.search.path"/>
411N/A </available>
411N/A <fail unless="pmd.jar.present" message="Please install pmd.jar in lib-directory (or in ant classpath) to run PMD, see README."/>
411N/A </target>
411N/A
411N/A <target name="pmd" depends="compile, -check_pmd" description="Run PMD on OpenGrok source code">
411N/A <path id="pmd.lib" >
411N/A <pathelement location="${pmd.home}/lib/pmd.jar"/>
411N/A <pathelement location="${pmd.home}/lib/jaxen.jar"/>
411N/A </path>
411N/A <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpathref="pmd.lib"/>
411N/A <mkdir dir="pmd"/>
482N/A <pmd targetjdk="1.6" failuresPropertyName="pmd.num.warnings" rulesetfiles="tools/pmd_ruleset.xml">
411N/A <formatter type="html" toFile="pmd/pmd_report.html"/>
411N/A <formatter type="xml" toFile="pmd/pmd_report.xml"/>
411N/A <fileset dir="src" includes="**/*.java"/>
411N/A </pmd>
463N/A <echo message="PMD finished, found ${pmd.num.warnings} warnings, see pmd/pmd_report.html"/>
411N/A </target>
339N/A
336N/A <target name="-check_emma" description="Check that emma jar files are present">
381N/A <available file="emma.jar" type="file" property="emma.jar.present">
336N/A <filepath refid="lib.search.path"/>
336N/A </available>
336N/A <fail unless="emma.jar.present" message="Please install emma.jar in lib-directory (or in ant classpath) to run Emma, see README."/>
336N/A
336N/A <available file="emma_ant.jar" type="file" property="emma_ant.jar.present">
336N/A <filepath refid="lib.search.path"/>
336N/A </available>
336N/A <fail unless="emma_ant.jar.present" message="Please install emma_ant.jar in lib-directory (or in ant classpath) to run Emma, see README."/>
336N/A </target>
336N/A
336N/A <target name="emma-instrument" depends="compile, -check_emma" description="Instruments the source code for Emma code coverage analysis">
301N/A <path id="emma.lib" >
301N/A <pathelement location="lib/emma.jar"/>
301N/A <pathelement location="lib/emma_ant.jar"/>
301N/A </path>
301N/A <taskdef resource="emma_ant.properties" classpathref="emma.lib"/>
301N/A <mkdir dir="${coverage.dir}" />
301N/A <emma enabled="true">
301N/A <instr instrpath="build/classes"
301N/A metadatafile="${coverage.dir}/coverage.em"
301N/A mode="overwrite"
301N/A filter="+org.opensolaris.*"/>
301N/A </emma>
301N/A </target>
301N/A
301N/A <target name="-pre-compile-test">
301N/A <property name="test-sys-prop.emma.coverage.out.file" value="${coverage.dir}/coverage.ec"/>
301N/A <property name="test-sys-prop.emma.coverage.out.merge" value="true"/>
448N/A </target>
446N/A
448N/A <target name="-post-compile-test">
500N/A <antcall target="-create-svn-repository"/>
455N/A <!-- Generate ZIP files used for unit testing mercurial/.hg and mercurial/.hgignore are renamed -->
455N/A <copy todir="testdata/repositories/mercurial/.hg">
455N/A <fileset dir="testdata/repositories/mercurial/hg"/>
455N/A </copy>
455N/A <copy file="testdata/repositories/mercurial/hgignore" tofile="testdata/repositories/mercurial/.hgignore"/>
455N/A
480N/A <zip destfile="${build.test.classes.dir}/org/opensolaris/opengrok/index/source.zip"
480N/A basedir="testdata/sources"
480N/A update="false"
480N/A defaultexcludes="no"/>
455N/A <zip destfile="${build.test.classes.dir}/org/opensolaris/opengrok/history/repositories.zip"
455N/A basedir="testdata/repositories"
455N/A excludes="mercurial/hg/**, mercurial/hgignore"
480N/A update="false"
480N/A defaultexcludes="no"/>
455N/A
455N/A <delete dir="testdata/repositories/mercurial/.hg"/>
455N/A <delete file="testdata/repositories/mercurial/.hgignore"/>
500N/A <delete dir="testdata/repositories/svn"/>
500N/A </target>
500N/A
500N/A <target name="-create-svn-repository">
500N/A <delete dir="testdata/repositories/svn"/>
500N/A <delete dir="${build.test.reposroots}/svn"/>
500N/A <mkdir dir="${build.test.reposroots}"/>
500N/A <exec command="svnadmin" failifexecutionfails="false">
500N/A <arg value="create"/>
500N/A <arg value="${build.test.reposroots}/svn"/>
500N/A </exec>
500N/A <exec command="svn" failifexecutionfails="false">
500N/A <arg value="import"/>
500N/A <arg value="testdata/sources"/>
500N/A <arg value="file://${build.test.reposroots}/svn"/>
500N/A <arg value="-m"/>
500N/A <arg value="Initial import"/>
500N/A </exec>
500N/A <exec command="svn" failifexecutionfails="false">
500N/A <arg value="checkout"/>
500N/A <arg value="file://${build.test.reposroots}/svn"/>
500N/A <arg value="testdata/repositories/svn"/>
500N/A </exec>
301N/A </target>
301N/A
336N/A <target name="emma-report" description="Analyze" depends="-check_emma">
301N/A <taskdef resource="emma_ant.properties" classpathref="emma.lib"/>
301N/A <emma enabled="true" >
501N/A <report sourcepath="${src.dir},${src.generatedsrc.dir}">
301N/A <!-- collect all EMMA data dumps (metadata and runtime): -->
301N/A <infileset dir="${coverage.dir}" includes="*.em, *.ec"/>
301N/A <txt outfile="${coverage.dir}/coverage.txt"/>
301N/A <xml outfile="${coverage.dir}/coverage.xml"/>
301N/A <html outfile="${coverage.dir}/index.html"/>
301N/A </report>
301N/A </emma>
301N/A </target>
301N/A
449N/A <target name="code-coverage" depends="clean, emma-instrument, test, emma-report" description="Make test code coverage reports based on the OpenGrok unit tests"/>
449N/A
132N/A</project>