build.xml revision 3092
0N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
712N/A location="${unittest.testng.dir}/src/server"/>
0N/A location="${build.dir}/unit-tests/classes" />
0N/A location="${build.dir}/unit-tests/report"/>
233N/A location="${build.dir}/unit-tests/resource"/>
567N/A location="${build.dir}/quicksetup/classes" />
2046N/A location="${classes.dir}/org/opends/quicksetup" />
675N/A location="${cvgdiff.dir}/report" />
422N/A location="${coverage.dir}/reports/unit" />
422N/A location="${coverage.dir}/instrumentedcode" />
422N/A location="${coverage.dir}/gathereddata" />
110N/A location="${resource.dir}/DynamicConstants.java.stubs" />
2086N/A <genmsg sourceProps="${msg.prop.dir}/xxx.properties"
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/XxxMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/AccessControlMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/AdminMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/AdminToolMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/BackendMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/ConfigMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/CoreMessages.java">
2284N/A destJava="${msg.javagen.dir}/org/opends/messages/DSConfigMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/ExtensionMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/JebMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/LoggerMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/PluginMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/ProtocolMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/QuickSetupMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/ReplicationMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/SchemaMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/TaskMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/ToolMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/UtilityMessages.java">
2086N/A destJava="${msg.javagen.dir}/org/opends/messages/VersionMessages.java">
3034N/A destJava="${msg.javagen.dir}/org/opends/messages/RuntimeMessages.java">
121N/A <!-- Perform common initialization common to several targets after cleaning out the previous build environment. -->
1273N/A <!-- Set the property valid.java.version if the java version is valid. -->
1273N/A unless="valid.java.version" >
1273N/A message="WARNING: Java version ${java.version} is too old."/>
1960N/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
729N/A <!-- Build the DynamicConstants.java file and any of its dependencies. -->
109N/A <!-- Generate the DynamicConstants.java file.
109N/A VERSION_QUALIFIER, FIX_IDS, timestamp, user.name, java.version,
984N/A java.vendor, java.vm.version, JVM_VENDOR, DEBUG_BUILD, REVISION_NUMBER,
109N/A tofile="${dynconstants.file}"
0N/A classpath="${checkstyle.dir}/checkstyle-all-4.1.jar" />
2095N/A <javac srcdir="${src.dir}:${admin.src.dir}:${msg.src.dir}:${msg.javagen.dir}:${ads.src.dir}:${quicksetup.src.dir}:${guitools.src.dir}"
2115N/A <javac srcdir="${src.dir}:${msg.src.dir}:${msg.javagen.dir}" destdir="${quicksetup.classes.dir}"
2115N/A includes="**/quicksetup.properties" />
0N/A ! DynamicConstants.java won't be regenerated.
1960N/A location="${package.dir}/${SHORT_NAME}-${VERSION_NUMBER_STRING}" />
0N/A <!-- Clean up a minimal set of files/directories for the rebuild. -->
2098N/A <javac srcdir="${src.dir}:${msg.src.dir}:${msg.javagen.dir}:${admin.src.dir}:${ads.src.dir}:${quicksetup.src.dir}:${guitools.src.dir}"
1557N/A destdir="${classes.dir}"
2122N/A file="${msg.javagen.dir}/org/opends/messages/descriptors.reg" />
0N/A <!-- Generate the OpenDS.jar file -->
2033N/A basedir="${classes.dir}"
2046N/A excludes="${ads.classes.dir}, ${quicksetup.globalcompile.classes.dir}"
563N/A <!-- Generate the quicksetup.jar file -->
3092N/A file="${admin.rules.dir}/opends-config.css" />
3090N/A <java fork="true" classname="org.opends.server.admin.doc.ConfigGuideGeneration" failonerror="true">
1960N/A location="${package.dir}/${SHORT_NAME}-${VERSION_NUMBER_STRING}" />
2122N/A file="${msg.javagen.dir}/org/opends/messages/descriptors.reg" />
2556N/A basedir="${classes.dir}"
2556N/A excludes="${ads.classes.dir}, ${quicksetup.globalcompile.classes.dir}"
2976N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/bin" excludes="*.bat,_client-script.sh,_server-script.sh,_mixed-script.sh,_script-util.sh" eol="lf" />
2976N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/lib" includes="_client-script.sh,_server-script.sh,_mixed-script.sh,_script-util.sh" eol="lf" />
1194N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/bin" includes="README_WINDOWS.txt" eol="crlf" />
2976N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/bat" excludes="_client-script.bat,_server-script.bat,_mixed-script.bat,_script-util.bat,setcp.bat" includes="*.bat" eol="crlf" />
2976N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/lib" includes="_client-script.bat,_server-script.bat,_mixed-script.bat,_script-util.bat,setcp.bat" eol="crlf" />
920N/A tofile="${pdir}/config/upgrade/config.ldif.${REVISION_NUMBER}" />
920N/A toFile="${pdir}/config/upgrade/schema.ldif.${REVISION_NUMBER}" />
2549N/A <fixcrlf srcDir="${resource.dir}" destDir="${pdir}" includes="setup.bat,uninstall.bat,upgrade.bat"
2976N/A excludes="${SHORT_NAME}-${VERSION_NUMBER_STRING}/bin/*,${SHORT_NAME}-${VERSION_NUMBER_STRING}/lib/_client-script.sh,${SHORT_NAME}-${VERSION_NUMBER_STRING}/lib/_script-util.sh,${SHORT_NAME}-${VERSION_NUMBER_STRING}/lib/_server-script.sh,${SHORT_NAME}-${VERSION_NUMBER_STRING}/lib/_mixed-script.sh,${SHORT_NAME}-${VERSION_NUMBER_STRING}/setup,${SHORT_NAME}-${VERSION_NUMBER_STRING}/uninstall,${SHORT_NAME}-${VERSION_NUMBER_STRING}/upgrade,${SHORT_NAME}-${VERSION_NUMBER_STRING}/QuickSetup.app/Contents/MacOS/JavaApplicationStub,${SHORT_NAME}-${VERSION_NUMBER_STRING}/Uninstall.app/Contents/MacOS/JavaApplicationStub,${SHORT_NAME}-${VERSION_NUMBER_STRING}/bin/StatusPanel.app/Contents/MacOS/JavaApplicationStub"
2976N/A includes="${SHORT_NAME}-${VERSION_NUMBER_STRING}/lib/_client-script.sh,${SHORT_NAME}-${VERSION_NUMBER_STRING}/lib/_script-util.sh,${SHORT_NAME}-${VERSION_NUMBER_STRING}/lib/_server-script.sh,${SHORT_NAME}-${VERSION_NUMBER_STRING}/lib/_mixed-script.sh"
1960N/A excludes="${SHORT_NAME}-${VERSION_NUMBER_STRING}/bin/README_WINDOWS.txt"
1960N/A <zipfileset dir="${package.dir}" includes="${SHORT_NAME}-${VERSION_NUMBER_STRING}/bin/README_WINDOWS.txt"
2556N/A <zipfileset dir="${package.dir}" includes="${SHORT_NAME}-${VERSION_NUMBER_STRING}/setup,${SHORT_NAME}-${VERSION_NUMBER_STRING}/uninstall,${SHORT_NAME}-${VERSION_NUMBER_STRING}/upgrade,${SHORT_NAME}-${VERSION_NUMBER_STRING}/QuickSetup.app/Contents/MacOS/JavaApplicationStub,${SHORT_NAME}-${VERSION_NUMBER_STRING}/Uninstall.app/Contents/MacOS/JavaApplicationStub,${SHORT_NAME}-${VERSION_NUMBER_STRING}/bin/StatusPanel.app/Contents/MacOS/JavaApplicationStub"
3069N/A sourceDirName="${package.dir}/${SHORT_NAME}-${VERSION_NUMBER_STRING}"
3000N/A tofile="${dsml.classes.dir}/resources/DSMLv2.xsd"
2896N/A location="${package.dir}/${SHORT_NAME}-${VERSION_NUMBER_STRING}" />
2896N/A location="${package.dir}/${SHORT_NAME}-${VERSION_NUMBER_STRING}" />
3083N/A <target name="testinit-package" depends="test.OpenDS.package.required" unless="test.OpenDS.package.required">
3083N/A <target name="testinit-recompile" depends="test.OpenDS.package.required" if="test.OpenDS.package.required">
3083N/A <javac srcdir="${src.dir}:${admin.src.dir}:${msg.src.dir}:${msg.javagen.dir}:${ads.src.dir}:${quicksetup.src.dir}:${guitools.src.dir}"
2123N/A <condition property="test.packages" value="org.opends.server.*,org.opends.messages.*,org.opends.quicksetup.*">
564N/A classpath="${build.dir}/build-tools/build-tools.jar" />
233N/A tofile="${unittest.resource.dir}/testng.xml"
712N/A grouplist="${test.groups}"
567N/A packagelist="${test.packages}"
712N/A classList="${test.classes}"
567N/A methodList="${test.methods}" />
712N/A then we overwrite the testng.xml that we just generated
712N/A with testng-failed.xml, which TestNG generated. -->
712N/A file="${unittest.report.dir}/testng-failed.xml"/>
712N/A unless="testng-failed.xml.exists"/>
712N/A tofile="${unittest.resource.dir}/testng.xml"
675N/A outputpath="${cvgdiff.report.dir}"
712N/A diffpath="${test.diff.srcpath}"
699N/A enabled="${test.diff.enabled}"
1849N/A verbose="${test.diff.verbose}"
1849N/A fromrevision="${test.diff.from.revision}" />
712N/A <echo message="This target is deprecated. Please use the test target as it now supports the test.* properties." />
712N/A description="Run all of the TestNG tests (including 'slow' ones) with assertions enabled. See 'testwithcoverage' for properties you can set.">
712N/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.">
699N/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.">
233N/A <!-- Execute the Directory Server TestNG unit tests in text mode with a coverage report and slow tests. -->
318N/A <!-- Execute the Directory Server TestNG unit tests specified from CLI in text mode with a coverage report. -->
675N/A <echo message="This target is deprecated. Please use the testwithcoverage target as it now supports the test.* properties." />
1338N/A <echo message=" -Dorg.opends.test.debug.target=org.opends.server.core:level=verbose,category=data"/>
2342N/A <echo message=" org.opends.server:level=warning,category=caught|data|database-access|message|protocol,stack" />
121N/A <!-- Internal target to execute the Directory Server TestNG unit tests in text mode after everything has been initialized. -->
2342N/A <!-- This sets testng.verbosity if it's not already set. -->
503N/A <!-- This sets org.opends.test.suppressOutput if and only if it's not
1016N/A <!-- This sets org.opends.test.pauseOnFailure if and only if it's not
902N/A <!-- This sets org.opends.test.debug.target if and only if its's not
2342N/A value="org.opends.server:level=warning,category=caught|data|database-access|message|protocol,stack">
2556N/A -Djava.compiler=NONE
2342N/A <condition property="jvm.debug.arg3" value="-Djava.compiler=NONE" else="-Dopends.bogus.debug.arg3">
2556N/A value="-Xrunjdwp:transport=dt_socket,server=y,suspend=${test.remote.debug.suspend},address=${test.remote.debug.port}"
2342N/A else="-Dopends.bogus.debug.arg4">
902N/A <!-- Cleanout the old reports. Otherwise, the old testng-failed.xml
2342N/A verbose="${testng.verbosity0to5}"
712N/A listeners="org.opends.server.TestListener org.testng.reporters.FailedReporter"
2342N/A <jvmarg value="-Dorg.opends.test.copyClassesToTestPackage=${org.opends.test.copyClassesToTestPackage}" />
712N/A file="${unittest.report.dir}/.tests-failed-marker"/>
2459N/A <target name="compileadmin" depends="validateadmin" description="Code generation for configuration Object.">
1008N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/*Configuration.xml" style="${admin.rules.dir}/metaMO.xsl">
1008N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.java" />
1008N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/Package.xml" style="${admin.rules.dir}/package-info.xsl">
1008N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)\.xml$$" to="\1/meta/package-info.java" />
1008N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/*Configuration.xml" style="${admin.rules.dir}/clientMO.xsl">
1008N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/client/\2CfgClient.java" />
1008N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/Package.xml" style="${admin.rules.dir}/package-info.xsl">
1008N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)\.xml$$" to="\1/client/package-info.java" />
1008N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/*Configuration.xml" style="${admin.rules.dir}/serverMO.xsl">
1008N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/server/\2Cfg.java" />
1008N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/Package.xml" style="${admin.rules.dir}/package-info.xsl">
1008N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)\.xml$$" to="\1/server/package-info.java" />
1008N/A <xslt basedir="${admin.defn.dir}" destdir="${classes.dir}/admin/profiles/ldap" includes="**/*Configuration.xml" style="${admin.rules.dir}/ldapMOProfile.xsl">
1008N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.properties" />
1530N/A <xslt basedir="${admin.defn.dir}" destdir="${classes.dir}/admin/profiles/cli" includes="**/*Configuration.xml" style="${admin.rules.dir}/cliMOProfile.xsl">
1530N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.properties" />
1140N/A <xslt basedir="${admin.defn.dir}" destdir="${classes.dir}/admin/messages" includes="**/*Configuration.xml" style="${admin.rules.dir}/messagesMO.xsl">
1140N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.properties" />
1008N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.temp.dir}" extension=".manifest" includes="**/*Configuration.xml" style="${admin.rules.dir}/manifestMO.xsl"/>
2459N/A <target name="validateadmin" description="Validate core administration component XML definition files.">
1008N/A <schema namespace="http://www.opends.org/admin-ldap" file="${admin.rules.dir}/admin-ldap.xsd"/>
1530N/A <schema namespace="http://www.opends.org/admin-cli" file="${admin.rules.dir}/admin-cli.xsd"/>
2086N/A <target name="cleanmessages" description="Clean up any generated source files for messages">
1008N/A <copy todir="${plugin.temp.dir}/example-plugin" file="${admin.rules.dir}/example-plugin/build.xml" />
1008N/A <copy todir="${plugin.temp.dir}/example-plugin" file="${admin.rules.dir}/example-plugin/README" />
1008N/A <copy todir="${plugin.temp.dir}/example-plugin/resource/schema" file="${admin.rules.dir}/example-plugin/99-example-plugin.ldif" />
1008N/A <copy todir="${plugin.temp.dir}/example-plugin/resource/config" file="${admin.rules.dir}/example-plugin/example-plugin.ldif" />
1008N/A <fileset dir="${admin.rules.dir}/example-plugin" includes="*.java,*.xml" excludes="build.xml" />