build.xml revision 1094
0N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
0N/A location="${unittest.testng.dir}/src/server"/>
0N/A location="${build.dir}/unit-tests/classes" />
0N/A location="${build.dir}/unit-tests/report"/>
0N/A location="${build.dir}/unit-tests/resource"/>
0N/A <!-- Properties for use in functional/integration testing. -->
0N/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"
0N/A depends="enableweave,checkstyle,clean,copyrightdates,eolstyle,dsml,javadoc,testallwithcoverage"
<!-- 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"
! 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 -->
<!-- Generate the quicksetup.jar file -->
<!-- Generate the statuspanel.jar file -->
location="${package.dir}/OpenDS-${pkgversion}" />
<fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/bin" includes="*.bat,README_WINDOWS.txt" eol="crlf" />
tofile="${pdir}/config/upgrade/config.ldif.${REVISION_NUMBER}" />
classname="org.opends.build.tools.ConcatSchema">
toFile="${pdir}/config/upgrade/schema.ldif.${REVISION_NUMBER}" />
<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." />
<echo message=" -Dorg.opends.test.debug.target=org.opends.server.core:level=verbose,category=data_access"/>
<echo message=" org.opends.server:level=verbose,category=caught|data|database_access|message|protocol" />
<!-- 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
<!-- This sets org.opends.test.pauseOnFailure if and only if it's not
<!-- This sets org.opends.test.debug.target if and only if its's not
value="org.opends.server:level=info,category=caught|data|database_access|message|protocol">
<!-- 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"/>
<target name="compileadmin" depends="validateadmin" description="Code generation for configuration Object.">
<xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/*Configuration.xml" style="${admin.rules.dir}/metaMO.xsl">
<regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.java" />
<xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/Package.xml" style="${admin.rules.dir}/package-info.xsl">
<xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/*Configuration.xml" style="${admin.rules.dir}/clientMO.xsl">
<regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/client/\2CfgClient.java" />
<xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/Package.xml" style="${admin.rules.dir}/package-info.xsl">
<xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/*Configuration.xml" style="${admin.rules.dir}/serverMO.xsl">
<regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/server/\2Cfg.java" />
<xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/Package.xml" style="${admin.rules.dir}/package-info.xsl">
<xslt basedir="${admin.defn.dir}" destdir="${classes.dir}/admin/profiles/ldap" includes="**/*Configuration.xml" style="${admin.rules.dir}/ldapMOProfile.xsl">
<regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.properties" />
<xslt basedir="${admin.defn.dir}" destdir="${admin.temp.dir}" extension=".manifest" includes="**/*Configuration.xml" style="${admin.rules.dir}/manifestMO.xsl"/>
<target name="validateadmin" description="Validate core administration component XML definition files.">
<copy todir="${plugin.temp.dir}/example-plugin" file="${admin.rules.dir}/example-plugin/build.xml" />
<copy todir="${plugin.temp.dir}/example-plugin/resource/schema" file="${admin.rules.dir}/example-plugin/99-example-plugin.ldif" />
<copy todir="${plugin.temp.dir}/example-plugin/resource/config" file="${admin.rules.dir}/example-plugin/example-plugin.ldif" />