build.xml revision 6406
0N/A file and include the License file://resource/legal-notices/CDDLv1_0.txt .
0N/A <!-- property name="vendor.url" value="${DOC_REFERENCE_HOME}" / -->
0N/A location="${docgen.dir}/configuration_guide" />
0N/A location="${docgen.dir}/configuration_guide_with_ldap_mapping" />
0N/A location="${build.dir}/build-tools/classes" />
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 location="${build.dir}/quicksetup/classes" />
0N/A location="${classes.dir}/org/opends/quicksetup" />
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 location="resource/admin/config-guide" />
0N/A <!-- Data dir for internal testing/development -->
0N/A value="${opendmk.lib.dir}/jdmkrt.jar" />
0N/A value="${opendmk.lib.dir}/jdmktk.jar" />
0N/A value="${ext.dir}/jdmkrt.jar" />
0N/A value="${ext.dir}/jdmktk.jar"/>
0N/A value="${docbook.xsl.dir}/manpages/profile-docbook.xsl"
0N/A destdir="${buildtools.classes.dir}">
0N/A **/MessageDescriptor.java,**/Severity.java,**/Category.java "/>
0N/A unless="svn.uptodate">
0N/A REVISION_NUMBER=${REVISION_NUMBER}${line.separator}
0N/A BUILD_NUMBER=${BUILD_NUMBER}${line.separator}
0N/A URL_REPOSITORY=${URL_REPOSITORY}${line.separator}"/>
0N/A unless="hg.uptodate"
0N/A var s = project.getProperty("hg.version").split(" ");
0N/A project.setProperty("REVISION_NUMBER", rn);
0N/A project.setProperty("BUILD_NUMBER", bn);
0N/A REVISION_NUMBER=${REVISION_NUMBER}${line.separator}
0N/A BUILD_NUMBER=${BUILD_NUMBER}${line.separator}
0N/A URL_REPOSITORY=${URL_REPOSITORY}${line.separator}"/>
0N/A <!-- Generate the DynamicConstants.java file.
0N/A java.version, java.vendor, java.vm.version, JVM_VENDOR, DEBUG_BUILD,
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/ToolMessages.java" />
0N/A destJava="${msg.javagen.dir}/org/opends/messages/UtilityMessages.java" />
0N/A destJava="${msg.javagen.dir}/org/opends/messages/VersionMessages.java" />
183N/A destJava="${msg.javagen.dir}/org/opends/messages/RuntimeMessages.java" />
183N/A <!-- same as generate.messages but output is xml instead of java file -->
183N/A destJava="${msg.logref.dir}/log-ref-access-control.xml" />
183N/A destJava="${msg.logref.dir}/log-ref-admin.xml" />
183N/A <genlogref sourceProps="${msg.prop.dir}/admin_tool.properties"
183N/A destJava="${msg.logref.dir}/log-ref-admin-tool.xml" />
183N/A destJava="${msg.logref.dir}/log-ref-backend.xml" />
183N/A destJava="${msg.logref.dir}/log-ref-config.xml" />
183N/A destJava="${msg.logref.dir}/log-ref-core.xml" />
183N/A destJava="${msg.logref.dir}/log-ref-dsconfig.xml" />
183N/A destJava="${msg.logref.dir}/log-ref-extension.xml" />
183N/A destJava="${msg.logref.dir}/log-ref-jeb.xml" />
183N/A destJava="${msg.logref.dir}/log-ref-log.xml" />
183N/A destJava="${msg.logref.dir}/log-ref-plugin.xml" />
183N/A destJava="${msg.logref.dir}/log-ref-protocol.xml" />
183N/A <genlogref sourceProps="${msg.prop.dir}/quicksetup.properties"
183N/A destJava="${msg.logref.dir}/log-ref-quicksetup.xml" />
183N/A destJava="${msg.logref.dir}/log-ref-replication.xml"
183N/A <genlogref sourceProps="${msg.prop.dir}/runtime_information.properties"
183N/A destJava="${msg.logref.dir}/log-ref-runtime-information.xml" />
183N/A destJava="${msg.logref.dir}/log-ref-schema.xml" />
183N/A destJava="${msg.logref.dir}/log-ref-task.xml" />
183N/A destJava="${msg.logref.dir}/log-ref-tools.xml" />
183N/A destJava="${msg.logref.dir}/log-ref-utility.xml" />
183N/A <genlogref sourceProps="${msg.prop.dir}/version.properties"
183N/A destJava="${msg.logref.dir}/log-ref-version.xml />
0N/A file="${admin.rules.dir}/admin.xsd"/>
0N/A file="${admin.rules.dir}/admin-ldap.xsd"/>
0N/A file="${admin.rules.dir}/admin-cli.xsd"/>
0N/A unless="admin.uptodate"
0N/A includes="**/*Configuration.xml"/>
0N/A style="${admin.rules.dir}/manifestMO.xsl">
0N/A var args = project.getProperty("sun.java.command").split("\\s");
0N/A for (var i=0; i < args.length; i++) {
0N/A project.setProperty("log.level", level);
0N/A var logger = project.getBuildListeners().firstElement();
0N/A logger.setMessageOutputLevel(level-1);
0N/A var level = project.getProperty("log.level");
0N/A project.getBuildListeners().firstElement().setMessageOutputLevel(level);
0N/A -mc -desc -tp org.opends.server.snmp
0N/A '${snmp.mib.dir}/rfc2605.txt'
0N/A '${snmp.mib.dir}/mib_core.txt'
0N/A '${snmp.mib.dir}/rfc2021.txt'
0N/A '${snmp.mib.dir}/rfc2788.txt'"/>
0N/A depends="gen.server,gen.admin,gen.snmp"/>
0N/A **/OperatingSystem.java,**/OpenDsException.java" />
0N/A **/Message.java,**/MessageBuilder.java,**/MessageDescriptor.java"/>
0N/A if="jdmk.present"
0N/A dir="${admin.rules.dir}/example-plugin"
0N/A includes="build-tools.jar" />
0N/A dir="${admin.defn.dir}"
0N/A dir="${admin.rules.dir}/example-plugin"
0N/A dir="${admin.rules.dir}"
0N/A dir="${admin.rules.dir}/example-plugin"
0N/A includes="example-plugin.ldif" />
0N/A dir="${admin.rules.dir}/example-plugin"
0N/A includes="99-example-plugin.ldif" />
0N/A dir="${admin.rules.dir}/example-plugin"
0N/A includes="example_plugin.properties,example_plugin_fr.properties" />
0N/A unless="subcmds.uptodate"
0N/A cname="org.opends.server.tools.dsreplication.ReplicationCliMain"/>
0N/A <!-- see also http://sources.forgerock.org/browse/opendj/trunk/opendj3/src/main/docbkx/shared -->
0N/A <!-- quicksetup.properties really needed -->
0N/A file="${msg.prop.dir}/quicksetup.properties" />
0N/A jarfile="${PROTO}/lib/bootstrap.jar">
0N/A file="${config.dir}/config.ldif" >
0N/A images/opendj_logo.png,legal-notices/*" />
0N/A '/lib/_server-script.sh' '${PROTO}/upgrade'${line.separator}" />
0N/A '${PROTO}/legal-notices/OpenDJ.LICENSE'${line.separator}" />
0N/A includes="setup.bat,uninstall.bat,upgrade.bat"/>
0N/A includes="DSMLv2.xsd,bindings.xjb"/>
<!-- Don't gen package-info.java: conflicts with the one in src/dsml -->
<!-- Basically compile.server dep would be sufficient, but we need to make
sure, that the bundled OpenDJ.jar contains everything needed by DSML -->
value="-taglet taglets.ToDoTaglet -tagletpath ${taglets.jar}" />
depends="compile.setup,compile.dsml,-setAltTodoTaglet,-setTodoTaglet"
href="${vendor.url}">${vendor.name}</a>."/>
excludes="bin/*,template/**/*,lib/_client-script.sh,
includes="lib/_client-script.sh,lib/_script-util.sh,
includes="bin/README_WINDOWS.txt" />
description="Convinience target for 'ant clean pkg.generic'" />
lib/*.exe,lib/*.sh,setup,uninstall,upgrade,**/bootstrap.jar,
value="${vendor.prefix}${PKG_NAME}${VERSION_SHORT}"/>
value="${svr4.tmpdir}/root/opt/opendj${VERSION_SHORT}"/>
value="${svr4.pkg.dir}/man=opendj${VERSION_SHORT}/man">
todir="${svr4.pkg.dir}/man" />
<!-- SMF/RBAC stuff - see also ${svr4.srcdir}/prototype.awk -->
${svr4.proto.add}" />
the testng.xml that we just generated with testng-failed.xml, which
if="test.failures"
file="${unittest.report.dir}/testng-failed.xml"/>
unless="testng-failed.xml.exists"/>
tofile="${unittest.resource.dir}/testng.xml"
unless="test.failures"
value="org.opends.server.*,org.opends.messages.*"
value="org.opends.server.*,org.opends.messages.*,
classpathref="build.tools" />
tofile="${unittest.resource.dir}/testng.xml"
grouplist="${test.groups}"
packagelist="${test.packages}"
classList="${test.classes}"
methodList="${test.methods}" />
if="jdmk.present"
destdir="${unittest.classes.dir}"
<!-- Phased out for IDE users to be able to create a proper testng.xml
value="org.opends.server:level=warning,category=caught|data|database-access|message|protocol,stack,cause"
target below. E.g.:
-Xdebug -Xnoagent -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
listeners="org.opends.server.TestListener
suiteRunnerClass="org.opends.server.SuiteRunner"
<jvmarg value="-Dorg.opends.test.copyClassesToTestPackage=${org.opends.test.copyClassesToTestPackage}" />
file="${unittest.report.dir}/.tests-failed-marker"/>
includes="unit.emma,metadata.emma" />
classname="org.opends.build.tools.CoverageDiff"
outputpath="${cvgdiff.report.dir}"
diffpath="${test.diff.srcpath}"
enabled="${test.diff.enabled}"
verbose="${test.diff.verbose}"
fromrevision="${test.diff.from.revision}" />
depends="test.enable.slow,test.enable.assertions,test"
depends="test.coverage.init,test,test.coverage.diff"
depends="test.coverage.init,test.all,test.coverage.diff"
classname="org.opends.build.tools.CheckPrecommit"
files from ${msgl10n.diff.dir}/diff to ${msgl10n.prop.dir}
classpath="${checkstyle.dir}/checkstyle-all-4.1.jar" />
excludes="**/PublicAPI.java" />
depends="clean,check.style,check.eol+copy,check.l10nmessages,
pkg.generic,dsml,test"
depends="clean,check.style,compile.dsml,api,guide,src.zip" />
setenv INSTANCE_ROOT '${instance.dir}'${line.separator}
export INSTANCE_ROOT='${instance.dir}'" />
description="Reomve the current instance.dir unconditionally!"
message=":${line.separator}${line.separator}
Download the OpenDMK from https://opendmk.java.net and set property${line.separator}
opendmk.lib.dir build to the path, which contains the corresponding jars.
${line.separator} (see etc/build.properties)"/>