build.xml revision 2123
0N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
3214N/A location="${unittest.testng.dir}/src/server"/>
1083N/A location="${build.dir}/unit-tests/classes" />
1083N/A location="${build.dir}/unit-tests/report"/>
6133N/A location="${build.dir}/unit-tests/resource"/>
6157N/A <!-- Properties for use in functional/integration testing. -->
6157N/A location="tests/integration-tests-testng" />
6157N/A location="${functest.testng.dir}/src"/>
712N/A location="${build.dir}/quicksetup/classes" />
0N/A location="${classes.dir}/org/opends/quicksetup" />
0N/A location="${cvgdiff.dir}/report" />
567N/A location="${coverage.dir}/reports/unit" />
567N/A location="${coverage.dir}/instrumentedcode" />
2046N/A location="${coverage.dir}/gathereddata" />
0N/A location="${resource.dir}/DynamicConstants.java.stubs" />
6158N/A <genmsg sourceProps="${msg.prop.dir}/xxx.properties"
6571N/A destJava="${msg.javagen.dir}/org/opends/messages/XxxMessages.java">
6571N/A destJava="${msg.javagen.dir}/org/opends/messages/AccessControlMessages.java">
6917N/A destJava="${msg.javagen.dir}/org/opends/messages/AdminMessages.java">
6162N/A destJava="${msg.javagen.dir}/org/opends/messages/AdminToolMessages.java">
6280N/A destJava="${msg.javagen.dir}/org/opends/messages/BackendMessages.java">
5902N/A destJava="${msg.javagen.dir}/org/opends/messages/ConfigMessages.java">
5902N/A destJava="${msg.javagen.dir}/org/opends/messages/CoreMessages.java">
5713N/A destJava="${msg.javagen.dir}/org/opends/messages/ExtensionMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/JebMessages.java">
3381N/A destJava="${msg.javagen.dir}/org/opends/messages/LoggerMessages.java">
5058N/A destJava="${msg.javagen.dir}/org/opends/messages/PluginMessages.java">
5058N/A destJava="${msg.javagen.dir}/org/opends/messages/ProtocolMessages.java">
1177N/A destJava="${msg.javagen.dir}/org/opends/messages/QuickSetupMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/ReplicationMessages.java">
1177N/A destJava="${msg.javagen.dir}/org/opends/messages/SchemaMessages.java">
3853N/A destJava="${msg.javagen.dir}/org/opends/messages/TaskMessages.java">
3853N/A destJava="${msg.javagen.dir}/org/opends/messages/ThirdPartyMessages.java">
3853N/A destJava="${msg.javagen.dir}/org/opends/messages/ToolMessages.java">
3853N/A destJava="${msg.javagen.dir}/org/opends/messages/UserDefinedMessages.java">
0N/A destJava="${msg.javagen.dir}/org/opends/messages/UtilityMessages.java">
1177N/A destJava="${msg.javagen.dir}/org/opends/messages/VersionMessages.java">
6919N/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. -->
2086N/A unless="valid.java.version" >
2086N/A message="WARNING: Java version ${java.version} is too old."/>
2086N/A message="Java version ${min.java.version} or later is required to build ${SHORT_NAME}."/>
2086N/A ! java.vm.vendor property, which wreaks havoc with DynamicConstants. This
5947N/A <!-- Build the DynamicConstants.java file and any of its dependencies. -->
5947N/A <!-- Generate the DynamicConstants.java file.
5947N/A VERSION_QUALIFIER, FIX_IDS, timestamp, user.name, java.version,
5947N/A java.vendor, java.vm.version, JVM_VENDOR, DEBUG_BUILD, REVISION_NUMBER,
5947N/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}"
4274N/A <javac srcdir="${src.dir}:${msg.src.dir}:${msg.javagen.dir}" destdir="${quicksetup.classes.dir}"
109N/A includes="**/quicksetup.properties" />
1344N/A ! DynamicConstants.java won't be regenerated.
0N/A location="${package.dir}/${SHORT_NAME}-${VERSION_NUMBER_STRING}" />
0N/A <!-- Clean up a minimal set of files/directories for the rebuild. -->
2086N/A <javac srcdir="${src.dir}:${msg.src.dir}:${msg.javagen.dir}:${admin.src.dir}:${ads.src.dir}:${quicksetup.src.dir}:${guitools.src.dir}"
2086N/A destdir="${classes.dir}"
3381N/A file="${msg.javagen.dir}/org/opends/messages/descriptors.reg" />
3381N/A <!-- Generate the OpenDS.jar file -->
0N/A basedir="${classes.dir}"
0N/A excludes="${ads.classes.dir}, ${quicksetup.globalcompile.classes.dir}"
5902N/A <!-- Generate the quicksetup.jar file -->
2033N/A location="${package.dir}/${SHORT_NAME}-${VERSION_NUMBER_STRING}" />
5902N/A file="${msg.javagen.dir}/org/opends/messages/descriptors.reg" />
567N/A basedir="${classes.dir}"
567N/A excludes="${ads.classes.dir}, ${quicksetup.globalcompile.classes.dir}"
1177N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/bin" excludes="*.bat,_client-script.sh,_server-script.sh" eol="lf" />
2710N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/lib" includes="_client-script.sh,_server-script.sh" eol="lf" />
2710N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/bin" includes="README_WINDOWS.txt" eol="crlf" />
2710N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/bat" excludes="_client-script.bat,_server-script.bat,setcp.bat" includes="*.bat" eol="crlf" />
2710N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/lib" includes="_client-script.bat,_server-script.bat,setcp.bat" eol="crlf" />
3980N/A tofile="${pdir}/config/upgrade/config.ldif.${REVISION_NUMBER}" />
5058N/A toFile="${pdir}/config/upgrade/schema.ldif.${REVISION_NUMBER}" />
2710N/A <fixcrlf srcDir="${resource.dir}" destDir="${pdir}" includes="setup,uninstall,uninstall-gui,upgrade"
563N/A <fixcrlf srcDir="${resource.dir}" destDir="${pdir}" includes="setup.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}/uninstall,${SHORT_NAME}-${VERSION_NUMBER_STRING}/uninstall-gui,${SHORT_NAME}-${VERSION_NUMBER_STRING}/upgrade"
1960N/A includes="${SHORT_NAME}-${VERSION_NUMBER_STRING}/lib/_client-script.sh,${SHORT_NAME}-${VERSION_NUMBER_STRING}/lib/_server-script.sh"
563N/A excludes="${SHORT_NAME}-${VERSION_NUMBER_STRING}/bin/README_WINDOWS.txt"
1008N/A <zipfileset dir="${package.dir}" includes="${SHORT_NAME}-${VERSION_NUMBER_STRING}/bin/README_WINDOWS.txt"
1008N/A <zipfileset dir="${package.dir}" includes="${SHORT_NAME}-${VERSION_NUMBER_STRING}/setup,${SHORT_NAME}-${VERSION_NUMBER_STRING}/uninstall,${SHORT_NAME}-${VERSION_NUMBER_STRING}/uninstall-gui,${SHORT_NAME}-${VERSION_NUMBER_STRING}/upgrade"
2122N/A <condition property="test.packages" value="org.opends.server.*,org.opends.messages.*,org.opends.quicksetup.*">
4495N/A classpath="${build.dir}/build-tools/build-tools.jar" />
4495N/A tofile="${unittest.resource.dir}/testng.xml"
4495N/A grouplist="${test.groups}"
4495N/A packagelist="${test.packages}"
4495N/A classList="${test.classes}"
4495N/A methodList="${test.methods}" />
6131N/A then we overwrite the testng.xml that we just generated
6131N/A with testng-failed.xml, which TestNG generated. -->
712N/A file="${unittest.report.dir}/testng-failed.xml"/>
6174N/A unless="testng-failed.xml.exists"/>
2976N/A tofile="${unittest.resource.dir}/testng.xml"
3537N/A outputpath="${cvgdiff.report.dir}"
6307N/A diffpath="${test.diff.srcpath}"
3012N/A enabled="${test.diff.enabled}"
3012N/A verbose="${test.diff.verbose}"
2549N/A fromrevision="${test.diff.from.revision}" />
6280N/A <echo message="This target is deprecated. Please use the test target as it now supports the test.* properties." />
2556N/A description="Run all of the TestNG tests (including 'slow' ones) with assertions enabled. See 'testwithcoverage' for properties you can set.">
6280N/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.">
2556N/A <!-- Execute the Directory Server TestNG unit tests in text mode with a coverage report. -->
2556N/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.">
6280N/A <!-- Execute the Directory Server TestNG unit tests in text mode with a coverage report and slow tests. -->
485N/A <!-- Execute the Directory Server TestNG unit tests specified from CLI in text mode with a coverage report. -->
485N/A <echo message="This target is deprecated. Please use the testwithcoverage target as it now supports the test.* properties." />
6238N/A <echo message=" -Dorg.opends.test.debug.target=org.opends.server.core:level=verbose,category=data"/>
1559N/A <echo message=" org.opends.server:level=warning,category=caught|data|database-access|message|protocol" />
6560N/A <!-- Internal target to execute the Directory Server TestNG unit tests in text mode after everything has been initialized. -->
6560N/A <!-- This sets org.opends.test.suppressOutput if and only if it's not
6560N/A <!-- This sets org.opends.test.pauseOnFailure if and only if it's not
6560N/A <!-- This sets org.opends.test.debug.target if and only if its's not
6560N/A value="org.opends.server:level=warning,category=caught|data|database-access|message|protocol">
3069N/A <!-- Cleanout the old reports. Otherwise, the old testng-failed.xml
6238N/A listeners="org.opends.server.TestListener org.testng.reporters.FailedReporter"
3069N/A file="${unittest.report.dir}/.tests-failed-marker"/>
3000N/A <target name="compileadmin" depends="validateadmin" description="Code generation for configuration Object.">
0N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/*Configuration.xml" style="${admin.rules.dir}/metaMO.xsl">
0N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.java" />
0N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/Package.xml" style="${admin.rules.dir}/package-info.xsl">
0N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)\.xml$$" to="\1/meta/package-info.java" />
0N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/*Configuration.xml" style="${admin.rules.dir}/clientMO.xsl">
5178N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/client/\2CfgClient.java" />
6158N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/Package.xml" style="${admin.rules.dir}/package-info.xsl">
0N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)\.xml$$" to="\1/client/package-info.java" />
2528N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/*Configuration.xml" style="${admin.rules.dir}/serverMO.xsl">
2528N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/server/\2Cfg.java" />
0N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/Package.xml" style="${admin.rules.dir}/package-info.xsl">
1527N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)\.xml$$" to="\1/server/package-info.java" />
0N/A <xslt basedir="${admin.defn.dir}" destdir="${classes.dir}/admin/profiles/ldap" includes="**/*Configuration.xml" style="${admin.rules.dir}/ldapMOProfile.xsl">
2255N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.properties" />
2900N/A <xslt basedir="${admin.defn.dir}" destdir="${classes.dir}/admin/profiles/cli" includes="**/*Configuration.xml" style="${admin.rules.dir}/cliMOProfile.xsl">
2896N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.properties" />
2896N/A <xslt basedir="${admin.defn.dir}" destdir="${classes.dir}/admin/messages" includes="**/*Configuration.xml" style="${admin.rules.dir}/messagesMO.xsl">
6140N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.properties" />
2896N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.temp.dir}" extension=".manifest" includes="**/*Configuration.xml" style="${admin.rules.dir}/manifestMO.xsl"/>
2896N/A <target name="validateadmin" description="Validate core administration component XML definition files.">
2896N/A <schema namespace="http://www.opends.org/admin-ldap" file="${admin.rules.dir}/admin-ldap.xsd"/>
2896N/A <schema namespace="http://www.opends.org/admin-cli" file="${admin.rules.dir}/admin-cli.xsd"/>
2896N/A <target name="cleanmessages" description="Clean up any generated source files for messages">
2900N/A <copy todir="${plugin.temp.dir}/example-plugin" file="${admin.rules.dir}/example-plugin/build.xml" />
2896N/A <copy todir="${plugin.temp.dir}/example-plugin" file="${admin.rules.dir}/example-plugin/README" />
2896N/A <copy todir="${plugin.temp.dir}/example-plugin/resource/schema" file="${admin.rules.dir}/example-plugin/99-example-plugin.ldif" />
4235N/A <copy todir="${plugin.temp.dir}/example-plugin/resource/config" file="${admin.rules.dir}/example-plugin/example-plugin.ldif" />
2900N/A <fileset dir="${admin.rules.dir}/example-plugin" includes="*.java,*.xml" excludes="build.xml" />