build.xml revision 1590
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"/>
233N/A <!-- Properties for use in functional/integration testing. -->
0N/A location="tests/integration-tests-testng" />
114N/A location="${functest.testng.dir}/src"/>
0N/A location="${build.dir}/quicksetup/classes" />
422N/A location="${build.dir}/statuspanel/classes" />
0N/A location="${cvgdiff.dir}/report" />
233N/A location="${coverage.dir}/reports/unit" />
233N/A location="${coverage.dir}/instrumentedcode" />
0N/A location="${coverage.dir}/gathereddata" />
0N/A location="${resource.dir}/DynamicConstants.java.stubs" />
0N/A <!-- Perform common initialization common to several targets after cleaning out the previous build environment. -->
0N/A <!-- Set the property valid.java.version if the java version is valid. -->
0N/A unless="valid.java.version" >
0N/A message="WARNING: Java version ${java.version} is too old."/>
0N/A message="Java version ${min.java.version} or later is required to build OpenDS."/>
0N/A ! java.vm.vendor property, which wreaks havoc with DynamicConstants. This
0N/A <!-- Build the DynamicConstants.java file and any of its dependencies. -->
0N/A <!-- Generate the DynamicConstants.java file.
0N/A VERSION_QUALIFIER, FIX_IDS, timestamp, user.name, java.version,
0N/A java.vendor, java.vm.version, JVM_VENDOR, DEBUG_BUILD, REVISION_NUMBER,
0N/A tofile="${dynconstants.file}"
0N/A classpath="${checkstyle.dir}/checkstyle-all-4.1.jar" />
0N/A excludes="**/package-info.java"
0N/A ! DynamicConstants.java won't be regenerated.
0N/A location="${package.dir}/OpenDS-${VERSION_NUMBER_STRING}" />
0N/A <!-- Clean up a minimal set of files/directories for the rebuild. -->
0N/A destdir="${classes.dir}"
318N/A <!-- Generate the OpenDS.jar file -->
318N/A <!-- Generate the quicksetup.jar file -->
503N/A <!-- Generate the statuspanel.jar file -->
0N/A location="${package.dir}/OpenDS-${VERSION_NUMBER_STRING}" />
318N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/bin" excludes="*.bat,_client-script.sh,_server-script.sh" eol="lf" />
318N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/lib" includes="_client-script.sh,_server-script.sh" eol="lf" />
318N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/bin" includes="README_WINDOWS.txt" eol="crlf" />
318N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/bat" excludes="_client-script.bat,_server-script.bat,setcp.bat" includes="*.bat" eol="crlf" />
318N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/lib" includes="_client-script.bat,_server-script.bat,setcp.bat" eol="crlf" />
21N/A tofile="${pdir}/config/upgrade/config.ldif.${REVISION_NUMBER}" />
121N/A toFile="${pdir}/config/upgrade/schema.ldif.${REVISION_NUMBER}" />
233N/A <fixcrlf srcDir="${resource.dir}" destDir="${pdir}" includes="setup.bat,uninstall.bat,upgrade.bat"
excludes="OpenDS-${VERSION_NUMBER_STRING}/bin/*,OpenDS-${VERSION_NUMBER_STRING}/lib/_client-script.sh,OpenDS-${VERSION_NUMBER_STRING}/lib/_server-script.sh,OpenDS-${VERSION_NUMBER_STRING}/setup,OpenDS-${VERSION_NUMBER_STRING}/uninstall,OpenDS-${VERSION_NUMBER_STRING}/upgrade"
includes="OpenDS-${VERSION_NUMBER_STRING}/lib/_client-script.sh,OpenDS-${VERSION_NUMBER_STRING}/lib/_server-script.sh"
excludes="OpenDS-${VERSION_NUMBER_STRING}/bin/README_WINDOWS.txt"
<zipfileset dir="${package.dir}" includes="OpenDS-${VERSION_NUMBER_STRING}/setup,OpenDS-${VERSION_NUMBER_STRING}/uninstall,OpenDS-${VERSION_NUMBER_STRING}/upgrade"
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"/>
<echo message=" org.opends.server:level=warning,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=warning,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="${classes.dir}/admin/profiles/cli" includes="**/*Configuration.xml" style="${admin.rules.dir}/cliMOProfile.xsl">
<regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.properties" />
<xslt basedir="${admin.defn.dir}" destdir="${classes.dir}/admin/messages" includes="**/*Configuration.xml" style="${admin.rules.dir}/messagesMO.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.">
<!-- Generate a src.zip file containing all the server source. -->
description="Generate a src.zip file with all the server source.">
<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" />