build.xml revision 50b0156a1c1171fd9b14235dba29ada8694f36fc
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="${classes.dir}/org/opends/quicksetup" />
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 <property name="admin.gen.marker" location="${admin.src.dir}/.generated-successfully-marker" />
0N/A <genmsg sourceProps="${msg.prop.dir}/xxx.properties"
0N/A destJava="${msg.javagen.dir}/org/opends/messages/XxxMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/AccessControlMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/AdminMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/AdminToolMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/BackendMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/ConfigMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/CoreMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/DSConfigMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/ExtensionMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/JebMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/LoggerMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/PluginMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/ProtocolMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/QuickSetupMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/ReplicationMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/SchemaMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/TaskMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/ThirdPartyMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/ToolMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/UserDefinedMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/UtilityMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/VersionMessages.java">
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 ${SHORT_NAME}."/>
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 <javac srcdir="${src.dir}:${admin.src.dir}:${msg.src.dir}:${msg.javagen.dir}:${ads.src.dir}:${quicksetup.src.dir}:${guitools.src.dir}"
0N/A <javac srcdir="${src.dir}:${msg.src.dir}:${msg.javagen.dir}" destdir="${quicksetup.classes.dir}"
183N/A includes="**/quicksetup.properties" />
183N/A ! DynamicConstants.java won't be regenerated.
183N/A location="${package.dir}/${SHORT_NAME}-${VERSION_NUMBER_STRING}" />
183N/A <!-- Clean up a minimal set of files/directories for the rebuild. -->
0N/A <javac srcdir="${src.dir}:${msg.src.dir}:${msg.javagen.dir}:${admin.src.dir}:${ads.src.dir}:${quicksetup.src.dir}:${guitools.src.dir}"
0N/A destdir="${classes.dir}"
0N/A file="${msg.javagen.dir}/org/opends/messages/descriptors.reg" />
0N/A <!-- Generate the OpenDS.jar file -->
0N/A basedir="${classes.dir}"
0N/A excludes="${ads.classes.dir}, ${quicksetup.globalcompile.classes.dir}"
0N/A <!-- Generate the quicksetup.jar file -->
0N/A location="${package.dir}/${SHORT_NAME}-${VERSION_NUMBER_STRING}" />
0N/A file="${msg.javagen.dir}/org/opends/messages/descriptors.reg" />
0N/A basedir="${classes.dir}"
0N/A excludes="${ads.classes.dir}, ${quicksetup.globalcompile.classes.dir}"
0N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/bin" excludes="*.bat,_client-script.sh,_server-script.sh" eol="lf" />
0N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/lib" includes="_client-script.sh,_server-script.sh" eol="lf" />
0N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/bin" includes="README_WINDOWS.txt" eol="crlf" />
0N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/bat" excludes="_client-script.bat,_server-script.bat,setcp.bat" includes="*.bat" eol="crlf" />
0N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/lib" includes="_client-script.bat,_server-script.bat,setcp.bat" eol="crlf" />
0N/A tofile="${pdir}/config/upgrade/config.ldif.${REVISION_NUMBER}" />
0N/A toFile="${pdir}/config/upgrade/schema.ldif.${REVISION_NUMBER}" />
0N/A <fixcrlf srcDir="${resource.dir}" destDir="${pdir}" includes="setup,setup-gui,uninstall,uninstall-gui,upgrade"
0N/A <fixcrlf srcDir="${resource.dir}" destDir="${pdir}" includes="setup.bat,setup-gui.bat,uninstall.bat,uninstall-gui.bat,upgrade.bat"
0N/A excludes="${SHORT_NAME}-${VERSION_NUMBER_STRING}/bin/*,${SHORT_NAME}-${VERSION_NUMBER_STRING}/lib/_client-script.sh,${SHORT_NAME}-${VERSION_NUMBER_STRING}/lib/_server-script.sh,${SHORT_NAME}-${VERSION_NUMBER_STRING}/setup,${SHORT_NAME}-${VERSION_NUMBER_STRING}/setup-gui,${SHORT_NAME}-${VERSION_NUMBER_STRING}/uninstall,${SHORT_NAME}-${VERSION_NUMBER_STRING}/uninstall-gui,${SHORT_NAME}-${VERSION_NUMBER_STRING}/upgrade"
0N/A includes="${SHORT_NAME}-${VERSION_NUMBER_STRING}/lib/_client-script.sh,${SHORT_NAME}-${VERSION_NUMBER_STRING}/lib/_server-script.sh"
0N/A excludes="${SHORT_NAME}-${VERSION_NUMBER_STRING}/bin/README_WINDOWS.txt"
0N/A <zipfileset dir="${package.dir}" includes="${SHORT_NAME}-${VERSION_NUMBER_STRING}/bin/README_WINDOWS.txt"
0N/A <zipfileset dir="${package.dir}" includes="${SHORT_NAME}-${VERSION_NUMBER_STRING}/setup,${SHORT_NAME}-${VERSION_NUMBER_STRING}/setup-gui,${SHORT_NAME}-${VERSION_NUMBER_STRING}/uninstall,${SHORT_NAME}-${VERSION_NUMBER_STRING}/uninstall-gui,${SHORT_NAME}-${VERSION_NUMBER_STRING}/upgrade"
0N/A <condition property="test.packages" value="org.opends.server.*,org.opends.messages.*,org.opends.quicksetup.*">
0N/A classpath="${build.dir}/build-tools/build-tools.jar" />
0N/A tofile="${unittest.resource.dir}/testng.xml"
0N/A grouplist="${test.groups}"
0N/A packagelist="${test.packages}"
0N/A classList="${test.classes}"
0N/A methodList="${test.methods}" />
0N/A then we overwrite the testng.xml that we just generated
0N/A with testng-failed.xml, which TestNG generated. -->
0N/A file="${unittest.report.dir}/testng-failed.xml"/>
0N/A unless="testng-failed.xml.exists"/>
0N/A tofile="${unittest.resource.dir}/testng.xml"
0N/A outputpath="${cvgdiff.report.dir}"
0N/A diffpath="${test.diff.srcpath}"
0N/A enabled="${test.diff.enabled}"
0N/A verbose="${test.diff.verbose}"
0N/A fromrevision="${test.diff.from.revision}" />
0N/A <echo message="This target is deprecated. Please use the test target as it now supports the test.* properties." />
0N/A description="Run all of the TestNG tests (including 'slow' ones) with assertions enabled. See 'testwithcoverage' for properties you can set.">
0N/A 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.">
0N/A 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.">
0N/A <!-- Execute the Directory Server TestNG unit tests in text mode with a coverage report and slow tests. -->
0N/A <!-- Execute the Directory Server TestNG unit tests specified from CLI in text mode with a coverage report. -->
0N/A <echo message="This target is deprecated. Please use the testwithcoverage target as it now supports the test.* properties." />
0N/A <echo message=" -Dorg.opends.test.debug.target=org.opends.server.core:level=verbose,category=data"/>
0N/A <echo message=" org.opends.server:level=warning,category=caught|data|database-access|message|protocol,stack" />
0N/A <!-- Internal target to execute the Directory Server TestNG unit tests in text mode after everything has been initialized. -->
0N/A <!-- This sets testng.verbosity if it's not already set. -->
0N/A <!-- This sets org.opends.test.suppressOutput if and only if it's not
0N/A <!-- This sets org.opends.test.pauseOnFailure if and only if it's not
0N/A <!-- This sets org.opends.test.debug.target if and only if its's not
0N/A value="org.opends.server:level=warning,category=caught|data|database-access|message|protocol,stack">
-Djava.compiler=NONE
value="-Xrunjdwp:transport=dt_socket,server=y,suspend=${test.remote.debug.suspend},address=${test.remote.debug.port}"
else="-Dopends.bogus.debug.arg4">
<!-- Cleanout the old reports. Otherwise, the old testng-failed.xml
verbose="${testng.verbosity0to5}"
listeners="org.opends.server.TestListener org.testng.reporters.FailedReporter"
suiteRunnerClass="org.opends.server.SuiteRunner">
<jvmarg value="-Dorg.opends.test.copyClassesToTestPackage=${org.opends.test.copyClassesToTestPackage}" />
file="${unittest.report.dir}/.tests-failed-marker"/>
includes="org/opends/messages/Severity.java,
unless="generatedAdmin.upToDate">
<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"/>
unless="generatedAdmin.upToDate">
<!-- 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" />