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