build.xml revision 735
0N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
1568N/A location="${unittest.testng.dir}/src/server"/>
45N/A location="${build.dir}/unit-tests/classes" />
0N/A location="${build.dir}/unit-tests/report"/>
78N/A location="${build.dir}/unit-tests/resource"/>
45N/A <!-- Properties for use in functional/integration testing. -->
1568N/A location="tests/integration-tests-testng" />
0N/A location="${functest.testng.dir}/src"/>
0N/A location="${build.dir}/quicksetup/classes" />
0N/A location="${build.dir}/statuspanel/classes" />
0N/A location="${cvgdiff.dir}/report" />
0N/A location="${coverage.dir}/reports/unit" />
0N/A location="${coverage.dir}/instrumentedcode" />
0N/A location="${coverage.dir}/gathereddata" />
0N/A location="${resource.dir}/DynamicConstants.java.stubs" />
0N/A <target name="precommit" depends="checkstyle,clean,copyrightdates,eolstyle,dsml,javadoc,testwithcoverage"
<!-- Perform common initialization common to several targets after cleaning out the previous build environment. -->
! java.vm.vendor property, which wreaks havoc with DynamicConstants. This
<!-- Build the DynamicConstants.java file and any of its dependencies. -->
classname="org.opends.build.tools.GetSubversionRevision">
<!-- Generate the DynamicConstants.java file.
VERSION_QUALIFIER, FIX_IDS, timestamp, user.name, java.version,
java.vendor, java.vm.version, JVM_VENDOR, DEBUG_BUILD, REVISION_NUMBER
If you change the name of any of those properties in this build.xml
tofile="${dynconstants.file}"
classname="org.opends.build.tools.CheckCopyrightDates">
classname="org.opends.build.tools.CheckEOLStyle">
classpath="${checkstyle.dir}/checkstyle-all-4.1.jar" />
excludes="**/package-info.java"
includes="**/DynamicConstants.class **/SetupUtils.class" />
! DynamicConstants.java won't be regenerated.
location="${package.dir}/OpenDS-${pkgversion}" />
<!-- Clean up a minimal set of files/directories for the rebuild. -->
<!-- Generate the OpenDS.jar file -->
includes="**/DynamicConstants.class **/SetupUtils.class"/>
<!-- Generate the quicksetup.jar file -->
<!-- Generate the statuspanel.jar file -->
location="${package.dir}/OpenDS-${pkgversion}" />
<zipfileset dir="${package.dir}" includes="OpenDS-${pkgversion}/setup,OpenDS-${pkgversion}/uninstall"
excludes="web.xml, **/*.jar, **/*.properties" />
classpath="${build.dir}/build-tools/build-tools.jar" />
tofile="${unittest.resource.dir}/testng.xml"
grouplist="${test.groups}"
packagelist="${test.packages}"
classList="${test.classes}"
methodList="${test.methods}" />
then we overwrite the testng.xml that we just generated
with testng-failed.xml, which TestNG generated. -->
file="${unittest.report.dir}/testng-failed.xml"/>
unless="testng-failed.xml.exists"/>
tofile="${unittest.resource.dir}/testng.xml"
outputpath="${cvgdiff.report.dir}"
diffpath="${test.diff.srcpath}"
enabled="${test.diff.enabled}"
verbose="${test.diff.verbose}" />
<echo message="This target is deprecated. Please use the test target as it now supports the test.* properties." />
description="Run all of the TestNG tests (including 'slow' ones) with assertions enabled. See 'testwithcoverage' for properties you can set.">
description="Execute the Directory Server TestNG unit tests in text mode. Set '-Dorg.opends.test.suppressOutput=false' to see the output from the unit tests. Set '-Dtest.failures=true' to run only the tests that failed previously.">
description="Execute the Directory Server TestNG unit tests in text mode with a coverage report. Use -Dtest.packages, -Dtest.classes, or -Dtest.methods to control which unit tests are run. Use -Dtest.diff.srcpath to control which src files show up in the coverage diff. See the 'test' package for other properties you can set.">
<!-- Execute the Directory Server TestNG unit tests in text mode with a coverage report and slow tests. -->
<!-- Execute the Directory Server TestNG unit tests specified from CLI in text mode with a coverage report. -->
<echo message="This target is deprecated. Please use the testwithcoverage target as it now supports the test.* properties." />
<!-- Internal target to execute the Directory Server TestNG unit tests in text mode after everything has been initialized. -->
<!-- This sets org.opends.test.suppressOutput if and only if it's not
<!-- Cleanout the old reports. Otherwise, the old testng-failed.xml
listeners="org.opends.server.TestListener org.testng.reporters.FailedReporter"
suiteRunnerClass="org.opends.server.SuiteRunner">
file="${unittest.report.dir}/.tests-failed-marker"/>